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

Texas Instruments LMP90xxx Analog Front End (AFE) More...

Files

file  lmp90xxx.h
 Header file for extended API of LMP90xxx ADC.

Macros

#define LMP90XXX_GPIO_MAX   6
 Maximum pin number supported by LMP90xxx.

Functions

int lmp90xxx_gpio_set_output (const struct device *dev, uint8_t pin)
 Configure a GPIO pin of an LMP90xxx as an output.
int lmp90xxx_gpio_set_input (const struct device *dev, uint8_t pin)
 Configure a GPIO pin of an LMP90xxx as an input.
int lmp90xxx_gpio_set_pin_value (const struct device *dev, uint8_t pin, bool value)
 Set the value of a GPIO pin of an LMP90xxx.
int lmp90xxx_gpio_get_pin_value (const struct device *dev, uint8_t pin, bool *value)
 Get the value of a GPIO pin of an LMP90xxx.
int lmp90xxx_gpio_port_get_raw (const struct device *dev, gpio_port_value_t *value)
 Get the value of the GPIO port of an LMP90xxx.
int lmp90xxx_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 LMP90xxx with a mask.
int lmp90xxx_gpio_port_set_bits_raw (const struct device *dev, gpio_port_pins_t pins)
 Set bits of the GPIO port of an LMP90xxx.
int lmp90xxx_gpio_port_clear_bits_raw (const struct device *dev, gpio_port_pins_t pins)
 Clear bits of the GPIO port of an LMP90xxx.
int lmp90xxx_gpio_port_toggle_bits (const struct device *dev, gpio_port_pins_t pins)
 Toggle bits of the GPIO port of an LMP90xxx.

Detailed Description

Texas Instruments LMP90xxx Analog Front End (AFE)

Macro Definition Documentation

◆ LMP90XXX_GPIO_MAX

#define LMP90XXX_GPIO_MAX   6

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

Maximum pin number supported by LMP90xxx.

LMP90xxx supports GPIO D0..D6

Function Documentation

◆ lmp90xxx_gpio_get_pin_value()

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

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

Get the value of a GPIO pin of an LMP90xxx.

Parameters
devPointer to the device structure for the driver instance.
pinPin number. The value must be between 0 and LMP90XXX_GPIO_MAX.
valuePointer to where the value will be stored.
Return values
0on success.
-EIOor other negative errno if communication failed.

◆ lmp90xxx_gpio_port_clear_bits_raw()

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

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

Clear bits of the GPIO port of an LMP90xxx.

Parameters
devPointer to the device structure for the driver instance.
pinsMask of pins to clear.
Return values
0on success.
-EIOor other negative errno if communication failed.

◆ lmp90xxx_gpio_port_get_raw()

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

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

Get the value of the GPIO port of an LMP90xxx.

Parameters
devPointer to the device structure for the driver instance.
valuePointer to where the port value will be stored.
Return values
0on success.
-EIOor other negative errno if communication failed.

◆ lmp90xxx_gpio_port_set_bits_raw()

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

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

Set bits of the GPIO port of an LMP90xxx.

Parameters
devPointer to the device structure for the driver instance.
pinsMask of pins to set.
Return values
0on success.
-EIOor other negative errno if communication failed.

◆ lmp90xxx_gpio_port_set_masked_raw()

int lmp90xxx_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/lmp90xxx.h>

Set the value of the GPIO port of an LMP90xxx with a mask.

Parameters
devPointer to the device structure for the driver instance.
maskMask of pins to change.
valueValue to set.
Return values
0on success.
-EIOor other negative errno if communication failed.

◆ lmp90xxx_gpio_port_toggle_bits()

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

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

Toggle bits of the GPIO port of an LMP90xxx.

Parameters
devPointer to the device structure for the driver instance.
pinsMask of pins to toggle.
Return values
0on success.
-EIOor other negative errno if communication failed.

◆ lmp90xxx_gpio_set_input()

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

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

Configure a GPIO pin of an LMP90xxx as an input.

Parameters
devPointer to the device structure for the driver instance.
pinPin number. The value must be between 0 and LMP90XXX_GPIO_MAX.
Return values
0on success.
-EIOor other negative errno if communication failed.

◆ lmp90xxx_gpio_set_output()

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

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

Configure a GPIO pin of an LMP90xxx as an output.

Parameters
devPointer to the device structure for the driver instance.
pinPin number. The value must be between 0 and LMP90XXX_GPIO_MAX.
Return values
0on success.
-EIOor other negative errno if communication failed.

◆ lmp90xxx_gpio_set_pin_value()

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

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

Set the value of a GPIO pin of an LMP90xxx.

Parameters
devPointer to the device structure for the driver instance.
pinPin number. The value must be between 0 and LMP90XXX_GPIO_MAX.
valueValue to set.
Return values
0on success.
-EIOor other negative errno if communication failed.