|
HFCC-01 Low-Level Software (LLSW) Rel_6802_HFCC-01-RP-CSAR-CB
|
Go to the source code of this file.
Data Structures | |
| struct | RvdtPbitStatus |
| RVDT Sensor Interface Power-On Built-In Test (PBIT) Diagnostic Status Structure. More... | |
| struct | RvdtCbitStatus |
| RVDT Sensor Interface Continuous Built-In Test (CBIT) Diagnostic Status Structure. More... | |
| struct | ExcWaveformTable |
| RVDT AC Reference Excitation Waveform Lookup Table Structure. More... | |
| struct | BPFData |
| RVDT Demodulation Bandpass Filter (BPF) Parameters and Coefficients Structure. More... | |
| struct | LPFFilterCoeffs |
| RVDT Lowpass Filter (LPF) Transfer Function Coefficients Structure. More... | |
| struct | BPFFilterCoeffs |
| RVDT Bandpass Filter (BPF) Transfer Function Coefficients Structure. More... | |
| struct | RvdtDevHandler |
| RVDT Sensor Interface Peripheral Hardware Device Handler Structure. More... | |
Macros | |
| #define | RVDT_DEV_CH_MAX (4U) |
Enumerations | |
| enum | RvdtBITState { RVDT_BIT_PASS = 0U , RVDT_BIT_FAIL = 1U } |
| RVDT Sensor Interface Built-In Test (BIT) Pass/Fail Evaluation State. More... | |
| enum | RefGain { GAIN_CTRL_1000 = 0x00U , GAIN_CTRL_1180 = 0x10U , GAIN_CTRL_1400 = 0x20U , GAIN_CTRL_1670 = 0x30U } |
| RVDT AC Excitation Reference Signal Gain Control Attenuation Selection. More... | |
| enum | WaveformMode { DIFFERENTIAL_WAVE = 0x00U , SINGLE_ENDED_WAVE = 0x80U } |
| RVDT Excitation Waveform Generation Mode (Differential or Single-Ended). More... | |
| enum | DacVcm { DACVCM_CTRL_820mV = 0U , DACVCM_CTRL_840mV , DACVCM_CTRL_860mV , DACVCM_CTRL_880mV } |
| RVDT DAC Voltage Common-Mode (VCM) Bias Level Selection. More... | |
| enum | DiffVocm { DIFFERENTIAL_AMPLIFIER_OUTPUT_COMMON_MODE_VOLTAGE_750mV , DIFFERENTIAL_AMPLIFIER_OUTPUT_COMMON_MODE_VOLTAGE_1000mV , DIFFERENTIAL_AMPLIFIER_OUTPUT_COMMON_MODE_VOLTAGE_1250mV , DIFFERENTIAL_AMPLIFIER_OUTPUT_COMMON_MODE_VOLTAGE_1500mV } |
| RVDT Differential Output Common-Mode Voltage Configuration (750mV to 1500mV). More... | |
| enum | S1Gain { S1_GAIN_1000mV = 0U , S1_GAIN_1330mV , S1_GAIN_1670mV , S1_GAIN_2000mV } |
| RVDT Secondary Coil S1 Input Amplifier Reference Gain Setting. More... | |
| enum | S2Gain { S2_GAIN_1000mV = 0U , S2_GAIN_1330mV , S2_GAIN_1670mV , S2_GAIN_2000mV } |
| RVDT Secondary Coil S2 Input Amplifier Reference Gain Setting. More... | |
| enum | S1WaveformMode { S1_DIFFERENTIAL = 0U , S1_SINGLE_ENDED = 64U } |
| RVDT Secondary Coil S1 Waveform Configuration (Differential or Single-Ended). More... | |
| enum | S2WaveformMode { S2_DIFFERENTIAL = 0U , S2_SINGLE_ENDED = 64U } |
| RVDT Secondary Coil S2 Waveform Configuration (Differential or Single-Ended). More... | |
| enum | VCMBias { VCM_BIAS_500mV = 0U , VCM_BIAS_625mV , VCM_BIAS_750mV , VCM_BIAS_825mV } |
| RVDT Voltage Common-Mode Bias Setting (500mV to 825mV). More... | |
| enum | DEMODOutputRate { OUTPUT_RATE_128US = 0U , OUTPUT_RATE_256US = 4U } |
| RVDT Demodulator Output Tracking Loop Sampling Rate Selection (128us or 256us). More... | |
Functions | |
| DriverStatus | rvdt_getPbit (const RvdtDevHandler rvdtDevHdl, RvdtPbitStatus *pbitStatus) |
| rvdt_getPbit. | |
| DriverStatus | rvdt_getCbit (const RvdtDevHandler rvdtDevHdl, RvdtCbitStatus *cbitStatus) |
| rvdt_getCbit. | |
| DriverStatus | rvdt_getTemp (const RvdtDevHandler rvdtDevHdl, Float32 *temp) |
| rvdt_getTemp. | |
| DriverStatus | rvdt_initDev (const RvdtDevHandler rvdtDevHdl) |
| rvdt_initDev. | |
| DriverStatus | rvdt_getRefStatus (const RvdtDevHandler rvdtDevHdl, Bool *opStatus) |
| rvdt_getRefStatus. | |
| DriverStatus | rvdt_setPowerEnable (const RvdtDevHandler rvdtDevHdl, const Bool enable) |
| rvdt_setPowerEnable. | |
| DriverStatus | rvdt_setTestMux (const RvdtDevHandler rvdtDevHdl, const Bool enable) |
| rvdt_setTestMux | |
| DriverStatus | rvdt_setRefWaveEnable (const RvdtDevHandler rvdtDevHdl, const Bool enable) |
| rvdt_setRefWaveEnable. | |
| DriverStatus | rvdt_configWaveformGeneration (const RvdtDevHandler rvdtDevHdl, const UInt8 dacvcm, const UInt8 vocm, const UInt8 gain, const UInt8 mode, const Float32 voltageRms, const Float32 frequency) |
| rvdt_configWaveformGeneration. | |
| DriverStatus | rvdt_getSenseStatus (const RvdtDevHandler rvdtDevHdl, Bool *opStatus) |
| rvdt_getSenseStatus. | |
| DriverStatus | rvdt_setSenseEnable (const RvdtDevHandler rvdtDevHdl, const Bool enable) |
| rvdt_setSenseEnable. | |
| DriverStatus | rvdt_setS1s2Config (const RvdtDevHandler rvdtDevHdl, const UInt8 vcmBias) |
| rvdt_setS1s2Config. | |
| DriverStatus | rvdt_configSec1 (const RvdtDevHandler rvdtDevHdl, const UInt8 sense, const UInt8 gain, const UInt8 rate) |
| rvdt_configSec1. | |
| DriverStatus | rvdt_configSec2 (const RvdtDevHandler rvdtDevHdl, const UInt8 sense, const UInt8 gain, const UInt8 rate) |
| rvdt_configSec2. | |
| DriverStatus | rvdt_configLpfCoefficient (const RvdtDevHandler rvdtDevHdl, const UInt32 lpfFreq, const UInt32 lpfRate) |
| rvdt_configLpfCoefficient. | |
| DriverStatus | rvdt_configBpfCoefficient (const RvdtDevHandler rvdtDevHdl, const UInt32 bpfFreq, const UInt32 bpfBandwidth) |
| rvdt_configBpfCoefficient. | |
| DriverStatus | rvdt_setRefConfigCommand (const RvdtDevHandler rvdtDevHdl) |
| rvdt_setRefConfigCommand. | |
| DriverStatus | rvdt_setSenseConfigCommand (const RvdtDevHandler rvdtDevHdl) |
| rvdt_setSenseConfigCommand. | |
| DriverStatus | rvdt_setSenseFilterCommand (const RvdtDevHandler rvdtDevHdl) |
| rvdt_setSenseFilterCommand | |
| DriverStatus | rvdt_getSensePosition (const RvdtDevHandler rvdtDevHdl, Float32 *demod1Ptr, Float32 *demod2Ptr, Float32 *deltaVal, UInt32 *adcVal1, UInt32 *adcVal2) |
| rvdt_getSensePosition. | |
Rvdt device driver header file
| #define RVDT_DEV_CH_MAX (4U) |
| enum DacVcm |
| enum DEMODOutputRate |
| enum DiffVocm |
RVDT Differential Output Common-Mode Voltage Configuration (750mV to 1500mV).
| enum RefGain |
| enum RvdtBITState |
| enum S1Gain |
| enum S1WaveformMode |
| enum S2Gain |
| enum S2WaveformMode |
| enum VCMBias |
| enum WaveformMode |
| DriverStatus rvdt_configBpfCoefficient | ( | const RvdtDevHandler | rvdtDevHdl, |
| const UInt32 | bpfFreq, | ||
| const UInt32 | bpfBandwidth ) |
rvdt_configBpfCoefficient.
Configure band pass filter coefficient.
| [in] | rvdtDevHdl | The RVDT device handler. |
| [in] | bpfFreq | BPF Center Frequency value in Hz |
| [in] | bpfBandwidth | Band pass filter bandwidth in Hz |
| DRV_SUCCESS | : Success. |
| DRV_WRITE_FAILED | : Failed to write to the device or module. |
| DRV_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_RVDT_RVDT_CONFIGBPFCOEFFICIENT_01 | HLR_RVDT_18873 | WHEN a driver operation reports a failure status other than DRV_SUCCESS, the rvdt_configBpfCoefficient() function SHALL abort processing and return that driver failure status. | rvdt.c:rvdt_configBpfCoefficient() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGBPFCOEFFICIENT_02 | HLR_RVDT_18873 | WHEN preconditions are satisfied, the rvdt_configBpfCoefficient() function SHALL invoke routine floor() to execute target subsystem hardware operation. | rvdt.c:rvdt_configBpfCoefficient() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGBPFCOEFFICIENT_03 | HLR_RVDT_18873 | WHEN preconditions are satisfied, the rvdt_configBpfCoefficient() function SHALL invoke routine configSec1BpfB1() to execute target subsystem hardware operation. | rvdt.c:rvdt_configBpfCoefficient() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGBPFCOEFFICIENT_04 | HLR_RVDT_18873 | WHEN preconditions are satisfied, the rvdt_configBpfCoefficient() function SHALL invoke routine configSec2BpfB1() to execute target subsystem hardware operation. | rvdt.c:rvdt_configBpfCoefficient() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGBPFCOEFFICIENT_05 | HLR_RVDT_18873 | WHEN preconditions are satisfied, the rvdt_configBpfCoefficient() function SHALL invoke routine configSec1BpfA2() to execute target subsystem hardware operation. | rvdt.c:rvdt_configBpfCoefficient() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGBPFCOEFFICIENT_06 | HLR_RVDT_18873 | WHEN preconditions are satisfied, the rvdt_configBpfCoefficient() function SHALL invoke routine configSec2BpfA2() to execute target subsystem hardware operation. | rvdt.c:rvdt_configBpfCoefficient() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGBPFCOEFFICIENT_07 | HLR_RVDT_18873 | WHEN all operational processing completes successfully, the rvdt_configBpfCoefficient() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_configBpfCoefficient() | Test | Closed |
| DriverStatus rvdt_configLpfCoefficient | ( | const RvdtDevHandler | rvdtDevHdl, |
| const UInt32 | lpfFreq, | ||
| const UInt32 | lpfRate ) |
rvdt_configLpfCoefficient.
Configure low pass filter coefficient.
| [in] | rvdtDevHdl | The RVDT device handler. |
| [in] | lpfFreq | Low pass filter frequency (Hz). |
| [in] | lpfRate | Low pass filter rate (0 - 128us, 1 - 256us). |
| DRV_SUCCESS | : Success. |
| DRV_WRITE_FAILED | : Failed to write to the device or module. |
| DRV_INVALID_PARAM | : The provided address pointer is invalid. |
| DRV_INVALID_VALUE | : The value is out of range. |
| Requirement ID | Parent HLR ID | Detailed Low-Level Requirement Statement (EARS Format) | Software Unit Reference | Verification Method | Status |
|---|---|---|---|---|---|
| LLR_RVDT_RVDT_CONFIGLPFCOEFFICIENT_01 | HLR_RVDT_18874 | WHEN a driver operation reports a failure status other than DRV_SUCCESS, the rvdt_configLpfCoefficient() function SHALL abort processing and return that driver failure status. | rvdt.c:rvdt_configLpfCoefficient() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGLPFCOEFFICIENT_02 | HLR_RVDT_18874 | WHEN preconditions are satisfied, the rvdt_configLpfCoefficient() function SHALL invoke routine with() to execute target subsystem hardware operation. | rvdt.c:rvdt_configLpfCoefficient() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGLPFCOEFFICIENT_03 | HLR_RVDT_18874 | WHEN preconditions are satisfied, the rvdt_configLpfCoefficient() function SHALL invoke routine customRound() to execute target subsystem hardware operation. | rvdt.c:rvdt_configLpfCoefficient() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGLPFCOEFFICIENT_04 | HLR_RVDT_18874 | WHEN preconditions are satisfied, the rvdt_configLpfCoefficient() function SHALL invoke routine configSec1Lpf() to execute target subsystem hardware operation. | rvdt.c:rvdt_configLpfCoefficient() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGLPFCOEFFICIENT_05 | HLR_RVDT_18874 | WHEN preconditions are satisfied, the rvdt_configLpfCoefficient() function SHALL invoke routine configSec2Lpf() to execute target subsystem hardware operation. | rvdt.c:rvdt_configLpfCoefficient() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGLPFCOEFFICIENT_06 | HLR_RVDT_18874 | WHEN all operational processing completes successfully, the rvdt_configLpfCoefficient() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_configLpfCoefficient() | Test | Closed |
| DriverStatus rvdt_configSec1 | ( | const RvdtDevHandler | rvdtDevHdl, |
| const UInt8 | sense, | ||
| const UInt8 | gain, | ||
| const UInt8 | rate ) |
rvdt_configSec1.
Configure secondary 1 coil.
| [in] | rvdtDevHdl | The RVDT device handler. |
| [in] | sense | The secondary 1 sense value (0 - 1). |
| [in] | gain | The secondary 1 gain value (0 - 3). |
| [in] | rate | The demod 1 sample output rate (0 - 1). |
| DRV_SUCCESS | : Success. |
| DRV_WRITE_FAILED | : Failed to write to the device or module. |
| DRV_READ_FAILED | : Failed to read from the device or module. |
| DRV_INVALID_VALUE | : The sense, gain, or rate value exceed limit. |
| DRV_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_RVDT_RVDT_CONFIGSEC1_01 | HLR_RVDT_18870 | WHEN sense is greater than RVDT_MAX_CFG_SENSE or gain is greater than RVDT_MAX_CFG_GAIN or rate is greater than RVDT_MAX_CFG_RATE, the rvdt_configSec1() function SHALL abort processing and return DRV_INVALID_VALUE. | rvdt.c:rvdt_configSec1() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGSEC1_02 | HLR_RVDT_18870 | WHEN a driver operation reports a failure status other than DRV_SUCCESS, the rvdt_configSec1() function SHALL abort processing and return that driver failure status. | rvdt.c:rvdt_configSec1() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGSEC1_03 | HLR_RVDT_18870 | WHEN preconditions are satisfied, the rvdt_configSec1() function SHALL read the RVDT module device block members memory offset (RVDT_CFG_SEC1) at physical offset 0x0010 (MMAP_RVDT_CFG_SEC1) using readRvdtReg(). | rvdt.c:rvdt_configSec1() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGSEC1_04 | HLR_RVDT_18870 | WHEN preconditions are satisfied, the rvdt_configSec1() function SHALL write the RVDT module device block members memory offset (RVDT_CFG_SEC1) at physical offset 0x0010 (MMAP_RVDT_CFG_SEC1) using writeRvdtReg(). | rvdt.c:rvdt_configSec1() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGSEC1_05 | HLR_RVDT_18870 | WHEN all operational processing completes successfully, the rvdt_configSec1() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_configSec1() | Test | Closed |
| DriverStatus rvdt_configSec2 | ( | const RvdtDevHandler | rvdtDevHdl, |
| const UInt8 | sense, | ||
| const UInt8 | gain, | ||
| const UInt8 | rate ) |
rvdt_configSec2.
Configure secondary 2 coil.
| [in] | rvdtDevHdl | The RVDT device handler. |
| [in] | sense | The secondary 2 sense value (0 - 1). |
| [in] | gain | The secondary 2 gain value (0 - 3). |
| [in] | rate | The demod 2 sample output rate (0 - 1). |
| DRV_SUCCESS | : Success. |
| DRV_WRITE_FAILED | : Failed to write to the device or module. |
| DRV_READ_FAILED | : Failed to read from the device or module. |
| DRV_INVALID_VALUE | : The sense, gain, or rate value exceed limit. |
| DRV_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_RVDT_RVDT_CONFIGSEC2_01 | HLR_RVDT_18870 | WHEN sense is greater than RVDT_MAX_CFG_SENSE or gain is greater than RVDT_MAX_CFG_GAIN or rate is greater than RVDT_MAX_CFG_RATE, the rvdt_configSec2() function SHALL abort processing and return DRV_INVALID_VALUE. | rvdt.c:rvdt_configSec2() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGSEC2_02 | HLR_RVDT_18870 | WHEN a driver operation reports a failure status other than DRV_SUCCESS, the rvdt_configSec2() function SHALL abort processing and return that driver failure status. | rvdt.c:rvdt_configSec2() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGSEC2_03 | HLR_RVDT_18870 | WHEN preconditions are satisfied, the rvdt_configSec2() function SHALL read the RVDT module device block members memory offset (RVDT_CFG_SEC2) at physical offset 0x0014 (MMAP_RVDT_CFG_SEC2) using readRvdtReg(). | rvdt.c:rvdt_configSec2() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGSEC2_04 | HLR_RVDT_18870 | WHEN preconditions are satisfied, the rvdt_configSec2() function SHALL write the RVDT module device block members memory offset (RVDT_CFG_SEC2) at physical offset 0x0014 (MMAP_RVDT_CFG_SEC2) using writeRvdtReg(). | rvdt.c:rvdt_configSec2() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGSEC2_05 | HLR_RVDT_18870 | WHEN all operational processing completes successfully, the rvdt_configSec2() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_configSec2() | Test | Closed |
| DriverStatus rvdt_configWaveformGeneration | ( | const RvdtDevHandler | rvdtDevHdl, |
| const UInt8 | dacvcm, | ||
| const UInt8 | vocm, | ||
| const UInt8 | gain, | ||
| const UInt8 | mode, | ||
| const Float32 | voltageRms, | ||
| const Float32 | frequency ) |
rvdt_configWaveformGeneration.
Configure waveform generation.
| [in] | rvdtDevHdl | The RVDT device handler. |
| [in] | dacvcm | Differential offset adjustment value. |
| [in] | vocm | Differential mode output common mode. |
| [in] | gain | Reference gain. |
| [in] | mode | Single-ended mode or differential mode. |
| [in] | voltageRms | Operating vrms value. |
| [in] | frequency | Operating frequency value (Hz). |
| DRV_SUCCESS | : Success. |
| DRV_WRITE_FAILED | : Failed to write to the device or module. |
| DRV_INVALID_SIZE | : The size of the waveform table is invalid. |
| DRV_INVALID_PARAM | : The provided address pointer is invalid. |
| DRV_INVALID_VALUE | : The input value is invalid. |
| Requirement ID | Parent HLR ID | Detailed Low-Level Requirement Statement (EARS Format) | Software Unit Reference | Verification Method | Status |
|---|---|---|---|---|---|
| LLR_RVDT_RVDT_CONFIGWAVEFORMGENERATION_01 | HLR_RVDT_18870 | WHEN any waveform configuration argument exceeds maximum hardware limits (gain > RVDT_MAX_WAVE_GAIN, dacvcm > RVDT_MAX_DACVCM, vocm > RVDT_MAX_VOCM, or mode > RVDT_MAX_WAVE_MODE), the rvdt_configWaveformGeneration() function SHALL abort processing and return DRV_INVALID_VALUE. | rvdt.c:rvdt_configWaveformGeneration() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGWAVEFORMGENERATION_02 | HLR_RVDT_18870 | WHEN mode is equal to 0, the rvdt_configWaveformGeneration() function SHALL clear bit 7 (mode select) in the excitation waveform configuration data. | rvdt.c:rvdt_configWaveformGeneration() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGWAVEFORMGENERATION_03 | HLR_RVDT_18870 | WHEN mode is not equal to 0, the rvdt_configWaveformGeneration() function SHALL set bit 7 (mode select) in the excitation waveform configuration data. | rvdt.c:rvdt_configWaveformGeneration() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGWAVEFORMGENERATION_04 | HLR_RVDT_18870 | WHEN parameter validation passes, the rvdt_configWaveformGeneration() function SHALL calculate lookup table amplitude and write the excitation waveform pattern to FPGA memory map using writeRvdtReg(). | rvdt.c:rvdt_configWaveformGeneration() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGWAVEFORMGENERATION_05 | HLR_RVDT_18870 | WHEN any hardware register write operation fails (status not equal to DRV_SUCCESS), the rvdt_configWaveformGeneration() function SHALL abort processing and return that driver failure status. | rvdt.c:rvdt_configWaveformGeneration() | Test | Closed |
| LLR_RVDT_RVDT_CONFIGWAVEFORMGENERATION_06 | HLR_RVDT_18870 | WHEN all operational processing completes successfully, the rvdt_configWaveformGeneration() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_configWaveformGeneration() | Test | Closed |
| DriverStatus rvdt_getCbit | ( | const RvdtDevHandler | rvdtDevHdl, |
| RvdtCbitStatus * | cbitStatus ) |
rvdt_getCbit.
Get RVDT CBIT status.
| [in] | rvdtDevHdl | The RVDT device handler. |
| [out] | cbitStatus | The pointer of CBIT status value. |
| DRV_SUCCESS | : Success. |
| DRV_READ_FAILED | : Failed to read from the device or module. |
| DRV_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_RVDT_RVDT_GETCBIT_01 | HLR_RVDT_23601 | WHEN the pointer cbitStatus is NULL (invalid), the rvdt_getCbit() function SHALL abort processing and return DRV_INVALID_PARAM. | rvdt.c:rvdt_getCbit() | Test | Closed |
| LLR_RVDT_RVDT_GETCBIT_02 | HLR_RVDT_23601 | WHEN a driver operation reports a failure status other than DRV_SUCCESS, the rvdt_getCbit() function SHALL abort processing and return that driver failure status. | rvdt.c:rvdt_getCbit() | Test | Closed |
| LLR_RVDT_RVDT_GETCBIT_03 | HLR_RVDT_23601 | WHEN querying RVDT Channel Bank 1, the rvdt_getCbit() function SHALL read common power-good, over-temperature, and supply rail fault status bits from the bank CBIT status register. | rvdt.c:rvdt_getCbit() | Test | Closed |
| LLR_RVDT_RVDT_GETCBIT_04 | HLR_RVDT_23601 | FOR each RVDT device bank, WHEN the demodulator configuration register does not match active status, the rvdt_getCbit() function SHALL set the configuration mismatch failure status for that bank. | rvdt.c:rvdt_getCbit() | Test | Closed |
| LLR_RVDT_RVDT_GETCBIT_05 | HLR_RVDT_23601 | FOR each configured RVDT device bank (0 through RVDT_DEV_CH_MAX - 1), the rvdt_getCbit() function SHALL calculate the register offset using MMAP_RVDT_DEV_OFFSET and read the bank CBIT Status Register (MMAP_RVDT_CBIT_STATUS) and Diagnostic Register via readRvdtReg(). | rvdt.c:rvdt_getCbit() | Test | Closed |
| LLR_RVDT_RVDT_GETCBIT_06 | HLR_RVDT_23601 | WHEN preconditions are satisfied, the rvdt_getCbit() function SHALL invoke bitwise routine READ_BIT() to extract target channel status bit from register payload. | rvdt.c:rvdt_getCbit() | Test | Closed |
| LLR_RVDT_RVDT_GETCBIT_07 | HLR_RVDT_23601 | WHEN all operational processing completes successfully, the rvdt_getCbit() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_getCbit() | Test | Closed |
| DriverStatus rvdt_getPbit | ( | const RvdtDevHandler | rvdtDevHdl, |
| RvdtPbitStatus * | pbitStatus ) |
rvdt_getPbit.
Get RVDT PBIT status.
| [in] | rvdtDevHdl | The RVDT device handler. |
| [out] | pbitStatus | The pointer of PBIT status value. |
| DRV_SUCCESS | : Success. |
| DRV_READ_FAILED | : Failed to read from the device or module. |
| DRV_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_RVDT_RVDT_GETPBIT_01 | HLR_RVDT_323 | WHEN the pointer pbitStatus is NULL (invalid), the rvdt_getPbit() function SHALL abort processing and return DRV_INVALID_PARAM. | rvdt.c:rvdt_getPbit() | Test | Closed |
| LLR_RVDT_RVDT_GETPBIT_02 | HLR_RVDT_323 | WHEN a driver operation reports a failure status other than DRV_SUCCESS, the rvdt_getPbit() function SHALL abort processing and return that driver failure status. | rvdt.c:rvdt_getPbit() | Test | Closed |
| LLR_RVDT_RVDT_GETPBIT_03 | HLR_RVDT_323 | WHEN querying RVDT Channel Bank 1, the rvdt_getPbit() function SHALL read the global PBIT execution completion status (MMAP_RVDT_POS_PBIT_BIT_DONE) from the PBIT status register. | rvdt.c:rvdt_getPbit() | Test | Closed |
| LLR_RVDT_RVDT_GETPBIT_04 | HLR_RVDT_323 | FOR each configured RVDT device bank (0 through RVDT_DEV_CH_MAX - 1), the rvdt_getPbit() function SHALL calculate the register offset using MMAP_RVDT_DEV_OFFSET and read the bank PBIT Status Register (MMAP_RVDT_PBIT_STATUS) via readRvdtReg(). | rvdt.c:rvdt_getPbit() | Test | Closed |
| LLR_RVDT_RVDT_GETPBIT_05 | HLR_RVDT_323 | WHEN preconditions are satisfied, the rvdt_getPbit() function SHALL invoke bitwise routine READ_BIT() to extract target channel status bit from register payload. | rvdt.c:rvdt_getPbit() | Test | Closed |
| LLR_RVDT_RVDT_GETPBIT_06 | HLR_RVDT_323 | WHEN all operational processing completes successfully, the rvdt_getPbit() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_getPbit() | Test | Closed |
| DriverStatus rvdt_getRefStatus | ( | const RvdtDevHandler | rvdtDevHdl, |
| Bool * | opStatus ) |
rvdt_getRefStatus.
Get reference status in control command.
| [in] | rvdtDevHdl | The RVDT device handler. |
| [out] | opStatus | The operational status for reference. |
| DRV_SUCCESS | : Success. |
| DRV_READ_FAILED | : Failed to read from the device or module. |
| DRV_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_RVDT_RVDT_GETREFSTATUS_01 | HLR_RVDT_16937 | WHEN the pointer opStatus is NULL (invalid), the rvdt_getRefStatus() function SHALL abort processing and return DRV_INVALID_PARAM. | rvdt.c:rvdt_getRefStatus() | Test | Closed |
| LLR_RVDT_RVDT_GETREFSTATUS_02 | HLR_RVDT_16937 | WHEN a driver operation reports a failure status other than DRV_SUCCESS, the rvdt_getRefStatus() function SHALL abort processing and return that driver failure status. | rvdt.c:rvdt_getRefStatus() | Test | Closed |
| LLR_RVDT_RVDT_GETREFSTATUS_03 | HLR_RVDT_16937 | WHEN preconditions are satisfied, the rvdt_getRefStatus() function SHALL read the RVDT module device block members memory offset (RVDT_CONTROL_CMD) at physical offset 0x0258 (MMAP_RVDT_CONTROL_CMD) using readRvdtReg(). | rvdt.c:rvdt_getRefStatus() | Test | Closed |
| LLR_RVDT_RVDT_GETREFSTATUS_04 | HLR_RVDT_16937 | WHEN preconditions are satisfied, the rvdt_getRefStatus() function SHALL invoke bitwise routine READ_BIT() to extract target channel status bit from register payload. | rvdt.c:rvdt_getRefStatus() | Test | Closed |
| LLR_RVDT_RVDT_GETREFSTATUS_05 | HLR_RVDT_16937 | WHEN all operational processing completes successfully, the rvdt_getRefStatus() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_getRefStatus() | Test | Closed |
| DriverStatus rvdt_getSensePosition | ( | const RvdtDevHandler | rvdtDevHdl, |
| Float32 * | demod1Ptr, | ||
| Float32 * | demod2Ptr, | ||
| Float32 * | deltaVal, | ||
| UInt32 * | adcVal1, | ||
| UInt32 * | adcVal2 ) |
rvdt_getSensePosition.
Get sense position data.
| [in] | rvdtDevHdl | The RVDT device handler. |
| [out] | demod1Ptr | The demod 1 value. |
| [out] | demod2Ptr | The demod 2 value. |
| [out] | deltaVal | The demod delta value. |
| [out] | adcVal1 | The adc 1 value. |
| [out] | adcVal2 | The adc 2 value. |
| DRV_SUCCESS | : Success. |
| DRV_READ_FAILED | : Failed to read from the device or module. |
| DRV_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_RVDT_RVDT_GETSENSEPOSITION_01 | HLR_RVDT_18870 | WHEN the pointer demod1Ptr is NULL (invalid) or the pointer demod2Ptr is NULL (invalid) or the pointer deltaVal is NULL (invalid) or the pointer adcVal1 is NULL (invalid) or the pointer adcVal2 is NULL (invalid), the rvdt_getSensePosition() function SHALL abort processing and return DRV_INVALID_PARAM. | rvdt.c:rvdt_getSensePosition() | Test | Closed |
| LLR_RVDT_RVDT_GETSENSEPOSITION_02 | HLR_RVDT_18870 | WHEN a driver operation reports a failure status other than DRV_SUCCESS, the rvdt_getSensePosition() function SHALL abort processing and return that driver failure status. | rvdt.c:rvdt_getSensePosition() | Test | Closed |
| LLR_RVDT_RVDT_GETSENSEPOSITION_03 | HLR_RVDT_18870 | WHEN preconditions are satisfied, the rvdt_getSensePosition() function SHALL invoke routine getSenseDemod1Demod2Data() to execute target subsystem hardware operation. | rvdt.c:rvdt_getSensePosition() | Test | Closed |
| LLR_RVDT_RVDT_GETSENSEPOSITION_04 | HLR_RVDT_18870 | WHEN all operational processing completes successfully, the rvdt_getSensePosition() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_getSensePosition() | Test | Closed |
| DriverStatus rvdt_getSenseStatus | ( | const RvdtDevHandler | rvdtDevHdl, |
| Bool * | opStatus ) |
rvdt_getSenseStatus.
Get RVDT sense status in control command.
| [in] | rvdtDevHdl | The RVDT device handler. |
| [out] | opStatus | The operational status for sense. |
| DRV_SUCCESS | : Success. |
| DRV_READ_FAILED | : Failed to read from the device or module. |
| DRV_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_RVDT_RVDT_GETSENSESTATUS_01 | HLR_RVDT_18870 | WHEN the pointer opStatus is NULL (invalid), the rvdt_getSenseStatus() function SHALL abort processing and return DRV_INVALID_PARAM. | rvdt.c:rvdt_getSenseStatus() | Test | Closed |
| LLR_RVDT_RVDT_GETSENSESTATUS_02 | HLR_RVDT_18870 | WHEN a driver operation reports a failure status other than DRV_SUCCESS, the rvdt_getSenseStatus() function SHALL abort processing and return that driver failure status. | rvdt.c:rvdt_getSenseStatus() | Test | Closed |
| LLR_RVDT_RVDT_GETSENSESTATUS_03 | HLR_RVDT_18870 | WHEN preconditions are satisfied, the rvdt_getSenseStatus() function SHALL read the RVDT module device block members memory offset (RVDT_CONTROL_CMD) at physical offset 0x0258 (MMAP_RVDT_CONTROL_CMD) using readRvdtReg(). | rvdt.c:rvdt_getSenseStatus() | Test | Closed |
| LLR_RVDT_RVDT_GETSENSESTATUS_04 | HLR_RVDT_18870 | WHEN preconditions are satisfied, the rvdt_getSenseStatus() function SHALL invoke bitwise routine READ_BIT() to extract target channel status bit from register payload. | rvdt.c:rvdt_getSenseStatus() | Test | Closed |
| LLR_RVDT_RVDT_GETSENSESTATUS_05 | HLR_RVDT_18870 | WHEN all operational processing completes successfully, the rvdt_getSenseStatus() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_getSenseStatus() | Test | Closed |
| DriverStatus rvdt_getTemp | ( | const RvdtDevHandler | rvdtDevHdl, |
| Float32 * | temp ) |
rvdt_getTemp.
Get RVDT temperature value in degree celsius (C).
| [in] | rvdtDevHdl | The RVDT device handler. |
| [out] | temp | The pointer of temperature value in degree celsius (C). |
| DRV_SUCCESS | : Success. |
| DRV_READ_FAILED | : Failed to read from the device or module. |
| DRV_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_RVDT_RVDT_GETTEMP_01 | HLR_RVDT_29269 | WHEN the pointer temp is NULL (invalid), the rvdt_getTemp() function SHALL abort processing and return DRV_INVALID_PARAM. | rvdt.c:rvdt_getTemp() | Test | Closed |
| LLR_RVDT_RVDT_GETTEMP_02 | HLR_RVDT_29269 | WHEN a driver operation reports a failure status other than DRV_SUCCESS, the rvdt_getTemp() function SHALL abort processing and return that driver failure status. | rvdt.c:rvdt_getTemp() | Test | Closed |
| LLR_RVDT_RVDT_GETTEMP_03 | HLR_RVDT_29269 | WHEN preconditions are satisfied, the rvdt_getTemp() function SHALL read the RVDT module device block members memory offset (RVDT_TEMP_RAW) at physical offset 0x028C (MMAP_RVDT_TEMP_RAW) using readRvdtReg(). | rvdt.c:rvdt_getTemp() | Test | Closed |
| LLR_RVDT_RVDT_GETTEMP_04 | HLR_RVDT_29269 | WHEN all operational processing completes successfully, the rvdt_getTemp() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_getTemp() | Test | Closed |
| DriverStatus rvdt_initDev | ( | const RvdtDevHandler | rvdtDevHdl | ) |
rvdt_initDev.
Initialize RVDT device.
| [in] | rvdtDevHdl | The RVDT device handler. |
| DRV_SUCCESS | : Success. |
| DRV_WRITE_FAILED | : Failed to write to the device or module. |
| DRV_READ_FAILED | : Failed to read from the device or module. |
| DRV_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_RVDT_RVDT_INITDEV_01 | HLR_RVDT_31389 | WHEN a driver operation reports a failure status other than DRV_SUCCESS, the rvdt_initDev() function SHALL abort processing and return that driver failure status. | rvdt.c:rvdt_initDev() | Test | Closed |
| LLR_RVDT_RVDT_INITDEV_02 | HLR_RVDT_31389 | WHEN preconditions are satisfied, the rvdt_initDev() function SHALL read the RVDT module device block members memory offset (RVDT_CONTROL_CMD) at physical offset 0x0258 (MMAP_RVDT_CONTROL_CMD) using readRvdtReg(). | rvdt.c:rvdt_initDev() | Test | Closed |
| LLR_RVDT_RVDT_INITDEV_03 | HLR_RVDT_31389 | WHEN preconditions are satisfied, the rvdt_initDev() function SHALL invoke bitwise routine TOGGLE_BIT() to update hardware control bit in register payload. | rvdt.c:rvdt_initDev() | Test | Closed |
| LLR_RVDT_RVDT_INITDEV_04 | HLR_RVDT_31389 | WHEN preconditions are satisfied, the rvdt_initDev() function SHALL write the RVDT module device block members memory offset (RVDT_CONTROL_CMD) at physical offset 0x0258 (MMAP_RVDT_CONTROL_CMD) using writeRvdtReg(). | rvdt.c:rvdt_initDev() | Test | Closed |
| LLR_RVDT_RVDT_INITDEV_05 | HLR_RVDT_31389 | WHEN all operational processing completes successfully, the rvdt_initDev() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_initDev() | Test | Closed |
| DriverStatus rvdt_setPowerEnable | ( | const RvdtDevHandler | rvdtDevHdl, |
| const Bool | enable ) |
rvdt_setPowerEnable.
Set enable or disable power.
| [in] | rvdtDevHdl | The RVDT device handler. |
| [in] | enable | The flag to enable or disable. |
| DRV_SUCCESS | : Success. |
| DRV_WRITE_FAILED | : Failed to write to the device or module. |
| Requirement ID | Parent HLR ID | Detailed Low-Level Requirement Statement (EARS Format) | Software Unit Reference | Verification Method | Status |
|---|---|---|---|---|---|
| LLR_RVDT_RVDT_SETPOWERENABLE_01 | HLR_RVDT_18870 | WHEN enable is FALSE, the rvdt_setPowerEnable() function SHALL configure power shutdown by setting bit 0 (shutdown) and clearing bit 1 (ADC reference disable) in register MMAP_RVDT_EN_PWR. | rvdt.c:rvdt_setPowerEnable() | Test | Closed |
| LLR_RVDT_RVDT_SETPOWERENABLE_02 | HLR_RVDT_18870 | WHEN enable is TRUE, the rvdt_setPowerEnable() function SHALL configure active power by clearing bit 0 (power up) and setting bit 1 (ADC reference enable) in register MMAP_RVDT_EN_PWR. | rvdt.c:rvdt_setPowerEnable() | Test | Closed |
| LLR_RVDT_RVDT_SETPOWERENABLE_03 | HLR_RVDT_18870 | WHEN power state configuration data is formulated, the rvdt_setPowerEnable() function SHALL write the command register using writeRvdtReg(). | rvdt.c:rvdt_setPowerEnable() | Test | Closed |
| LLR_RVDT_RVDT_SETPOWERENABLE_04 | HLR_RVDT_18870 | WHEN the register write operation fails (status not equal to DRV_SUCCESS), the rvdt_setPowerEnable() function SHALL abort processing and return that failure status. | rvdt.c:rvdt_setPowerEnable() | Test | Closed |
| LLR_RVDT_RVDT_SETPOWERENABLE_05 | HLR_RVDT_18870 | WHEN all operational processing completes successfully, the rvdt_setPowerEnable() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_setPowerEnable() | Test | Closed |
| DriverStatus rvdt_setRefConfigCommand | ( | const RvdtDevHandler | rvdtDevHdl | ) |
rvdt_setRefConfigCommand.
Set reference configure command.
| [in] | rvdtDevHdl | The RVDT device handler. |
| DRV_SUCCESS | : Success. |
| DRV_WRITE_FAILED | : Failed to write to the device or module. |
| DRV_READ_FAILED | : Failed to read from the device or module. |
| DRV_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_RVDT_RVDT_SETREFCONFIGCOMMAND_01 | HLR_RVDT_16937 | WHEN a driver operation reports a failure status other than DRV_SUCCESS, the rvdt_setRefConfigCommand() function SHALL abort processing and return that driver failure status. | rvdt.c:rvdt_setRefConfigCommand() | Test | Closed |
| LLR_RVDT_RVDT_SETREFCONFIGCOMMAND_02 | HLR_RVDT_16937 | WHEN preconditions are satisfied, the rvdt_setRefConfigCommand() function SHALL read the RVDT module device block members memory offset (RVDT_CONTROL_CMD) at physical offset 0x0258 (MMAP_RVDT_CONTROL_CMD) using readRvdtReg(). | rvdt.c:rvdt_setRefConfigCommand() | Test | Closed |
| LLR_RVDT_RVDT_SETREFCONFIGCOMMAND_03 | HLR_RVDT_16937 | WHEN preconditions are satisfied, the rvdt_setRefConfigCommand() function SHALL invoke bitwise routine TOGGLE_BIT() to update hardware control bit in register payload. | rvdt.c:rvdt_setRefConfigCommand() | Test | Closed |
| LLR_RVDT_RVDT_SETREFCONFIGCOMMAND_04 | HLR_RVDT_16937 | WHEN preconditions are satisfied, the rvdt_setRefConfigCommand() function SHALL write the RVDT module device block members memory offset (RVDT_CONTROL_CMD) at physical offset 0x0258 (MMAP_RVDT_CONTROL_CMD) using writeRvdtReg(). | rvdt.c:rvdt_setRefConfigCommand() | Test | Closed |
| LLR_RVDT_RVDT_SETREFCONFIGCOMMAND_05 | HLR_RVDT_16937 | WHEN all operational processing completes successfully, the rvdt_setRefConfigCommand() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_setRefConfigCommand() | Test | Closed |
| DriverStatus rvdt_setRefWaveEnable | ( | const RvdtDevHandler | rvdtDevHdl, |
| const Bool | enable ) |
rvdt_setRefWaveEnable.
Set RVDT reference waveform enable.
| [in] | rvdtDevHdl | The RVDT device handler. |
| [in] | enable | The flag to enable or disable. |
| DRV_SUCCESS | : Success. |
| DRV_WRITE_FAILED | : Failed to write to the device or module. |
| DRV_READ_FAILED | : Failed to read from the device or module. |
| DRV_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_RVDT_RVDT_SETREFWAVEENABLE_01 | HLR_RVDT_16938 | WHEN invoked, the rvdt_setRefWaveEnable() function SHALL read the current reference enable register MMAP_RVDT_EN_REF using readRvdtReg(). | rvdt.c:rvdt_setRefWaveEnable() | Test | Closed |
| LLR_RVDT_RVDT_SETREFWAVEENABLE_02 | HLR_RVDT_16938 | WHEN the register read operation fails (status not equal to DRV_SUCCESS), the rvdt_setRefWaveEnable() function SHALL abort processing and return that failure status. | rvdt.c:rvdt_setRefWaveEnable() | Test | Closed |
| LLR_RVDT_RVDT_SETREFWAVEENABLE_03 | HLR_RVDT_16938 | WHEN enable is FALSE, the rvdt_setRefWaveEnable() function SHALL disable reference waveform generation by clearing bit 0 in register MMAP_RVDT_EN_REF. | rvdt.c:rvdt_setRefWaveEnable() | Test | Closed |
| LLR_RVDT_RVDT_SETREFWAVEENABLE_04 | HLR_RVDT_16938 | WHEN enable is TRUE, the rvdt_setRefWaveEnable() function SHALL enable reference waveform generation by setting bit 0 in register MMAP_RVDT_EN_REF. | rvdt.c:rvdt_setRefWaveEnable() | Test | Closed |
| LLR_RVDT_RVDT_SETREFWAVEENABLE_05 | HLR_RVDT_16938 | WHEN reference waveform control bit is updated, the rvdt_setRefWaveEnable() function SHALL write back the modified register value using writeRvdtReg(). | rvdt.c:rvdt_setRefWaveEnable() | Test | Closed |
| LLR_RVDT_RVDT_SETREFWAVEENABLE_06 | HLR_RVDT_16938 | WHEN all operational processing completes successfully, the rvdt_setRefWaveEnable() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_setRefWaveEnable() | Test | Closed |
| DriverStatus rvdt_setS1s2Config | ( | const RvdtDevHandler | rvdtDevHdl, |
| const UInt8 | vcmBias ) |
rvdt_setS1s2Config.
Set RVDT s1 and s2 configuration.
| [in] | rvdtDevHdl | The RVDT device handler. |
| [in] | vcmBias | The vcm bias value (0 - 3). |
| DRV_SUCCESS | : Success. |
| DRV_WRITE_FAILED | : Failed to write to the device or module. |
| DRV_READ_FAILED | : Failed to read from the device or module. |
| DRV_INVALID_VALUE | : The vcmBias value exceed limit. |
| DRV_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_RVDT_RVDT_SETS1S2CONFIG_01 | HLR_RVDT_18870 | WHEN vcmBias is greater than RVDT_MAX_VCM_BIAS, the rvdt_setS1s2Config() function SHALL abort processing and return DRV_INVALID_VALUE. | rvdt.c:rvdt_setS1s2Config() | Test | Closed |
| LLR_RVDT_RVDT_SETS1S2CONFIG_02 | HLR_RVDT_18870 | WHEN a driver operation reports a failure status other than DRV_SUCCESS, the rvdt_setS1s2Config() function SHALL abort processing and return that driver failure status. | rvdt.c:rvdt_setS1s2Config() | Test | Closed |
| LLR_RVDT_RVDT_SETS1S2CONFIG_03 | HLR_RVDT_18870 | WHEN preconditions are satisfied, the rvdt_setS1s2Config() function SHALL read the RVDT module device block members memory offset (RVDT_EN_SENSE) at physical offset 0x000C (MMAP_RVDT_EN_SENSE) using readRvdtReg(). | rvdt.c:rvdt_setS1s2Config() | Test | Closed |
| LLR_RVDT_RVDT_SETS1S2CONFIG_04 | HLR_RVDT_18870 | WHEN preconditions are satisfied, the rvdt_setS1s2Config() function SHALL write the RVDT module device block members memory offset (RVDT_EN_SENSE) at physical offset 0x000C (MMAP_RVDT_EN_SENSE) using writeRvdtReg(). | rvdt.c:rvdt_setS1s2Config() | Test | Closed |
| LLR_RVDT_RVDT_SETS1S2CONFIG_05 | HLR_RVDT_18870 | WHEN all operational processing completes successfully, the rvdt_setS1s2Config() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_setS1s2Config() | Test | Closed |
| DriverStatus rvdt_setSenseConfigCommand | ( | const RvdtDevHandler | rvdtDevHdl | ) |
rvdt_setSenseConfigCommand.
Set sense configure command.
| [in] | rvdtDevHdl | The RVDT device handler. |
| DRV_SUCCESS | : Success. |
| DRV_WRITE_FAILED | : Failed to write to the device or module. |
| DRV_READ_FAILED | : Failed to read from the device or module. |
| DRV_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_RVDT_RVDT_SETSENSECONFIGCOMMAND_01 | HLR_RVDT_16940 | WHEN a driver operation reports a failure status other than DRV_SUCCESS, the rvdt_setSenseConfigCommand() function SHALL abort processing and return that driver failure status. | rvdt.c:rvdt_setSenseConfigCommand() | Test | Closed |
| LLR_RVDT_RVDT_SETSENSECONFIGCOMMAND_02 | HLR_RVDT_16940 | WHEN preconditions are satisfied, the rvdt_setSenseConfigCommand() function SHALL read the RVDT module device block members memory offset (RVDT_CONTROL_CMD) at physical offset 0x0258 (MMAP_RVDT_CONTROL_CMD) using readRvdtReg(). | rvdt.c:rvdt_setSenseConfigCommand() | Test | Closed |
| LLR_RVDT_RVDT_SETSENSECONFIGCOMMAND_03 | HLR_RVDT_16940 | WHEN preconditions are satisfied, the rvdt_setSenseConfigCommand() function SHALL invoke bitwise routine TOGGLE_BIT() to update hardware control bit in register payload. | rvdt.c:rvdt_setSenseConfigCommand() | Test | Closed |
| LLR_RVDT_RVDT_SETSENSECONFIGCOMMAND_04 | HLR_RVDT_16940 | WHEN preconditions are satisfied, the rvdt_setSenseConfigCommand() function SHALL write the RVDT module device block members memory offset (RVDT_CONTROL_CMD) at physical offset 0x0258 (MMAP_RVDT_CONTROL_CMD) using writeRvdtReg(). | rvdt.c:rvdt_setSenseConfigCommand() | Test | Closed |
| LLR_RVDT_RVDT_SETSENSECONFIGCOMMAND_05 | HLR_RVDT_16940 | WHEN all operational processing completes successfully, the rvdt_setSenseConfigCommand() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_setSenseConfigCommand() | Test | Closed |
| DriverStatus rvdt_setSenseEnable | ( | const RvdtDevHandler | rvdtDevHdl, |
| const Bool | enable ) |
rvdt_setSenseEnable.
Set RVDT sense enable or disable.
| [in] | rvdtDevHdl | The RVDT device handler. |
| [in] | enable | The flag to enable or disable. |
| DRV_SUCCESS | : Success. |
| DRV_WRITE_FAILED | : Failed to write to the device or module. |
| DRV_READ_FAILED | : Failed to read from the device or module. |
| DRV_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_RVDT_RVDT_SETSENSEENABLE_01 | HLR_RVDT_16942 | WHEN invoked, the rvdt_setSenseEnable() function SHALL read the current demodulator control register MMAP_RVDT_CONTROL_CMD using readRvdtReg(). | rvdt.c:rvdt_setSenseEnable() | Test | Closed |
| LLR_RVDT_RVDT_SETSENSEENABLE_02 | HLR_RVDT_16942 | WHEN the register read operation fails (status not equal to DRV_SUCCESS), the rvdt_setSenseEnable() function SHALL abort processing and return that failure status. | rvdt.c:rvdt_setSenseEnable() | Test | Closed |
| LLR_RVDT_RVDT_SETSENSEENABLE_03 | HLR_RVDT_16942 | WHEN enable is FALSE, the rvdt_setSenseEnable() function SHALL disable demodulator sense by clearing bit 1 in register MMAP_RVDT_CONTROL_CMD. | rvdt.c:rvdt_setSenseEnable() | Test | Closed |
| LLR_RVDT_RVDT_SETSENSEENABLE_04 | HLR_RVDT_16942 | WHEN enable is TRUE, the rvdt_setSenseEnable() function SHALL enable demodulator sense by setting bit 1 in register MMAP_RVDT_CONTROL_CMD. | rvdt.c:rvdt_setSenseEnable() | Test | Closed |
| LLR_RVDT_RVDT_SETSENSEENABLE_05 | HLR_RVDT_16942 | WHEN demodulator sense bit is updated, the rvdt_setSenseEnable() function SHALL write back the modified register value using writeRvdtReg(). | rvdt.c:rvdt_setSenseEnable() | Test | Closed |
| LLR_RVDT_RVDT_SETSENSEENABLE_06 | HLR_RVDT_16942 | WHEN all operational processing completes successfully, the rvdt_setSenseEnable() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_setSenseEnable() | Test | Closed |
| DriverStatus rvdt_setSenseFilterCommand | ( | const RvdtDevHandler | rvdtDevHdl | ) |
rvdt_setSenseFilterCommand
Set sense filter command.
| [in] | rvdtDevHdl | The RVDT device handler. |
| DRV_SUCCESS | : Success. |
| DRV_WRITE_FAILED | : Failed to write to the device or module. |
| DRV_READ_FAILED | : Failed to read from the device or module. |
| DRV_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_RVDT_RVDT_SETSENSEFILTERCOMMAND_01 | HLR_RVDT_18873 | WHEN a driver operation reports a failure status other than DRV_SUCCESS, the rvdt_setSenseFilterCommand() function SHALL abort processing and return that driver failure status. | rvdt.c:rvdt_setSenseFilterCommand() | Test | Closed |
| LLR_RVDT_RVDT_SETSENSEFILTERCOMMAND_02 | HLR_RVDT_18873 | WHEN preconditions are satisfied, the rvdt_setSenseFilterCommand() function SHALL read the RVDT module device block members memory offset (RVDT_CONTROL_CMD) at physical offset 0x0258 (MMAP_RVDT_CONTROL_CMD) using readRvdtReg(). | rvdt.c:rvdt_setSenseFilterCommand() | Test | Closed |
| LLR_RVDT_RVDT_SETSENSEFILTERCOMMAND_03 | HLR_RVDT_18873 | WHEN preconditions are satisfied, the rvdt_setSenseFilterCommand() function SHALL invoke bitwise routine TOGGLE_BIT() to update hardware control bit in register payload. | rvdt.c:rvdt_setSenseFilterCommand() | Test | Closed |
| LLR_RVDT_RVDT_SETSENSEFILTERCOMMAND_04 | HLR_RVDT_18873 | WHEN preconditions are satisfied, the rvdt_setSenseFilterCommand() function SHALL write the RVDT module device block members memory offset (RVDT_CONTROL_CMD) at physical offset 0x0258 (MMAP_RVDT_CONTROL_CMD) using writeRvdtReg(). | rvdt.c:rvdt_setSenseFilterCommand() | Test | Closed |
| LLR_RVDT_RVDT_SETSENSEFILTERCOMMAND_05 | HLR_RVDT_18873 | WHEN all operational processing completes successfully, the rvdt_setSenseFilterCommand() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_setSenseFilterCommand() | Test | Closed |
| DriverStatus rvdt_setTestMux | ( | const RvdtDevHandler | rvdtDevHdl, |
| const Bool | enable ) |
rvdt_setTestMux
Set to test mux.
| [in] | rvdtDevHdl | The RVDT device handler. |
| [in] | enable | The flag to enable or disable. |
| DRV_SUCCESS | : Success. |
| DRV_WRITE_FAILED | : Failed to write to the device or module. |
| DRV_READ_FAILED | : Failed to read from the device or module. |
| DRV_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_RVDT_RVDT_SETTESTMUX_01 | HLR_RVDT_18870 | WHEN invoked, the rvdt_setTestMux() function SHALL read the current multiplexer enable register MMAP_RVDT_EN_SENSE using readRvdtReg(). | rvdt.c:rvdt_setTestMux() | Test | Closed |
| LLR_RVDT_RVDT_SETTESTMUX_02 | HLR_RVDT_18870 | WHEN the register read operation fails (status not equal to DRV_SUCCESS), the rvdt_setTestMux() function SHALL abort processing and return that failure status. | rvdt.c:rvdt_setTestMux() | Test | Closed |
| LLR_RVDT_RVDT_SETTESTMUX_03 | HLR_RVDT_18870 | WHEN enable is FALSE, the rvdt_setTestMux() function SHALL disable the test multiplexer channels by clearing bit 1 and bit 2 in register MMAP_RVDT_EN_SENSE. | rvdt.c:rvdt_setTestMux() | Test | Closed |
| LLR_RVDT_RVDT_SETTESTMUX_04 | HLR_RVDT_18870 | WHEN enable is TRUE, the rvdt_setTestMux() function SHALL enable the test multiplexer channels by setting bit 1 and bit 2 in register MMAP_RVDT_EN_SENSE. | rvdt.c:rvdt_setTestMux() | Test | Closed |
| LLR_RVDT_RVDT_SETTESTMUX_05 | HLR_RVDT_18870 | WHEN test multiplexer control bits are updated, the rvdt_setTestMux() function SHALL write back the modified register value using writeRvdtReg(). | rvdt.c:rvdt_setTestMux() | Test | Closed |
| LLR_RVDT_RVDT_SETTESTMUX_06 | HLR_RVDT_18870 | WHEN all operational processing completes successfully, the rvdt_setTestMux() function SHALL return DRV_SUCCESS. | rvdt.c:rvdt_setTestMux() | Test | Closed |