![]() |
Synergy Software Package User's Manual
|
#include <sf_adc_periodic.h>
Data Fields | |
| uint32_t | open |
| Used by driver to check if pointer to control block is valid. | |
| TX_MUTEX | mutex |
| Mutex used to protect access to lower level driver hardware registers. | |
| adc_instance_t const * | p_lower_lvl_adc |
| Pointer to the ADC instance. | |
| timer_instance_t const * | p_lower_lvl_timer |
| Pointer to the Timer instance. | |
| transfer_instance_t const * | p_lower_lvl_transfer |
| Pointer to the Transfer instance. | |
| void const *volatile | p_src_transfer |
| Source pointer for the low level transfer method. | |
| uint16_t * | p_data_buffer |
| Pointer to the buffer that will store the samples. | |
| uint32_t | data_buffer_length |
| Length of the data buffer that will store the samples. | |
| uint32_t | data_buffer_index |
| Index of the data buffer where data is to be written to next. | |
| uint32_t | sample_count |
| Samples per channel to be buffered before notifying the app. | |
| uint32_t | current_sample_count |
| Current sample count of the output buffer. | |
| uint32_t | dtc_transfer_length |
| Total Length of DTC transfer for requested number of samples. | |
| uint32_t | size_multiplier |
| Multiplier used to treat p_data_buffer as a 32-bit array. | |
| uint16_t | length |
| Length of transfer. | |
| bool | lower_level |
| Used to detect lower level driver. | |
| void(* | p_callback )(sf_adc_periodic_callback_args_t *p_args) |
| Callback function. | |
| void const * | p_context |
| Placeholder for user data. | |
Channel instance control block. DO NOT INITIALIZE. Initialization occurs when SF_ADC_PERIODIC_Open is called