![]() |
Synergy Software Package User's Manual
|
#include <r_sdadc.h>
Data Fields | |
| adc_mode_t | mode |
| Single scan or continuous mode. | |
| adc_resolution_t | resolution |
| 16 or 24 bit resolution | |
| adc_alignment_t | alignment |
| Left or right alignment. | |
| void const * | p_context |
| Placeholder for user data. | |
| R_SDADC0_Type * | p_reg |
| Base register for this unit. | |
| void(* | p_callback )(adc_callback_args_t *p_args) |
| User callback pointer. | |
| adc_trigger_t | trigger |
| Software or hardware trigger. | |
| uint32_t | trigger_enabled |
| If set, hardware trigger was enabled before calibration. | |
| uint32_t | opened |
| Boolean to verify that the Unit has been initialized. | |
| uint32_t | scan_mask |
| Scan mask of enabled channels. | |
| uint32_t | scan_cfg_mask |
| Scan mask of configured channels. | |
| uint16_t | unit |
| SDADC Unit in use. | |
| volatile uint8_t | calib_status |
| Calibration in progress if set. | |
| IRQn_Type | scan_end_irq |
| Scan end IRQ number. | |
| IRQn_Type | calib_end_irq |
| Calibration end IRQ number. | |
| IRQn_Type | conv_end_irq |
| Conversion end IRQ number. | |
ADC instance control block. DO NOT INITIALIZE. Initialized in adc_api_t::open().