|
HFCC-01 Low-Level Software (LLSW) Rel_6802_HFCC-01-RP-CSAR-CB
|
Functions | |
| ModStatus | errCheck (const DriverStatus status) |
| errCheck. | |
| static void | fillUpAscii (char *array, const UInt32 charCount, const char *charVal) |
| fillUpAscii. | |
| static void | extractInfo (CardDetails cardDetails, BoardInfo *brdInfoPtr) |
| extractInfo. | |
| ModStatus | modInfo_getDLMInfo (DLMInfo *dlmInfo) |
| modInfo_getDLMInfo. | |
| ModStatus | modInfo_getBrdInfo (CardType cardType, BoardInfo *brdInfoPtr) |
| modInfo_getBrdInfo. | |
Variables | |
| CardInfo | globalCard [MOD_INFO_MAX_CARD] |
Info Module
|
extern |
errCheck.
Check the driver status and convert it to the module status.
| [in] | status | Status from driver. |
| MD_SUCCESS | : The module operation is successful. |
| MD_INVALID_ADDRESS | : The module base memory address is not valid. |
| MD_INVALID_CHANNEL | : The passing argument for channel number is not valid. |
| MD_READ_ERR | : The module is unable to read from a certain register. |
| MD_WRITE_ERR | : The module is unable to write to a certain register. |
| MD_FIFO_EMPTY | : The module FIFO is empty. |
| MD_FIFO_FULL | : The module FIFO is full. |
| MD_INVALID_PARAM | : The provided address pointer is invalid. |
| MD_INVALID_VALUE | : The passing argument is invalid or not within range. |
| MD_INVALID_CONFIG | : The module is not yet configured. |
| MD_INVALID_INIT | : The module is not initialized. |
| MD_OP_ALREADY_PERFORMED | : The module operation has already been performed. |
| MD_OPEN_FAILED | : The module is unable to open. |
| MD_FAILED | : The module operation has failed. |
| Requirement ID | Parent HLR ID | Detailed Low-Level Requirement Statement (EARS Format) | Software Unit Reference | Verification Method | Status |
|---|---|---|---|---|---|
| LLR_STATUS_ERRCHECK_01 | HLR_HM_79450 | WHEN the driver status parameter is equal to DRV_SUCCESS, the errCheck() function SHALL return MD_SUCCESS. | modStatus.c:errCheck() | Test | Closed |
| LLR_STATUS_ERRCHECK_02 | HLR_HM_79450 | WHEN the driver status parameter is equal to DRV_INVALID_ADDRESS, the errCheck() function SHALL return MD_INVALID_ADDRESS. | modStatus.c:errCheck() | Test | Closed |
| LLR_STATUS_ERRCHECK_03 | HLR_HM_79450 | WHEN the driver status parameter is equal to DRV_INVALID_CHANNEL, the errCheck() function SHALL return MD_INVALID_CHANNEL. | modStatus.c:errCheck() | Test | Closed |
| LLR_STATUS_ERRCHECK_04 | HLR_HM_79450 | WHEN the driver status parameter is equal to DRV_INVALID_DEVICE, the errCheck() function SHALL return MD_INVALID_DEVICE. | modStatus.c:errCheck() | Test | Closed |
| LLR_STATUS_ERRCHECK_05 | HLR_HM_79450 | WHEN the driver status parameter is equal to DRV_READ_FAILED, the errCheck() function SHALL return MD_READ_ERR. | modStatus.c:errCheck() | Test | Closed |
| LLR_STATUS_ERRCHECK_06 | HLR_HM_79450 | WHEN the driver status parameter is equal to DRV_WRITE_FAILED, the errCheck() function SHALL return MD_WRITE_ERR. | modStatus.c:errCheck() | Test | Closed |
| LLR_STATUS_ERRCHECK_07 | HLR_HM_79450 | WHEN the driver status parameter is equal to DRV_FIFO_EMPTY, the errCheck() function SHALL return MD_FIFO_EMPTY. | modStatus.c:errCheck() | Test | Closed |
| LLR_STATUS_ERRCHECK_08 | HLR_HM_79450 | WHEN the driver status parameter is equal to DRV_FIFO_FULL, the errCheck() function SHALL return MD_FIFO_FULL. | modStatus.c:errCheck() | Test | Closed |
| LLR_STATUS_ERRCHECK_09 | HLR_HM_79450 | WHEN the driver status parameter is equal to DRV_INVALID_PARAM, the errCheck() function SHALL return MD_INVALID_PARAM. | modStatus.c:errCheck() | Test | Closed |
| LLR_STATUS_ERRCHECK_10 | HLR_HM_79450 | WHEN the driver status parameter is equal to DRV_INVALID_VALUE, the errCheck() function SHALL return MD_INVALID_VALUE. | modStatus.c:errCheck() | Test | Closed |
| LLR_STATUS_ERRCHECK_11 | HLR_HM_79450 | WHEN the driver status parameter is equal to DRV_INVALID_CONFIG, the errCheck() function SHALL return MD_INVALID_CONFIG. | modStatus.c:errCheck() | Test | Closed |
| LLR_STATUS_ERRCHECK_12 | HLR_HM_79450 | WHEN the driver status parameter is equal to DRV_NOT_INITIALIZED, the errCheck() function SHALL return MD_INVALID_INIT. | modStatus.c:errCheck() | Test | Closed |
| LLR_STATUS_ERRCHECK_13 | HLR_HM_79450 | WHEN the driver status parameter is equal to DRV_OP_ALREADY_PERFORMED, the errCheck() function SHALL return MD_OP_ALREADY_PERFORMED. | modStatus.c:errCheck() | Test | Closed |
| LLR_STATUS_ERRCHECK_14 | HLR_HM_79450 | WHEN the driver status parameter is equal to DRV_OPEN_FAILED, the errCheck() function SHALL return MD_OPEN_FAILED. | modStatus.c:errCheck() | Test | Closed |
| LLR_STATUS_ERRCHECK_15 | HLR_HM_79450 | WHEN the driver status parameter does not match any recognized driver error condition, the errCheck() function SHALL return MD_FAILED. | modStatus.c:errCheck() | Test | Closed |
|
static |
extractInfo.
To extract board information.
| [in] | cardDetails | Card Details. |
| [out] | brdInfoPtr | Board information. |
| Requirement ID | Parent HLR ID | Detailed Low-Level Requirement Statement (EARS Format) | Software Unit Reference | Verification Method | Status |
|---|---|---|---|---|---|
| LLR_INFO_EXTRACTINFO_01 | HLR_IO_31356 | WHEN the pointer brdInfoPtr is NULL (invalid), the extractInfo() function SHALL abort processing and return immediately. | modInfo.c:extractInfo() | Test | Closed |
| LLR_INFO_EXTRACTINFO_02 | HLR_IO_31356 | WHEN the pointer brdInfoPtr is valid, the extractInfo() function SHALL copy serial number, format ASCII strings for platform, model, generation, and main board revision, and unpack FPGA firmware version fields into brdInfoPtr. | modInfo.c:extractInfo() | Test | Closed |
|
static |
fillUpAscii.
To fill up ASCII characters.
| [out] | array | Pointer to the array to be filled. |
| [in] | charCount | Total number of character. |
| [in] | charVal | Character value. |
| Requirement ID | Parent HLR ID | Detailed Low-Level Requirement Statement (EARS Format) | Software Unit Reference | Verification Method | Status |
|---|---|---|---|---|---|
| LLR_INFO_FILLUPASCII_01 | HLR_IO_31356 | WHEN length len is 0 or source string strSrc is NULL (invalid), the fillUpAscii() function SHALL abort processing and return immediately. | modInfo.c:fillUpAscii() | Test | Closed |
| LLR_INFO_FILLUPASCII_02 | HLR_IO_31356 | WHEN parameters are valid, the fillUpAscii() function SHALL copy up to len characters from strSrc to destination string strDst and ensure null termination. | modInfo.c:fillUpAscii() | Test | Closed |
modInfo_getBrdInfo.
Get board information.
| [in] | cardType | Card type to access. |
| [out] | brdInfoPtr | Board information. |
| MD_SUCCESS | : Success. |
| MD_INVALID_PARAM | : The provided address pointer is invalid. |
| MD_OPEN_FAILED | : Channel number is not valid. |
| Requirement ID | Parent HLR ID | Detailed Low-Level Requirement Statement (EARS Format) | Software Unit Reference | Verification Method | Status |
|---|---|---|---|---|---|
| LLR_INFO_MODINFO_GETBRDINFO_01 | HLR_IO_31356 | WHEN the pointer brdInfoPtr is NULL (invalid), the modInfo_getBrdInfo() function SHALL abort processing and return MD_INVALID_PARAM. | modInfo.c:modInfo_getBrdInfo() | Test | Closed |
| LLR_INFO_MODINFO_GETBRDINFO_02 | HLR_IO_31356 | WHEN cardType is not one of MFB1_CARD through PSU_CARD, the modInfo_getBrdInfo() function SHALL abort processing and return MD_INVALID_CARD. | modInfo.c:modInfo_getBrdInfo() | Test | Closed |
| LLR_INFO_MODINFO_GETBRDINFO_03 | HLR_IO_31356 | WHEN the requested card is in OPEN operating state, the modInfo_getBrdInfo() function SHALL read card information registers and populate brdInfoPtr using extractInfo(). | modInfo.c:modInfo_getBrdInfo() | Test | Closed |
| LLR_INFO_MODINFO_GETBRDINFO_04 | HLR_IO_31356 | WHEN all operational processing completes successfully, the modInfo_getBrdInfo() function SHALL return MD_SUCCESS. | modInfo.c:modInfo_getBrdInfo() | Test | Closed |
modInfo_getDLMInfo.
Get Device Library Module Information.
| [out] | dlmInfo | DLM Information. |
| MD_SUCCESS | : Success. |
| MD_INVALID_PARAM | : The provided address pointer is invalid. |
| Requirement ID | Parent HLR ID | Detailed Low-Level Requirement Statement (EARS Format) | Software Unit Reference | Verification Method | Status |
|---|---|---|---|---|---|
| LLR_INFO_MODINFO_GETDLMINFO_01 | HLR_IO_31356 | WHEN the pointer dlmInfo is NULL (invalid), the modInfo_getDLMInfo() function SHALL abort processing and return MD_INVALID_PARAM. | modInfo.c:modInfo_getDLMInfo() | Test | Closed |
| LLR_INFO_MODINFO_GETDLMINFO_02 | HLR_IO_31356 | WHEN preconditions are satisfied, the modInfo_getDLMInfo() function SHALL invoke routine memoryOper_set() to execute target subsystem hardware operation. | modInfo.c:modInfo_getDLMInfo() | Test | Closed |
| LLR_INFO_MODINFO_GETDLMINFO_03 | HLR_IO_31356 | WHEN all operational processing completes successfully, the modInfo_getDLMInfo() function SHALL return MD_SUCCESS. | modInfo.c:modInfo_getDLMInfo() | Test | Closed |
|
extern |