Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
adc_npcx_v2t.h File Reference
#include <zephyr/device.h>

Go to the source code of this file.

Functions

int adc_npcx_v2t_set_channels (const struct device *dev, uint32_t channels)
 Set ADC V2T channels.
uint32_t adc_npcx_v2t_get_channels (const struct device *dev)
 Get ADC V2T configured channels.

Function Documentation

◆ adc_npcx_v2t_get_channels()

uint32_t adc_npcx_v2t_get_channels ( const struct device * dev)

Get ADC V2T configured channels.

Attention
Available only when the following Kconfig option is enabled:
CONFIG_ADC_V2T_NPCX 
.
Parameters
devPointer to the ADC device instance.
Returns
Configured v2t channel in bit-mask. 0 for adc mode, 1 for v2t mode.

◆ adc_npcx_v2t_set_channels()

int adc_npcx_v2t_set_channels ( const struct device * dev,
uint32_t channels )

Set ADC V2T channels.

Attention
Available only when the following Kconfig option is enabled:
CONFIG_ADC_V2T_NPCX 
.
Parameters
devPointer to the ADC device instance.
channelsBit-mask indicating the channels to be configured as V2T
Returns
0 on success, or a negative value if configuration fails.