|
mikroSDK Reference Manual
|
Go to the documentation of this file.
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 )
243 #endif // _DRV_DIGITAL_OUT_H_
err_t digital_out_write(digital_out_t *out, uint8_t value)
Set pin state.
Pin and port name type definitions.
Definition: drv_digital_out.h:58
Digital output driver context structure, consisted of the following fields :
Definition: drv_digital_out.h:71
err_t digital_out_toggle(digital_out_t *out)
Toggle pin state.
This file contains all the functions prototypes for the GPIO library.
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.
err_t digital_out_high(digital_out_t *out)
Set pin state to logical high.
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
digital_out_err_t
Definition: drv_digital_out.h:56
Definition: drv_digital_out.h:59