channel_config_t Struct Reference
|
yasimavr
|
Loading...
Searching...
No Matches
ADC::channel_config_t Struct Reference
#include <sim_adc.h>
Inheritance diagram for ADC::channel_config_t:
Public Attributes | |
| Channel | type |
| Channel type. | |
| pin_id_t | pin_p |
| Pin ID used for single-ended channels or as positive input for differential channels. | |
| pin_id_t | pin_n |
| Pin ID used as negative input for differential channels, unused for other channel types. | |
| char | per_num |
| Used for Channel_AcompRef, index of the ACP peripheral to get the reference value from. | |
| unsigned int | gain |
| Measurement gain applied to the voltage value. Must be non-zero. | |
Public Attributes inherited from base_reg_config_t | |
| uint64_t | reg_value |
Detailed Description
Structure for configuring one ADC channel
Member Data Documentation
◆ gain
| unsigned int ADC::channel_config_t::gain |
Measurement gain applied to the voltage value. Must be non-zero.
◆ per_num
| char ADC::channel_config_t::per_num |
Used for Channel_AcompRef, index of the ACP peripheral to get the reference value from.
◆ pin_n
| pin_id_t ADC::channel_config_t::pin_n |
Pin ID used as negative input for differential channels, unused for other channel types.
◆ pin_p
| pin_id_t ADC::channel_config_t::pin_p |
Pin ID used for single-ended channels or as positive input for differential channels.
◆ type
| Channel ADC::channel_config_t::type |
Channel type.
The documentation for this struct was generated from the following file:
Generated by
Public Attributes inherited from