44#ifndef _DRV_DIGITAL_IN_H_
45#define _DRV_DIGITAL_IN_H_
145#if defined(FLATTEN_ME) && (FLATTEN_ME_LEVEL >= FLATTEN_ME_LEVEL_HIGH)
146#define digital_in_read(_handle) hal_gpio_read_pin_input( (hal_gpio_pin_t *)_handle )
digital_in_err_t
Definition drv_digital_in.h:58
@ DIGITAL_IN_UNSUPPORTED_PIN
Definition drv_digital_in.h:60
@ DIGITAL_IN_SUCCESS
Definition drv_digital_in.h:59
Pin and port name type definitions.
hal_pin_name_t pin_name_t
Definition drv_name.h:74
uint8_t digital_in_read(digital_in_t *in)
Read GPIO pin.
err_t digital_in_init(digital_in_t *in, pin_name_t name)
Initialize GPIO pin.
This file contains all the functions prototypes for the GPIO library.
int32_t err_t
Definition hal_target.h:64
Digital input driver context structure, consisted of the following fields :
Definition drv_digital_in.h:73
hal_gpio_pin_t pin
Definition drv_digital_in.h:74
GPIO HAL context structure, consisted of the following fields :
Definition hal_gpio.h:76