Functions | |
void | Cy_DSADC_EnableHPBGR (PACSS_MMIO_Type *base, const cy_stc_dsadc_hpbgr_config_t *config) |
Configure and enable the High Precision Band Gap Reference (HPBGR). More... | |
void | Cy_DSADC_DisableHPBGR (PACSS_MMIO_Type *base) |
Disable the High Precision Band Gap Reference (HPBGR). More... | |
void | Cy_DSADC_SetGroundReference (PACSS_MMIO_Type *base, cy_en_dsadc_ground_reference_t select) |
Set the ground connection for the high voltage divider. More... | |
uint16_t | Cy_DSADC_GetThresholdCount (const PACSS_MMIO_Type *base, cy_en_dsadc_threshold_select_t select) |
Get the status counter value that indicates how many time low or high threshold is crossed. More... | |
void | Cy_DSADC_SetChoppingPosition (PACSS_MMIO_Type *base, cy_en_dsadc_hpbgr_chopping_phase_t select) |
Set the chopping position. More... | |
cy_en_dsadc_hpbgr_chopping_phase_t | Cy_DSADC_GetChoppingPosition (const PACSS_MMIO_Type *base) |
Get the chopping position. More... | |
void | Cy_DSADC_AgcInit (PACSS_MMIO_Type *base, const cy_stc_dsadc_agc_config_t *config) |
Configure the Automatic Gain Correction (AGC). More... | |
void | Cy_DSADC_AgcEnable (PACSS_MMIO_Type *base) |
Enable Automatic Gain Correction (AGC). More... | |
void | Cy_DSADC_AgcDisable (PACSS_MMIO_Type *base) |
Disable Automatic Gain Correction (AGC). More... | |
bool | Cy_DSADC_AgcIsEnabled (const PACSS_MMIO_Type *base) |
Returns the AGC status register value. More... | |
void | Cy_DSADC_AgcSetGainCorrection (PACSS_MMIO_Type *base, uint8_t index, uint16_t gain) |
Set the gain correction factor for the specified AGC gain level. More... | |
void | Cy_DSADC_AgcSetOffsetCorrection (PACSS_MMIO_Type *base, uint8_t index, int16_t offset) |
Set the offset correction factor for the specified AGC gain level. More... | |
void | Cy_DSADC_EnableLowDropoutRegulator (PACSS_MMIO_Type *base) |
Enables the LDO, which provides voltage to the modulator. More... | |
void | Cy_DSADC_DisableLowDropoutRegulator (PACSS_MMIO_Type *base) |
Disables the LDO, which provides voltage to the modulator. More... | |
void | Cy_DSADC_SetAccumulatorThreshold (PACSS_DCHAN_Type *base, int32_t threshold) |
Sets the threshold for the accumulator. More... | |
void | Cy_DSADC_ResetAccumulator (PACSS_DCHAN_Type *base) |
Resets the accumulated result to zero. More... | |
void | Cy_DSADC_StartConversionAll (PACSS_MMIO_Type *base) |
Triggers the conversion for all enabled primary channels. More... | |
void | Cy_DSADC_PendSecondConvAll (PACSS_MMIO_Type *base) |
Triggers the conversion for all enabled secondary channels. More... | |
void Cy_DSADC_EnableHPBGR | ( | PACSS_MMIO_Type * | base, |
const cy_stc_dsadc_hpbgr_config_t * | config | ||
) |
Configure and enable the High Precision Band Gap Reference (HPBGR).
base | The pointer to the MMIO instance of the PACSS. |
config | Configuration options for the HPBGR. See cy_stc_dsadc_hpbgr_config_t. |
void Cy_DSADC_DisableHPBGR | ( | PACSS_MMIO_Type * | base | ) |
Disable the High Precision Band Gap Reference (HPBGR).
base | The pointer to the MMIO instance of the PACSS. |
void Cy_DSADC_SetGroundReference | ( | PACSS_MMIO_Type * | base, |
cy_en_dsadc_ground_reference_t | select | ||
) |
Set the ground connection for the high voltage divider.
base | The pointer to the MMIO instance of the PACSS. |
select | Ground Reference Selection. see cy_en_dsadc_ground_reference_t |
uint16_t Cy_DSADC_GetThresholdCount | ( | const PACSS_MMIO_Type * | base, |
cy_en_dsadc_threshold_select_t | select | ||
) |
Get the status counter value that indicates how many time low or high threshold is crossed.
base | The pointer to the MMIO instance of the PACSS. |
select | Select to get low ot high threshold count value. See cy_en_dsadc_threshold_select_t |
void Cy_DSADC_SetChoppingPosition | ( | PACSS_MMIO_Type * | base, |
cy_en_dsadc_hpbgr_chopping_phase_t | select | ||
) |
Set the chopping position.
base | The pointer to the MMIO instance of the PACSS. |
select | Chopping position select CY_DSADC_HPBGR_CHOPPING_PHASE_NORMAL or CY_DSADC_HPBGR_CHOPPING_PHASE_REVERSE. See cy_en_dsadc_hpbgr_chopping_phase_t |
cy_en_dsadc_hpbgr_chopping_phase_t Cy_DSADC_GetChoppingPosition | ( | const PACSS_MMIO_Type * | base | ) |
Get the chopping position.
base | The pointer to the MMIO instance of the PACSS. |
void Cy_DSADC_AgcInit | ( | PACSS_MMIO_Type * | base, |
const cy_stc_dsadc_agc_config_t * | config | ||
) |
Configure the Automatic Gain Correction (AGC).
base | The pointer to the MMIO instance of the PACSS. |
config | Configuration options for the AGC. See cy_stc_dsadc_agc_config_t |
void Cy_DSADC_AgcEnable | ( | PACSS_MMIO_Type * | base | ) |
Enable Automatic Gain Correction (AGC).
base | The pointer to the MMIO instance of the PACSS. |
void Cy_DSADC_AgcDisable | ( | PACSS_MMIO_Type * | base | ) |
Disable Automatic Gain Correction (AGC).
base | The pointer to the MMIO instance of the PACSS. |
bool Cy_DSADC_AgcIsEnabled | ( | const PACSS_MMIO_Type * | base | ) |
Returns the AGC status register value.
base | The pointer to the MMIO instance of the PACSS. |
void Cy_DSADC_AgcSetGainCorrection | ( | PACSS_MMIO_Type * | base, |
uint8_t | index, | ||
uint16_t | gain | ||
) |
Set the gain correction factor for the specified AGC gain level.
base | The pointer to the MMIO instance of the PACSS. |
index | AGC gain level. Valid inputs are between 0 and 9. |
gain | Gain correction factor. |
void Cy_DSADC_AgcSetOffsetCorrection | ( | PACSS_MMIO_Type * | base, |
uint8_t | index, | ||
int16_t | offset | ||
) |
Set the offset correction factor for the specified AGC gain level.
base | The pointer to the MMIO instance of the PACSS. |
index | AGC gain level. Valid inputs are between 0 and 9. |
offset | Offset correction factor. Valid inputs are between -32768 and 32767. |
void Cy_DSADC_EnableLowDropoutRegulator | ( | PACSS_MMIO_Type * | base | ) |
Enables the LDO, which provides voltage to the modulator.
base | The pointer to the MMIO instance of the PACSS. |
void Cy_DSADC_DisableLowDropoutRegulator | ( | PACSS_MMIO_Type * | base | ) |
Disables the LDO, which provides voltage to the modulator.
base | The pointer to the MMIO instance of the PACSS. |
void Cy_DSADC_SetAccumulatorThreshold | ( | PACSS_DCHAN_Type * | base, |
int32_t | threshold | ||
) |
Sets the threshold for the accumulator.
base | The base address for the Digital Channel. |
threshold | Accumulator Threshold valid value are between -2147483648 and 2147483647. |
void Cy_DSADC_ResetAccumulator | ( | PACSS_DCHAN_Type * | base | ) |
Resets the accumulated result to zero.
base | The base address for the Digital Channel. |
void Cy_DSADC_StartConversionAll | ( | PACSS_MMIO_Type * | base | ) |
Triggers the conversion for all enabled primary channels.
base | The pointer to the MMIO instance of the PACSS. |
void Cy_DSADC_PendSecondConvAll | ( | PACSS_MMIO_Type * | base | ) |
Triggers the conversion for all enabled secondary channels.
base | The pointer to the MMIO instance of the PACSS. |