This set of enumerations aids in configuring the SAR CHAN_CONFIG register.
Enumerations | |
enum | cy_en_sar_chan_config_input_mode_t { CY_SAR_CHAN_SINGLE_ENDED = 0uL, CY_SAR_CHAN_DIFFERENTIAL_PAIRED = SAR_CHAN_CONFIG_DIFFERENTIAL_EN_Msk, CY_SAR_CHAN_DIFFERENTIAL_UNPAIRED = SAR_CHAN_CONFIG_NEG_ADDR_EN_Msk } |
Configure the input mode of the channel. More... | |
enum | cy_en_sar_chan_config_pos_pin_addr_t { CY_SAR_CHAN_POS_PIN_ADDR_0 = 0uL, CY_SAR_CHAN_POS_PIN_ADDR_1 = 1uL << SAR_CHAN_CONFIG_POS_PIN_ADDR_Pos, CY_SAR_CHAN_POS_PIN_ADDR_2 = 2uL << SAR_CHAN_CONFIG_POS_PIN_ADDR_Pos, CY_SAR_CHAN_POS_PIN_ADDR_3 = 3uL << SAR_CHAN_CONFIG_POS_PIN_ADDR_Pos, CY_SAR_CHAN_POS_PIN_ADDR_4 = 4uL << SAR_CHAN_CONFIG_POS_PIN_ADDR_Pos, CY_SAR_CHAN_POS_PIN_ADDR_5 = 5uL << SAR_CHAN_CONFIG_POS_PIN_ADDR_Pos, CY_SAR_CHAN_POS_PIN_ADDR_6 = 6uL << SAR_CHAN_CONFIG_POS_PIN_ADDR_Pos, CY_SAR_CHAN_POS_PIN_ADDR_7 = 7uL << SAR_CHAN_CONFIG_POS_PIN_ADDR_Pos } |
Configure address of the pin connected to the Vplus terminal of the SARADC. More... | |
enum | cy_en_sar_chan_config_pos_port_addr_t { CY_SAR_POS_PORT_ADDR_SARMUX = 0uL, CY_SAR_POS_PORT_ADDR_CTB0 = 1uL << SAR_CHAN_CONFIG_POS_PORT_ADDR_Pos, CY_SAR_POS_PORT_ADDR_CTB1 = 2uL << SAR_CHAN_CONFIG_POS_PORT_ADDR_Pos, CY_SAR_POS_PORT_ADDR_CTB2 = 3uL << SAR_CHAN_CONFIG_POS_PORT_ADDR_Pos, CY_SAR_POS_PORT_ADDR_CTB3 = 4uL << SAR_CHAN_CONFIG_POS_PORT_ADDR_Pos, CY_SAR_POS_PORT_ADDR_AROUTE_VIRT2 = 5uL << SAR_CHAN_CONFIG_POS_PORT_ADDR_Pos, CY_SAR_POS_PORT_ADDR_AROUTE_VIRT1 = 6uL << SAR_CHAN_CONFIG_POS_PORT_ADDR_Pos, CY_SAR_POS_PORT_ADDR_SARMUX_VIRT = 7uL << SAR_CHAN_CONFIG_POS_PORT_ADDR_Pos } |
Configure address of the port that contains the pin connected to the Vplus terminal of the SARADC. More... | |
enum | cy_en_sar_chan_config_avg_en_t { CY_SAR_CHAN_AVG_DISABLE = 0uL, CY_SAR_CHAN_AVG_ENABLE = 1uL << SAR_CHAN_CONFIG_AVG_EN_Pos } |
Enable or disable averaging for the channel. More... | |
enum | cy_en_sar_chan_config_sample_time_t { CY_SAR_CHAN_SAMPLE_TIME_0 = 0uL, CY_SAR_CHAN_SAMPLE_TIME_1 = 1uL << SAR_CHAN_CONFIG_SAMPLE_TIME_SEL_Pos, CY_SAR_CHAN_SAMPLE_TIME_2 = 2uL << SAR_CHAN_CONFIG_SAMPLE_TIME_SEL_Pos, CY_SAR_CHAN_SAMPLE_TIME_3 = 3uL << SAR_CHAN_CONFIG_SAMPLE_TIME_SEL_Pos } |
Select which sample time to use for the channel. More... | |
enum | cy_en_sar_chan_config_neg_pin_addr_t { CY_SAR_CHAN_NEG_PIN_ADDR_0 = 0uL, CY_SAR_CHAN_NEG_PIN_ADDR_1 = 1uL << SAR_CHAN_CONFIG_NEG_PIN_ADDR_Pos, CY_SAR_CHAN_NEG_PIN_ADDR_2 = 2uL << SAR_CHAN_CONFIG_NEG_PIN_ADDR_Pos, CY_SAR_CHAN_NEG_PIN_ADDR_3 = 3uL << SAR_CHAN_CONFIG_NEG_PIN_ADDR_Pos, CY_SAR_CHAN_NEG_PIN_ADDR_4 = 4uL << SAR_CHAN_CONFIG_NEG_PIN_ADDR_Pos, CY_SAR_CHAN_NEG_PIN_ADDR_5 = 5uL << SAR_CHAN_CONFIG_NEG_PIN_ADDR_Pos, CY_SAR_CHAN_NEG_PIN_ADDR_6 = 6uL << SAR_CHAN_CONFIG_NEG_PIN_ADDR_Pos, CY_SAR_CHAN_NEG_PIN_ADDR_7 = 7uL << SAR_CHAN_CONFIG_NEG_PIN_ADDR_Pos } |
Configure address of the pin connected to the Vminus terminal of the SARADC. More... | |
enum | cy_en_sar_chan_config_neg_port_addr_t { CY_SAR_NEG_PORT_ADDR_SARMUX = 0uL, CY_SAR_NEG_PORT_ADDR_AROUTE_VIRT2 = 5uL << SAR_CHAN_CONFIG_POS_PORT_ADDR_Pos, CY_SAR_NEG_PORT_ADDR_AROUTE_VIRT1 = 6uL << SAR_CHAN_CONFIG_POS_PORT_ADDR_Pos, CY_SAR_NEG_PORT_ADDR_SARMUX_VIRT = 7uL << SAR_CHAN_CONFIG_POS_PORT_ADDR_Pos } |
Configure address of the port that contains the pin connected to the Vminus terminal of the SARADC. More... | |
Configure the input mode of the channel.
Configure address of the pin connected to the Vplus terminal of the SARADC.
Enumerator | |
---|---|
CY_SAR_CHAN_POS_PIN_ADDR_0 | Pin 0 on port specified in cy_en_sar_chan_config_pos_port_addr_t. |
CY_SAR_CHAN_POS_PIN_ADDR_1 | Pin 1 on port specified in cy_en_sar_chan_config_pos_port_addr_t. |
CY_SAR_CHAN_POS_PIN_ADDR_2 | Pin 2 on port specified in cy_en_sar_chan_config_pos_port_addr_t. |
CY_SAR_CHAN_POS_PIN_ADDR_3 | Pin 3 on port specified in cy_en_sar_chan_config_pos_port_addr_t. |
CY_SAR_CHAN_POS_PIN_ADDR_4 | Pin 4 on port specified in cy_en_sar_chan_config_pos_port_addr_t. |
CY_SAR_CHAN_POS_PIN_ADDR_5 | Pin 5 on port specified in cy_en_sar_chan_config_pos_port_addr_t. |
CY_SAR_CHAN_POS_PIN_ADDR_6 | Pin 6 on port specified in cy_en_sar_chan_config_pos_port_addr_t. |
CY_SAR_CHAN_POS_PIN_ADDR_7 | Pin 7 on port specified in cy_en_sar_chan_config_pos_port_addr_t. |
Configure address of the port that contains the pin connected to the Vplus terminal of the SARADC.
See the SARMUX and SARSEQ section for more guidance.
Select which sample time to use for the channel.
There are four global samples times available set by uint32_t sampleTime01 and uint32_t sampleTime23.
Configure address of the pin connected to the Vminus terminal of the SARADC.
Enumerator | |
---|---|
CY_SAR_CHAN_NEG_PIN_ADDR_0 | Pin 0 on port specified in cy_en_sar_chan_config_neg_port_addr_t. |
CY_SAR_CHAN_NEG_PIN_ADDR_1 | Pin 1 on port specified in cy_en_sar_chan_config_neg_port_addr_t. |
CY_SAR_CHAN_NEG_PIN_ADDR_2 | Pin 2 on port specified in cy_en_sar_chan_config_neg_port_addr_t. |
CY_SAR_CHAN_NEG_PIN_ADDR_3 | Pin 3 on port specified in cy_en_sar_chan_config_neg_port_addr_t. |
CY_SAR_CHAN_NEG_PIN_ADDR_4 | Pin 4 on port specified in cy_en_sar_chan_config_neg_port_addr_t. |
CY_SAR_CHAN_NEG_PIN_ADDR_5 | Pin 5 on port specified in cy_en_sar_chan_config_neg_port_addr_t. |
CY_SAR_CHAN_NEG_PIN_ADDR_6 | Pin 6 on port specified in cy_en_sar_chan_config_neg_port_addr_t. |
CY_SAR_CHAN_NEG_PIN_ADDR_7 | Pin 7 on port specified in cy_en_sar_chan_config_neg_port_addr_t. |
Configure address of the port that contains the pin connected to the Vminus terminal of the SARADC.