|
mikroSDK Reference Manual
|
Go to the documentation of this file.
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 )
159 #endif // _DRV_DIGITAL_IN_H_
Pin and port name type definitions.
Definition: drv_digital_in.h:58
digital_in_err_t
Definition: drv_digital_in.h:56
This file contains all the functions prototypes for the GPIO library.
uint8_t digital_in_read(digital_in_t *in)
Read GPIO pin.
Digital input driver context structure, consisted of the following fields :
Definition: drv_digital_in.h:71
Definition: drv_digital_in.h:59
hal_pin_name_t pin_name_t
Definition: drv_name.h:73
GPIO HAL context structure, consisted of the following fields :
Definition: hal_gpio.h:74
int32_t err_t
Definition: hal_target.h:63
err_t digital_in_init(digital_in_t *in, pin_name_t name)
Initialize GPIO pin.