Functions | |
void | Cy_DSADC_LockProtReg (PACSS_MMIO_Type *base) |
Lock the protected registers. More... | |
void | Cy_DSADC_UnlockProtReg (PACSS_MMIO_Type *base) |
Unlock the protected registers. More... | |
bool | Cy_DSADC_GetLockStatus (const PACSS_MMIO_Type *base) |
Get the status of the protection register that is needed to be accessed to unlock Lock Protected Registers. More... | |
void | Cy_DSADC_Init (const PACSS_Type *base, cy_stc_dsadc_config_t *config) |
Full Init of the sigma-delta AGC. More... | |
void | Cy_DSADC_Deinit (const PACSS_Type *base) |
Full DeInit of the sigma-delta AGC. More... | |
void | Cy_DSADC_Enable (const PACSS_Type *base, cy_stc_dsadc_config_t *config) |
Full Enable configured parts of the sigma-delta AGC. More... | |
void | Cy_DSADC_Disable (const PACSS_Type *base) |
Full Disable all parts of the sigma-delta ADC. More... | |
void | Cy_DSADC_EnableSequencer (PACSS_MMIO_Type *base) |
Enable the ADC Sequencer and AREF. More... | |
void | Cy_DSADC_DisableSequencer (PACSS_MMIO_Type *base) |
Disable the ADC Sequencer. More... | |
bool | Cy_DSADC_GetSequencerBusy (const PACSS_MMIO_Type *base, uint8_t channel) |
Get the sequencer status. More... | |
uint8_t | Cy_DSADC_AgcGetGainLevel (const PACSS_MMIO_Type *base) |
Get current gain level. More... | |
uint16_t | Cy_DSADC_AgcGetFastDecimatorResult (const PACSS_MMIO_Type *base) |
Get the AGC Fast Decimator Result. More... | |
float32_t | Cy_DSADC_CountsTo_Volts (int32_t counts, float32_t vref, float32_t analogGain, cy_stc_dsadc_dchan_config_t *dchan_config) |
Converts the input from raw DSADC counts to Volts. More... | |
float32_t | Cy_DSADC_CountsTo_mVolts (int32_t counts, float32_t vref, float32_t analogGain, cy_stc_dsadc_dchan_config_t *dchan_config) |
Converts the input from raw DSADC counts to millivolts. More... | |
float32_t | Cy_DSADC_CountsTo_uVolts (int32_t counts, float32_t vref, float32_t analogGain, cy_stc_dsadc_dchan_config_t *dchan_config) |
Converts the input from raw DSADC counts to microvolts. More... | |
void | Cy_DSADC_ConnectTemperature (PACSS_MMIO_Type *base, uint32_t selectMask) |
Connects the specified pin to the parts of the on-die temperature sensor. More... | |
void | Cy_DSADC_DisconnectTemperature (PACSS_MMIO_Type *base, uint32_t selectMask) |
Disconnects the specified pin from the parts of the on-die temperature sensor. More... | |
void | Cy_DSADC_EnableTemperature (PACSS_MMIO_Type *base) |
Enables the on-die temperature sensor. More... | |
void | Cy_DSADC_DisableTemperature (PACSS_MMIO_Type *base) |
Enables the on-die temperature sensor. More... | |
void | Cy_DSADC_InitTemperature (PACSS_MMIO_Type *base, cy_stc_dsadc_temperature_config_t *config) |
Initializes the on-die temperature sensor. More... | |
void | Cy_DSADC_InitializeDieTempConfigs (cy_stc_dsadc_temperature_config_t *one, cy_stc_dsadc_temperature_config_t *unit, cy_en_dsadc_temperature_setup_t setup, cy_en_dsadc_temp_volt_meas_t target) |
Initialize the two configurations used for on-die temperature measurement with the value derived from the measurement conditions data stored in SFLASH. More... | |
uint32_t | Cy_DSADC_CalcCurrentRatio (int32_t currentOne, int32_t currentUnit) |
Initialize the two configurations used for on-die temperature measurement with the value derived from the measurement conditions data stored in SFLASH. More... | |
int32_t | Cy_DSADC_CalcDieTemp (int32_t vbeOne, int32_t vbeUnit, uint32_t currentRatio, cy_en_dsadc_temperature_setup_t setup) |
Calculate on-die temperature with delta VBE measurement and current ratio, normalize the Delta VBE measurement to the ratio of the current sources, converting the delta between two on-die temperature measurements to degree celsius. More... | |
void | Cy_DSADC_StartConvert (PACSS_Type *base, cy_en_dsadc_convert_source_t source) |
Start convert selected source. More... | |
void | Cy_DSADC_StopConvert (PACSS_DCHAN_Type *base) |
Stop convert selected source. More... | |
void | Cy_DSADC_EnableLowPowerMode (PACSS_MMIO_Type *base) |
Enables the AREF lower power mode. More... | |
void | Cy_DSADC_DisableLowPowerMode (PACSS_MMIO_Type *base) |
Disables the AREF lower power mode. More... | |
void Cy_DSADC_LockProtReg | ( | PACSS_MMIO_Type * | base | ) |
Lock the protected registers.
base | The pointer to the MMIO instance of the PACSS. |
void Cy_DSADC_UnlockProtReg | ( | PACSS_MMIO_Type * | base | ) |
Unlock the protected registers.
base | The pointer to the MMIO instance of the PACSS. |
bool Cy_DSADC_GetLockStatus | ( | const PACSS_MMIO_Type * | base | ) |
Get the status of the protection register that is needed to be accessed to unlock Lock Protected Registers.
base | The pointer to the MMIO instance of the PACSS. |
void Cy_DSADC_Init | ( | const PACSS_Type * | base, |
cy_stc_dsadc_config_t * | config | ||
) |
Full Init of the sigma-delta AGC.
base | The base address for the PACSS. |
config | Configuration options for the PACSS. See cy_stc_dsadc_config_t. |
void Cy_DSADC_Deinit | ( | const PACSS_Type * | base | ) |
Full DeInit of the sigma-delta AGC.
base | The base address for the PACSS. |
void Cy_DSADC_Enable | ( | const PACSS_Type * | base, |
cy_stc_dsadc_config_t * | config | ||
) |
Full Enable configured parts of the sigma-delta AGC.
base | The base address for the PACSS. |
config | Configuration options for the PACSS. See cy_stc_dsadc_config_t. |
void Cy_DSADC_Disable | ( | const PACSS_Type * | base | ) |
Full Disable all parts of the sigma-delta ADC.
base | The base address for the PACSS. |
void Cy_DSADC_EnableSequencer | ( | PACSS_MMIO_Type * | base | ) |
Enable the ADC Sequencer and AREF.
base | The pointer to the MMIO instance of the PACSS. |
void Cy_DSADC_DisableSequencer | ( | PACSS_MMIO_Type * | base | ) |
Disable the ADC Sequencer.
base | The pointer to the MMIO instance of the PACSS. |
bool Cy_DSADC_GetSequencerBusy | ( | const PACSS_MMIO_Type * | base, |
uint8_t | channel | ||
) |
Get the sequencer status.
base | The pointer to the MMIO instance of the PACSS. |
channel | Analog channel index. Valid inputs are between 0 and 1. |
uint8_t Cy_DSADC_AgcGetGainLevel | ( | const PACSS_MMIO_Type * | base | ) |
Get current gain level.
base | The pointer to the MMIO instance of the PACSS. |
uint16_t Cy_DSADC_AgcGetFastDecimatorResult | ( | const PACSS_MMIO_Type * | base | ) |
Get the AGC Fast Decimator Result.
base | The pointer to the MMIO instance of the PACSS. |
float32_t Cy_DSADC_CountsTo_Volts | ( | int32_t | counts, |
float32_t | vref, | ||
float32_t | analogGain, | ||
cy_stc_dsadc_dchan_config_t * | dchan_config | ||
) |
Converts the input from raw DSADC counts to Volts.
counts | Conversion result from Cy_DSADC_GetResult(). |
vref | Reference voltage in Volts. |
analogGain | Analog gain value for the Digital Channel. |
dchan_config | Configuration options for the Digital Channel. See cy_stc_dsadc_dchan_config_t |
float32_t Cy_DSADC_CountsTo_mVolts | ( | int32_t | counts, |
float32_t | vref, | ||
float32_t | analogGain, | ||
cy_stc_dsadc_dchan_config_t * | dchan_config | ||
) |
Converts the input from raw DSADC counts to millivolts.
counts | Conversion result from Cy_DSADC_GetResult(). |
vref | Reference voltage in Volts. |
analogGain | Analog gain value for the Digital Channel. |
dchan_config | Configuration options for the Digital Channel. See cy_stc_dsadc_dchan_config_t |
float32_t Cy_DSADC_CountsTo_uVolts | ( | int32_t | counts, |
float32_t | vref, | ||
float32_t | analogGain, | ||
cy_stc_dsadc_dchan_config_t * | dchan_config | ||
) |
Converts the input from raw DSADC counts to microvolts.
counts | Conversion result from Cy_DSADC_GetResult(). |
vref | Reference voltage in Volts. |
analogGain | Analog gain value for the Digital Channel. |
dchan_config | Configuration options for the Digital Channel. See cy_stc_dsadc_dchan_config_t |
void Cy_DSADC_ConnectTemperature | ( | PACSS_MMIO_Type * | base, |
uint32_t | selectMask | ||
) |
Connects the specified pin to the parts of the on-die temperature sensor.
base | The pointer to the MMIO instance of the PACSS. |
selectMask | Connect the specified signal to the temperature sensor. See On-die Temperature Masks |
void Cy_DSADC_DisconnectTemperature | ( | PACSS_MMIO_Type * | base, |
uint32_t | selectMask | ||
) |
Disconnects the specified pin from the parts of the on-die temperature sensor.
base | The pointer to the MMIO instance of the PACSS. |
selectMask | Disconnect the specified signal from the temperature sensor. See On-die Temperature Masks |
void Cy_DSADC_EnableTemperature | ( | PACSS_MMIO_Type * | base | ) |
Enables the on-die temperature sensor.
base | The pointer to the MMIO instance of the PACSS. |
void Cy_DSADC_DisableTemperature | ( | PACSS_MMIO_Type * | base | ) |
Enables the on-die temperature sensor.
base | The pointer to the MMIO instance of the PACSS. |
void Cy_DSADC_InitTemperature | ( | PACSS_MMIO_Type * | base, |
cy_stc_dsadc_temperature_config_t * | config | ||
) |
Initializes the on-die temperature sensor.
base | The pointer to the MMIO instance of the PACSS. |
config | Configuration options for the temperature sensor. See cy_stc_dsadc_temperature_config_t. |
void Cy_DSADC_InitializeDieTempConfigs | ( | cy_stc_dsadc_temperature_config_t * | one, |
cy_stc_dsadc_temperature_config_t * | unit, | ||
cy_en_dsadc_temperature_setup_t | setup, | ||
cy_en_dsadc_temp_volt_meas_t | target | ||
) |
Initialize the two configurations used for on-die temperature measurement with the value derived from the measurement conditions data stored in SFLASH.
one | On-die temperature configuration for the 1x(9.6 uA) current measurement. See cy_stc_dsadc_temperature_config_t |
unit | On-die temperature configuration for 9x(9.6 uA * 9 = 86.4 uA) current measurement. See cy_stc_dsadc_temperature_config_t |
setup | Primary or alternate temperature measurement parameters selection. See cy_en_dsadc_temperature_setup_t |
target | Across resistor or transistor temperature measurement selection. See cy_en_dsadc_temp_volt_meas_t |
uint32_t Cy_DSADC_CalcCurrentRatio | ( | int32_t | currentOne, |
int32_t | currentUnit | ||
) |
Initialize the two configurations used for on-die temperature measurement with the value derived from the measurement conditions data stored in SFLASH.
currentOne | The result of 1x(one) measurement across resistor. |
currentUnit | The result of 9x(unit) measurement across resistor. |
int32_t Cy_DSADC_CalcDieTemp | ( | int32_t | vbeOne, |
int32_t | vbeUnit, | ||
uint32_t | currentRatio, | ||
cy_en_dsadc_temperature_setup_t | setup | ||
) |
Calculate on-die temperature with delta VBE measurement and current ratio, normalize the Delta VBE measurement to the ratio of the current sources, converting the delta between two on-die temperature measurements to degree celsius.
vbeOne | The result of 1x(one) measurement across transistor. |
vbeUnit | The result of 9x(unit) measurement across transistor. |
currentRatio | The ratio of measurement results across resistor. |
setup | Primary or alternate temperature measurement parameters selection. See cy_en_dsadc_temperature_setup_t |
void Cy_DSADC_StartConvert | ( | PACSS_Type * | base, |
cy_en_dsadc_convert_source_t | source | ||
) |
Start convert selected source.
base | The base address for the PACSS. |
source | Selected source to start convert |
void Cy_DSADC_StopConvert | ( | PACSS_DCHAN_Type * | base | ) |
Stop convert selected source.
base | The base address for the Digital Channel. |
void Cy_DSADC_EnableLowPowerMode | ( | PACSS_MMIO_Type * | base | ) |
Enables the AREF lower power mode.
base | The pointer to the MMIO instance of the PACSS. |
void Cy_DSADC_DisableLowPowerMode | ( | PACSS_MMIO_Type * | base | ) |
Disables the AREF lower power mode.
base | The pointer to the MMIO instance of the PACSS. |