ATCA Hardware abstraction layer for GPIO. More...
#include "atca_hal.h"
Functions | |
ATCA_STATUS | hal_gpio_init (ATCAIface iface, ATCAIfaceCfg *cfg) |
Initialize a gpio interface using given config. | |
ATCA_STATUS | hal_gpio_post_init (ATCAIface iface) |
Post Init for gpio hal. | |
ATCA_STATUS | hal_gpio_send (ATCAIface iface, uint8_t word_address, uint8_t *pin_state, int unused_param) |
Set the state of the pin. | |
ATCA_STATUS | hal_gpio_receive (ATCAIface iface, uint8_t word_address, uint8_t *pin_state, uint16_t *unused_param) |
Read the state of the pin. | |
ATCA_STATUS | hal_gpio_control (ATCAIface iface, uint8_t option, void *param, size_t paramlen) |
ATCA_STATUS | hal_gpio_release (void *hal_data) |
Release and clean up the HAL. | |
ATCA Hardware abstraction layer for GPIO.
ATCA_STATUS hal_gpio_init | ( | ATCAIface | iface, |
ATCAIfaceCfg * | cfg | ||
) |
Initialize a gpio interface using given config.
ATCA_STATUS hal_gpio_post_init | ( | ATCAIface | iface | ) |
Post Init for gpio hal.
ATCA_STATUS hal_gpio_receive | ( | ATCAIface | iface, |
uint8_t | word_address, | ||
uint8_t * | pin_state, | ||
uint16_t * | unused_param | ||
) |
Read the state of the pin.
iface | Interface context |
word_address | Unused parameter |
pin_state | Pin state to output |
unused_param | Unused parameter |
ATCA_STATUS hal_gpio_release | ( | void * | hal_data | ) |
Release and clean up the HAL.
[in] | hal_data | opaque pointer to hal data structure - known only to the HAL implementation |
ATCA_STATUS hal_gpio_send | ( | ATCAIface | iface, |
uint8_t | word_address, | ||
uint8_t * | pin_state, | ||
int | unused_param | ||
) |
Set the state of the pin.
iface | Interface context |
word_address | Unused parameter |
pin_state | Pin state to output |
unused_param | Unused parameter |