Zephyr Project API 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Texas Instruments ADS1x4s0x. More...

Files

file  ads1x4s0x.h
 Header file for extended API of ADS1x4s0x ADC.

Functions

int ads1x4s0x_gpio_set_output (const struct device *dev, uint8_t pin, bool initial_value)
 Configure a GPIO pin of an ADS1x4s0x ADC as an output.
int ads1x4s0x_gpio_set_input (const struct device *dev, uint8_t pin)
 Configure a GPIO pin of an ADS1x4s0x ADC as an input.
int ads1x4s0x_gpio_deconfigure (const struct device *dev, uint8_t pin)
 Deconfigure a GPIO pin of an ADS1x4s0x ADC.
int ads1x4s0x_gpio_set_pin_value (const struct device *dev, uint8_t pin, bool value)
 Set the value of a GPIO pin of an ADS1x4s0x ADC.
int ads1x4s0x_gpio_get_pin_value (const struct device *dev, uint8_t pin, bool *value)
 Get the value of a GPIO pin of an ADS1x4s0x ADC.
int ads1x4s0x_gpio_port_get_raw (const struct device *dev, gpio_port_value_t *value)
 Get the value of the GPIO port of an ADS1x4s0x ADC.
int ads1x4s0x_gpio_port_set_masked_raw (const struct device *dev, gpio_port_pins_t mask, gpio_port_value_t value)
 Set the value of the GPIO port of an ADS1x4s0x ADC with a mask.
int ads1x4s0x_gpio_port_toggle_bits (const struct device *dev, gpio_port_pins_t pins)
 Toggle bits of the GPIO port of an ADS1x4s0x ADC.

Detailed Description

Texas Instruments ADS1x4s0x.

Function Documentation

◆ ads1x4s0x_gpio_deconfigure()

int ads1x4s0x_gpio_deconfigure ( const struct device * dev,
uint8_t pin )

#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/adc/ads1x4s0x.h>

Deconfigure a GPIO pin of an ADS1x4s0x ADC.

Parameters
devPointer to the device structure for the driver instance.
pinPin number.
Return values
0success.
-errnonegative errno on failure.

◆ ads1x4s0x_gpio_get_pin_value()

int ads1x4s0x_gpio_get_pin_value ( const struct device * dev,
uint8_t pin,
bool * value )

#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/adc/ads1x4s0x.h>

Get the value of a GPIO pin of an ADS1x4s0x ADC.

Parameters
devPointer to the device structure for the driver instance.
pinPin number.
valuePointer to where the value will be stored.
Return values
0success.
-errnonegative errno on failure.

◆ ads1x4s0x_gpio_port_get_raw()

int ads1x4s0x_gpio_port_get_raw ( const struct device * dev,
gpio_port_value_t * value )

#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/adc/ads1x4s0x.h>

Get the value of the GPIO port of an ADS1x4s0x ADC.

Parameters
devPointer to the device structure for the driver instance.
valuePointer to where the port value will be stored.
Return values
0success.
-errnonegative errno on failure.

◆ ads1x4s0x_gpio_port_set_masked_raw()

int ads1x4s0x_gpio_port_set_masked_raw ( const struct device * dev,
gpio_port_pins_t mask,
gpio_port_value_t value )

#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/adc/ads1x4s0x.h>

Set the value of the GPIO port of an ADS1x4s0x ADC with a mask.

Parameters
devPointer to the device structure for the driver instance.
maskMask of pins to change.
valueValue to set.
Return values
0success.
-errnonegative errno on failure.

◆ ads1x4s0x_gpio_port_toggle_bits()

int ads1x4s0x_gpio_port_toggle_bits ( const struct device * dev,
gpio_port_pins_t pins )

#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/adc/ads1x4s0x.h>

Toggle bits of the GPIO port of an ADS1x4s0x ADC.

Parameters
devPointer to the device structure for the driver instance.
pinsMask of pins to toggle.
Return values
0success.
-errnonegative errno on failure.

◆ ads1x4s0x_gpio_set_input()

int ads1x4s0x_gpio_set_input ( const struct device * dev,
uint8_t pin )

#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/adc/ads1x4s0x.h>

Configure a GPIO pin of an ADS1x4s0x ADC as an input.

Parameters
devPointer to the device structure for the driver instance.
pinPin number.
Return values
0success.
-errnonegative errno on failure.

◆ ads1x4s0x_gpio_set_output()

int ads1x4s0x_gpio_set_output ( const struct device * dev,
uint8_t pin,
bool initial_value )

#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/adc/ads1x4s0x.h>

Configure a GPIO pin of an ADS1x4s0x ADC as an output.

Parameters
devPointer to the device structure for the driver instance.
pinPin number.
initial_valueInitial value of the pin.
Return values
0success.
-errnonegative errno on failure.

◆ ads1x4s0x_gpio_set_pin_value()

int ads1x4s0x_gpio_set_pin_value ( const struct device * dev,
uint8_t pin,
bool value )

#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/adc/ads1x4s0x.h>

Set the value of a GPIO pin of an ADS1x4s0x ADC.

Parameters
devPointer to the device structure for the driver instance.
pinPin number.
valueValue to set.
Return values
0success.
-errnonegative errno on failure.