44#ifndef _DRV_DIGITAL_OUT_H_
45#define _DRV_DIGITAL_OUT_H_
146#if defined(FLATTEN_ME) && (FLATTEN_ME_LEVEL >= FLATTEN_ME_LEVEL_HIGH)
147#define digital_out_high(_handle) hal_gpio_set_pin_output( (hal_gpio_pin_t *)_handle )
173#if defined(FLATTEN_ME) && (FLATTEN_ME_LEVEL >= FLATTEN_ME_LEVEL_HIGH)
174#define digital_out_low(_handle) hal_gpio_clear_pin_output( (hal_gpio_pin_t *)_handle )
200#if defined(FLATTEN_ME) && (FLATTEN_ME_LEVEL >= FLATTEN_ME_LEVEL_HIGH)
201#define digital_out_toggle(_handle) hal_gpio_toggle_pin_output( (hal_gpio_pin_t *)_handle )
229#if defined(FLATTEN_ME) && (FLATTEN_ME_LEVEL >= FLATTEN_ME_LEVEL_HIGH)
230#define digital_out_write(_handle,_value) hal_gpio_write_pin_output( (hal_gpio_pin_t *)_handle, _value )
digital_out_err_t
Definition drv_digital_out.h:58
@ DIGITAL_OUT_UNSUPPORTED_PIN
Definition drv_digital_out.h:60
@ DIGITAL_OUT_SUCCESS
Definition drv_digital_out.h:59
Pin and port name type definitions.
hal_pin_name_t pin_name_t
Definition drv_name.h:74
err_t digital_out_high(digital_out_t *out)
Set pin state to logical high.
err_t digital_out_write(digital_out_t *out, uint8_t value)
Set pin state.
err_t digital_out_toggle(digital_out_t *out)
Toggle pin state.
err_t digital_out_init(digital_out_t *out, pin_name_t name)
Initialize GPIO pin.
err_t digital_out_low(digital_out_t *out)
Set pin state to logical low.
This file contains all the functions prototypes for the GPIO library.
int32_t err_t
Definition hal_target.h:64
Digital output driver context structure, consisted of the following fields :
Definition drv_digital_out.h:73
hal_gpio_pin_t pin
Definition drv_digital_out.h:74
GPIO HAL context structure, consisted of the following fields :
Definition hal_gpio.h:76