|
HFCC-01 Low-Level Software (LLSW) Rel_6802_HFCC-01-RP-CSAR-CB
|
Functions | |
| ModStatus | errCheck (const DriverStatus status) |
| errCheck. | |
Status module
| ModStatus errCheck | ( | const DriverStatus | status | ) |
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 |