![]() |
Synergy Software Package User's Manual
|
#include <r_adc.h>
Data Fields | |
| uint16_t | unit |
| ADC Unit in use. | |
| int16_t | slope_microvolts |
| Temperature sensor slope in microvolts/°C. | |
| adc_mode_t | mode |
| operational mode | |
| adc_alignment_t | alignment |
| alignment | |
| uint8_t | max_resolution |
| ADC max resolution: 8, 10, 12, or 14-bit. | |
| uint8_t | pga_available |
| PGA available or not on MCU. | |
| uint8_t | tsn_ctrl_available |
| Availability of TSN control register. | |
| uint8_t | tsn_calib_available |
| Availability of TSn calibration register. | |
| uint8_t | adc_calib_available |
| Availability of ADC calibration feature. | |
| R_TSN_Control_Type * | p_tsn_ctrl_regs |
| Pointer to temperature control register. | |
| R_TSN_Calibration_Type * | p_tsn_calib_regs |
| Pointer to temperature calibration register. | |
| void const * | p_context |
| Placeholder for user data. | |
| void * | p_reg |
| Base register for this unit. | |
| void(* | callback )(adc_callback_args_t *p_args) |
| User callback pointer. | |
| adc_trigger_t | trigger |
| Trigger defined for normal mode. | |
| uint32_t | opened |
| Boolean to verify that the Unit has been initialized. | |
| uint32_t | scan_mask |
| Scan mask used for Normal scan. | |
| IRQn_Type | scan_end_irq |
| Scan end IRQ number. | |
| IRQn_Type | scan_end_b_irq |
| Scan end group B IRQ number. | |
| adc_voltage_reference_t | voltage_ref |
| ADC reference voltage selection. Default is VREF. | |
| adc_over_current_t | over_current |
| ADC reference voltage selection. Default is Over current. | |
| adc_pga_t | pga0 |
| PGA0 setting. | |
| adc_pga_t | pga1 |
| PGA1 setting. | |
| adc_pga_t | pga2 |
| PGA2 setting. | |
ADC instance control block. DO NOT INITIALIZE. Initialized in adc_api_t::open().