Functions | |
| __STATIC_INLINE bool | Cy_AutAnalog_SAR_IsBusy (uint8_t sarIdx) |
| Provides the status of the ADC conversion execution at the time of the request. More... | |
| __STATIC_INLINE int32_t | Cy_AutAnalog_SAR_ReadResult (uint8_t sarIdx, cy_en_autanalog_sar_input_t input, uint8_t channel) |
| Provides the conversion data for the dedicated channel. More... | |
| float32_t | Cy_AutAnalog_SAR_CountsTo_Volts (uint8_t sarIdx, bool sarLP, uint8_t sarSequencer, cy_en_autanalog_sar_input_t sarInput, uint8_t sarChannel, uint32_t VrefmV, int32_t sarCounts) |
| Converts the ADC output to Volts. More... | |
| int16_t | Cy_AutAnalog_SAR_CountsTo_mVolts (uint8_t sarIdx, bool sarLP, uint8_t sarSequencer, cy_en_autanalog_sar_input_t sarInput, uint8_t sarChannel, uint32_t VrefmV, int32_t sarCounts) |
| Converts the ADC output to milliVolts. More... | |
| int32_t | Cy_AutAnalog_SAR_CountsTo_uVolts (uint8_t sarIdx, bool sarLP, uint8_t sarSequencer, cy_en_autanalog_sar_input_t sarInput, uint8_t sarChannel, uint32_t VrefmV, int32_t sarCounts) |
| Converts the ADC output to microVolts. More... | |
| int16_t | Cy_AutAnalog_SAR_CountsTo_degreeC (uint8_t sarIdx, bool sarLP, uint8_t sarSequencer, uint8_t sarChannel, int32_t sarCounts) |
| Converts the ADC output to degrees Celsius. More... | |
| __STATIC_INLINE bool Cy_AutAnalog_SAR_IsBusy | ( | uint8_t | sarIdx | ) |
Provides the status of the ADC conversion execution at the time of the request.
| sarIdx | The index of the ADC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::sar. |
| __STATIC_INLINE int32_t Cy_AutAnalog_SAR_ReadResult | ( | uint8_t | sarIdx, |
| cy_en_autanalog_sar_input_t | input, | ||
| uint8_t | channel | ||
| ) |
Provides the conversion data for the dedicated channel.
| sarIdx | The index of the ADC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::sar. |
| input | The ADC input type is either GPIO or MUX. |
| channel | The ADC channel for conversion
|
| float32_t Cy_AutAnalog_SAR_CountsTo_Volts | ( | uint8_t | sarIdx, |
| bool | sarLP, | ||
| uint8_t | sarSequencer, | ||
| cy_en_autanalog_sar_input_t | sarInput, | ||
| uint8_t | sarChannel, | ||
| uint32_t | VrefmV, | ||
| int32_t | sarCounts | ||
| ) |
Converts the ADC output to Volts.
| sarIdx | The index of the ADC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::sar. |
| sarLP | The operating mode of the ADC
|
| sarSequencer | The ADC sequencer to convert the output data to Volts, valid range 0...31. |
| sarInput | The ADC input type is either GPIO or MUX. |
| sarChannel | The ADC channel for conversion
|
| VrefmV | The ADC reference voltage in mV. |
| sarCounts | The conversion result, see Cy_AutAnalog_SAR_ReadResult. If conversion data is received from FIFO, see Cy_AutAnalog_FIFO_ReadWord (Cy_AutAnalog_FIFO_ReadAllData, Cy_AutAnalog_FIFO_ReadDataChanId). |
| int16_t Cy_AutAnalog_SAR_CountsTo_mVolts | ( | uint8_t | sarIdx, |
| bool | sarLP, | ||
| uint8_t | sarSequencer, | ||
| cy_en_autanalog_sar_input_t | sarInput, | ||
| uint8_t | sarChannel, | ||
| uint32_t | VrefmV, | ||
| int32_t | sarCounts | ||
| ) |
Converts the ADC output to milliVolts.
| sarIdx | The index of the ADC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::sar. |
| sarLP | The operating mode of the ADC
|
| sarSequencer | The ADC sequencer to convert the output data to milliVolts, valid range 0...31. |
| sarInput | The ADC input type is either GPIO or MUX. |
| sarChannel | The ADC channel for conversion
|
| VrefmV | The ADC reference voltage in mV. |
| sarCounts | The conversion result, see Cy_AutAnalog_SAR_ReadResult. If conversion data is received from FIFO, see Cy_AutAnalog_FIFO_ReadWord (Cy_AutAnalog_FIFO_ReadAllData, Cy_AutAnalog_FIFO_ReadDataChanId). |
| int32_t Cy_AutAnalog_SAR_CountsTo_uVolts | ( | uint8_t | sarIdx, |
| bool | sarLP, | ||
| uint8_t | sarSequencer, | ||
| cy_en_autanalog_sar_input_t | sarInput, | ||
| uint8_t | sarChannel, | ||
| uint32_t | VrefmV, | ||
| int32_t | sarCounts | ||
| ) |
Converts the ADC output to microVolts.
| sarIdx | The index of the ADC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::sar. |
| sarLP | The operating mode of the ADC
|
| sarSequencer | The ADC sequencer to convert the output data to microVolts, valid range 0...31. |
| sarInput | The ADC input type is either GPIO or MUX. |
| sarChannel | The ADC channel for conversion
|
| VrefmV | The ADC reference voltage in mV. |
| sarCounts | The conversion result, see Cy_AutAnalog_SAR_ReadResult. If conversion data is received from FIFO, see Cy_AutAnalog_FIFO_ReadWord (Cy_AutAnalog_FIFO_ReadAllData, Cy_AutAnalog_FIFO_ReadDataChanId). |
| int16_t Cy_AutAnalog_SAR_CountsTo_degreeC | ( | uint8_t | sarIdx, |
| bool | sarLP, | ||
| uint8_t | sarSequencer, | ||
| uint8_t | sarChannel, | ||
| int32_t | sarCounts | ||
| ) |
Converts the ADC output to degrees Celsius.
| sarIdx | The index of the ADC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::sar. |
| sarLP | The operating mode of the ADC
|
| sarSequencer | The ADC sequencer to convert the output data to degrees Celsius, valid range 0...31. |
| sarChannel | The ADC channel for conversion, valid range: 0...15. |
| sarCounts | The conversion result, see Cy_AutAnalog_SAR_ReadResult. If conversion data is received from FIFO, see Cy_AutAnalog_FIFO_ReadWord (Cy_AutAnalog_FIFO_ReadAllData, Cy_AutAnalog_FIFO_ReadDataChanId). |