TMPM4KxA Group Peripheral Driver User Manual
V1.0.4.0
|
Functions | |
TXZ_Result | adc_init (adc_t *p_obj) |
Initialize the ADC object. More... | |
TXZ_Result | adc_deinit (adc_t *p_obj) |
Release the ADC object. More... | |
TXZ_Result | adc_channel_setting (adc_t *p_obj, uint32_t ch, adc_channel_setting_t *p_setting) |
ADC Channel Setting. More... | |
TXZ_Result | adc_channel_clear (adc_t *p_obj, uint32_t ch) |
ADC Channel Clear. More... | |
TXZ_Result | adc_channel_get_value (adc_t *p_obj, uint32_t ch, uint32_t *p_value) |
Get AD value. More... | |
TXZ_Result | adc_start (adc_t *p_obj) |
Start blocking single conversion. More... | |
TXZ_Result | adc_stop (adc_t *p_obj) |
Stop blocking single conversion. More... | |
TXZ_Result | adc_startIt (adc_t *p_obj) |
Start non-blocking single conversion. More... | |
TXZ_Result | adc_stopIt (adc_t *p_obj) |
Stop non-blocking single conversion. More... | |
TXZ_WorkState | adc_poll_conversion (adc_t *p_obj, uint32_t timeout) |
Wait for single conversion to be completed. More... | |
void | adc_irq_handler (adc_t *p_obj) |
IRQ Handler for single conversion done. More... | |
TXZ_Result | adc_ch_init (adc_ch_t *p_obj) |
Initialize the ADC Channel object. More... | |
TXZ_Result | adc_ch_deinit (adc_ch_t *p_obj) |
Release the ADC Channel object. More... | |
TXZ_Result | adc_ch_int_enable (adc_ch_t *p_obj) |
Enable Interrupt. More... | |
TXZ_Result | adc_ch_int_disable (adc_ch_t *p_obj) |
Disable Interrupt. More... | |
TXZ_Result | adc_ch_get_value (adc_ch_t *p_obj, uint32_t *p_value) |
Get conversion value. More... | |
TXZ_Result | adc_ex_init (adc_ex_t *p_obj) |
Initialize the ADC object. More... | |
TXZ_Result | adc_ex_deinit (adc_ex_t *p_obj) |
Release the ADC object. More... | |
TXZ_Result | adc_ex_channel_setting (adc_ex_t *p_obj, uint32_t ch, adc_ex_channel_setting_t *p_setting) |
ADC Channel Setting. More... | |
TXZ_Result | adc_ex_channel_clear (adc_ex_t *p_obj, uint32_t ch) |
ADC Channel Clear. More... | |
TXZ_Result | adc_ex_channel_get_value (adc_ex_t *p_obj, uint32_t ch, uint32_t *p_value) |
Get AD value. More... | |
TXZ_Result | adc_ex_start (adc_ex_t *p_obj) |
Start Conversion. More... | |
TXZ_Result | adc_ex_stop (adc_ex_t *p_obj) |
Stop Conversion. More... | |
TXZ_Result | adc_ex_get_status (adc_ex_t *p_obj, uint32_t *p_status) |
Get Conversion Status. More... | |
void | adc_ex_single_irq_handler (adc_ex_t *p_obj) |
IRQ Handler for single conversion done. More... | |
void | adc_ex_continuity_irq_handler (adc_ex_t *p_obj) |
IRQ Handler for continuity conversion done. More... | |
void | adc_ex_trigger_irq_handler (adc_ex_t *p_obj) |
IRQ Handler for trigger conversion done. More... | |
TXZ_Result | adc_sh_init (adc_sh_t *p_obj) |
TXZ_Result | adc_sh_deinit (adc_sh_t *p_obj) |
TXZ_Result | adc_sh_set (adc_sh_t *p_obj, uint32_t upper_pattern, uint32_t lower_pattern) |
TXZ_Result | adc_sh_get (adc_sh_t *p_obj, uint32_t *p_value) |
TXZ_Result adc_ch_deinit | ( | adc_ch_t * | p_obj | ) |
Release the ADC Channel object.
p_obj | :ADC Channel object. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result adc_ch_get_value | ( | adc_ch_t * | p_obj, |
uint32_t * | p_value | ||
) |
Get conversion value.
p_obj | :ADC Channel object. |
p_value | :AD value. Destination address. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result adc_ch_init | ( | adc_ch_t * | p_obj | ) |
Initialize the ADC Channel object.
p_obj | :ADC Channel object. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result adc_ch_int_disable | ( | adc_ch_t * | p_obj | ) |
Disable Interrupt.
p_obj | :ADC Channel object. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result adc_ch_int_enable | ( | adc_ch_t * | p_obj | ) |
Enable Interrupt.
p_obj | :ADC Channel object. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result adc_channel_clear | ( | adc_t * | p_obj, |
uint32_t | ch | ||
) |
ADC Channel Clear.
p_obj | :ADC object. |
ch | :Channel. Range is (value < ADC_NUM_MAX). |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result adc_channel_get_value | ( | adc_t * | p_obj, |
uint32_t | ch, | ||
uint32_t * | p_value | ||
) |
Get AD value.
p_obj | :ADC object. |
ch | :Channel. Range is (value < ADC_NUM_MAX). |
p_value | :AD value. Destination address. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result adc_channel_setting | ( | adc_t * | p_obj, |
uint32_t | ch, | ||
adc_channel_setting_t * | p_setting | ||
) |
ADC Channel Setting.
p_obj | :ADC object. |
ch | :Channel. Range is (value < ADC_NUM_MAX). |
p_setting | :Channel Setting Source Address. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result adc_deinit | ( | adc_t * | p_obj | ) |
Release the ADC object.
p_obj | :ADC object. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result adc_ex_channel_clear | ( | adc_ex_t * | p_obj, |
uint32_t | ch | ||
) |
ADC Channel Clear.
p_obj | :ADC object. |
ch | :Channel. Range is (value < ADC_NUM_MAX). |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result adc_ex_channel_get_value | ( | adc_ex_t * | p_obj, |
uint32_t | ch, | ||
uint32_t * | p_value | ||
) |
Get AD value.
p_obj | :ADC object. |
ch | :Channel. Range is (value < ADC_NUM_MAX). |
p_value | :AD value. Destination address. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result adc_ex_channel_setting | ( | adc_ex_t * | p_obj, |
uint32_t | ch, | ||
adc_ex_channel_setting_t * | p_setting | ||
) |
ADC Channel Setting.
p_obj | :ADC object. |
ch | :Channel. Range is (value < ADC_NUM_MAX). |
p_setting | :Channel Setting Source Address. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
void adc_ex_continuity_irq_handler | ( | adc_ex_t * | p_obj | ) |
IRQ Handler for continuity conversion done.
p_obj | :ADC object. |
- |
TXZ_Result adc_ex_deinit | ( | adc_ex_t * | p_obj | ) |
Release the ADC object.
p_obj | :ADC object. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result adc_ex_get_status | ( | adc_ex_t * | p_obj, |
uint32_t * | p_status | ||
) |
Get Conversion Status.
Status bits.
Bit | Bit Symbol | Function |
---|---|---|
31-8 | - | - |
7 | ADBF | AD Running Flag. Use AD Running Status.. |
6-4 | - | - |
3 | CNTF | Continuity Conversion Running Flag. Use Continuity Conversion Running Status.. |
2 | SNGF | Single Conversion Running Flag. Use Single Conversion Running Status.. |
1 | TRGF | Trigger Conversion Running Flag. Use Trigger Conversion Running Status.. |
0 | - | - |
p_obj | :ADC object. |
p_status | :Conversion Status. Destination address. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result adc_ex_init | ( | adc_ex_t * | p_obj | ) |
Initialize the ADC object.
p_obj | :ADC object. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
void adc_ex_single_irq_handler | ( | adc_ex_t * | p_obj | ) |
IRQ Handler for single conversion done.
p_obj | :ADC object. |
- |
TXZ_Result adc_ex_start | ( | adc_ex_t * | p_obj | ) |
Start Conversion.
p_obj | :ADC object. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result adc_ex_stop | ( | adc_ex_t * | p_obj | ) |
Stop Conversion.
p_obj | :ADC object. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
void adc_ex_trigger_irq_handler | ( | adc_ex_t * | p_obj | ) |
IRQ Handler for trigger conversion done.
p_obj | :ADC object. |
- |
TXZ_Result adc_init | ( | adc_t * | p_obj | ) |
Initialize the ADC object.
p_obj | :ADC object. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
void adc_irq_handler | ( | adc_t * | p_obj | ) |
IRQ Handler for single conversion done.
p_obj | :ADC object. |
- |
TXZ_WorkState adc_poll_conversion | ( | adc_t * | p_obj, |
uint32_t | timeout | ||
) |
Wait for single conversion to be completed.
p_obj | :ADC object. |
timeout | :Timeout(tick). |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result adc_start | ( | adc_t * | p_obj | ) |
Start blocking single conversion.
p_obj | :ADC object. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result adc_startIt | ( | adc_t * | p_obj | ) |
Start non-blocking single conversion.
p_obj | :ADC object. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result adc_stop | ( | adc_t * | p_obj | ) |
Stop blocking single conversion.
p_obj | :ADC object. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |
TXZ_Result adc_stopIt | ( | adc_t * | p_obj | ) |
Stop non-blocking single conversion.
p_obj | :ADC object. |
TXZ_SUCCESS | :Success. |
TXZ_ERROR | :Failure. |