Functions | |
| void | SDHS_init (uint16_t baseAddress, SDHS_initParam *param) |
| Initializes the SDHS module. More... | |
| void | SDHS_setWindowComp (uint16_t baseAddress, uint16_t highThreshold, uint16_t lowThreshold) |
| Sets the high and low threshold for the window comparator feature. More... | |
| void | SDHS_setTotalSampleSize (uint16_t baseAddress, uint16_t sampleSize) |
| Sets total sample size. More... | |
| void | SDHS_enableTrigger (uint16_t baseAddress) |
| Enables the SDHS Trigger. More... | |
| void | SDHS_disableTrigger (uint16_t baseAddress) |
| Disables the SDHS Trigger. More... | |
| void | SDHS_enable (uint16_t baseAddress) |
| Turn On Module. More... | |
| void | SDHS_disable (uint16_t baseAddress) |
| Turn Off Module. More... | |
| uint16_t | SDHS_getInterruptStatus (uint16_t baseAddress, uint16_t interruptMask) |
| Returns the status of the selected interrupt flags. More... | |
| uint16_t | SDHS_getInterruptMaskStatus (uint16_t baseAddress, uint16_t interruptMask) |
| Returns the mask status of the selected interrupt. More... | |
| void | SDHS_enableInterrupt (uint16_t baseAddress, uint16_t interruptMask) |
| Enable SDHS selected interrupt masks. More... | |
| void | SDHS_disableInterrupt (uint16_t baseAddress, uint16_t interruptMask) |
| Disable SDHS selected interrupt masks. More... | |
| void | SDHS_clearInterrupt (uint16_t baseAddress, uint16_t interruptMask) |
| Clears SDHS selected interrupt flags. More... | |
| void | SDHS_setInterrupt (uint16_t baseAddress, uint16_t interruptMask) |
| Set SDHS selected interrupts. More... | |
| void | SDHS_setPGAGain (uint16_t baseAddress, uint16_t gain) |
| Set PGA Gain. More... | |
| void | SDHS_setModularOptimization (uint16_t baseAddress, uint16_t optimization) |
| Set Modular Optimization. More... | |
| uint16_t | SDHS_getRegisterLockStatus (uint16_t baseAddress) |
| Returns the lock status of the registers. More... | |
| void | SDHS_startConversion (uint16_t baseAddress) |
| Start Conversion. More... | |
| void | SDHS_endConversion (uint16_t baseAddress) |
| End Conversion. More... | |
| uint16_t | SDHS_getResults (uint16_t baseAddress) |
| Returns the contents of the Data Conversion Register. More... | |
| void | SDHS_setDTCDestinationAddress (uint16_t baseAddress, uint16_t address) |
| Sets the DTC destination address. More... | |
| void SDHS_clearInterrupt | ( | uint16_t | baseAddress, |
| uint16_t | interruptMask | ||
| ) |
Clears SDHS selected interrupt flags.
| baseAddress | is the base address of the SDHS module. |
| interruptMask | Mask value is the logical OR of any of the following: Valid values are:
|
Modified registers are SDHSICR
| void SDHS_disable | ( | uint16_t | baseAddress | ) |
Turn Off Module.
Turn Off Module
| baseAddress | is the base address of the SDHS module. |
| void SDHS_disableInterrupt | ( | uint16_t | baseAddress, |
| uint16_t | interruptMask | ||
| ) |
Disable SDHS selected interrupt masks.
| baseAddress | is the base address of the SDHS module. |
| interruptMask | Mask value is the logical OR of any of the following: Valid values are:
|
Modified registers are SDHSIMSC
| void SDHS_disableTrigger | ( | uint16_t | baseAddress | ) |
Disables the SDHS Trigger.
Disables the SDHS Trigger.
| baseAddress | is the base address of the SDHS module. |
| void SDHS_enable | ( | uint16_t | baseAddress | ) |
Turn On Module.
Turn On Module
| baseAddress | is the base address of the SDHS module. |
| void SDHS_enableInterrupt | ( | uint16_t | baseAddress, |
| uint16_t | interruptMask | ||
| ) |
Enable SDHS selected interrupt masks.
| baseAddress | is the base address of the SDHS module. |
| interruptMask | Mask value is the logical OR of any of the following: Valid values are:
|
Modified registers are SDHSIMSC
| void SDHS_enableTrigger | ( | uint16_t | baseAddress | ) |
Enables the SDHS Trigger.
Enables the SDHS Trigger.
| baseAddress | is the base address of the SDHS module. |
| void SDHS_endConversion | ( | uint16_t | baseAddress | ) |
End Conversion.
End Conversion
| baseAddress | is the base address of the SDHS module. |
| uint16_t SDHS_getInterruptMaskStatus | ( | uint16_t | baseAddress, |
| uint16_t | interruptMask | ||
| ) |
Returns the mask status of the selected interrupt.
Returns the mask status of the selected interrupt flags.
| baseAddress | is the base address of the SDHS module. |
| interruptMask | Mask value is the logical OR of any of the following: Valid values are:
|
| uint16_t SDHS_getInterruptStatus | ( | uint16_t | baseAddress, |
| uint16_t | interruptMask | ||
| ) |
Returns the status of the selected interrupt flags.
Returns the status of the selected interrupt flags.
| baseAddress | is the base address of the SDHS module. |
| interruptMask | Mask value is the logical OR of any of the following: Valid values are:
|
| uint16_t SDHS_getRegisterLockStatus | ( | uint16_t | baseAddress | ) |
Returns the lock status of the registers.
Returns the lock status of the registers
| baseAddress | is the base address of the SDHS module. |
| uint16_t SDHS_getResults | ( | uint16_t | baseAddress | ) |
Returns the contents of the Data Conversion Register.
Returns the contents of the Data Conversion Register. The sign bit is extended up to the bit 15.
| baseAddress | is the base address of the SDHS module. |
| void SDHS_init | ( | uint16_t | baseAddress, |
| SDHS_initParam * | param | ||
| ) |
Initializes the SDHS module.
Initializes the SDHS moduleress
| baseAddress | is the base address of the SDHS module. |
| params | is the pointer to the initialization structure |
At the end of this call the TRIGEN and SDHS_LOCK bits are reset
References SDHS_initParam::autoSampleStart, SDHS_initParam::dataAlignment, SDHS_initParam::dataFormat, SDHS_initParam::dataTransferController, SDHS_initParam::interruptDelayGeneration, SDHS_initParam::msbShift, SDHS_initParam::outputBitResolution, SDHS_initParam::oversamplingRate, SDHS_initParam::sampleSizeCounting, SDHS_initParam::triggerSourceSelect, and SDHS_initParam::windowComparator.
| void SDHS_setDTCDestinationAddress | ( | uint16_t | baseAddress, |
| uint16_t | address | ||
| ) |
Sets the DTC destination address.
Sets the DTC Destination Address
| baseAddress | is the base address of the SDHS module. |
| address | is the destination address to be set |
| void SDHS_setInterrupt | ( | uint16_t | baseAddress, |
| uint16_t | interruptMask | ||
| ) |
Set SDHS selected interrupts.
| baseAddress | is the base address of the SDHS module. |
| interruptMask | Mask value is the logical OR of any of the following: Valid values are:
|
Modified registers are SDHSISR
| void SDHS_setModularOptimization | ( | uint16_t | baseAddress, |
| uint16_t | optimization | ||
| ) |
Set Modular Optimization.
Set Modular Optimization. Upper bound of optimization parameter label is non-inclusive. For example, if your PLL output frequency is 77 MHz, you should select SDHS_OPTIMIZE_PLL_OUTPUT_FREQUENCY_77_80MHz for optimization parameter.
| baseAddress | is the base address of the SDHS module. |
| optimization | is the Modular Optimization value Valid values are:
|
| void SDHS_setPGAGain | ( | uint16_t | baseAddress, |
| uint16_t | gain | ||
| ) |
Set PGA Gain.
Set PGA Gain
| baseAddress | is the base address of the SDHS module. |
| gain | is the PGA Gain control value |
| void SDHS_setTotalSampleSize | ( | uint16_t | baseAddress, |
| uint16_t | sampleSize | ||
| ) |
Sets total sample size.
Note that SDHSCTL2.SMPSZ includes the samples skipped by SDHSCTL0.INTDLY:
| baseAddress | is the base address of the SDHS module. |
| sampleSize | is the total number of samples SDHS generates + 1 |
| void SDHS_setWindowComp | ( | uint16_t | baseAddress, |
| uint16_t | highThreshold, | ||
| uint16_t | lowThreshold | ||
| ) |
Sets the high and low threshold for the window comparator feature.
Sets the high and low threshold for the window comparator feature.
| baseAddress | is the base address of the SDHS module. |
| highThreshold | is the upper bound that could trip an interrupt for the window comparator. |
| lowThreshold | is the lower bound that could trip on interrupt for the window comparator. |
| void SDHS_startConversion | ( | uint16_t | baseAddress | ) |
Start Conversion.
Start Conversion
| baseAddress | is the base address of the SDHS module. |