ATCA Hardware abstraction layer for 1WIRE or SWI over GPIO. More...
Functions | |
ATCA_STATUS | hal_swi_gpio_init (ATCAIface iface, ATCAIfaceCfg *cfg) |
initialize an GPIO interface using given config | |
ATCA_STATUS | hal_swi_gpio_post_init (ATCAIface iface) |
HAL implementation of GPIO post init. | |
ATCA_STATUS | hal_swi_gpio_send (ATCAIface iface, uint8_t word_address, uint8_t *txdata, int txlength) |
HAL implementation of bit banging send over Harmony. | |
ATCA_STATUS | hal_swi_gpio_receive (ATCAIface iface, uint8_t word_address, uint8_t *rxdata, uint16_t *rxlength) |
HAL implementation of bit banging receive from HARMONY. | |
ATCA_STATUS | hal_swi_gpio_control (ATCAIface iface, uint8_t option, void *param, size_t paramlen) |
Perform control operations. | |
ATCA_STATUS | hal_swi_gpio_release (void *hal_data) |
releases resource if no more communication | |
ATCA Hardware abstraction layer for 1WIRE or SWI over GPIO.
ATCA_STATUS hal_swi_gpio_control | ( | ATCAIface | iface, |
uint8_t | option, | ||
void * | param, | ||
size_t | paramlen | ||
) |
Perform control operations.
[in] | iface | Interface to interact with. |
[in] | option | Control parameter identifier |
[in] | param | Optional pointer to parameter value |
[in] | paramlen | Length of the parameter |
ATCA_STATUS hal_swi_gpio_init | ( | ATCAIface | iface, |
ATCAIfaceCfg * | cfg | ||
) |
initialize an GPIO interface using given config
ATCA_STATUS hal_swi_gpio_post_init | ( | ATCAIface | iface | ) |
HAL implementation of GPIO post init.
[in] | iface | ATCAIface instance |
ATCA_STATUS hal_swi_gpio_receive | ( | ATCAIface | iface, |
uint8_t | word_address, | ||
uint8_t * | rxdata, | ||
uint16_t * | rxlength | ||
) |
HAL implementation of bit banging receive from HARMONY.
[in] | iface | Device to interact with. |
[in] | word_address | device transaction type |
[out] | rxdata | Data received will be returned here. |
[in,out] | rxlength | As input, the size of the rxdata buffer. As output, the number of bytes received. |
ATCA_STATUS hal_swi_gpio_release | ( | void * | hal_data | ) |
releases resource if no more communication
[in] | hal_data | - opaque pointer to hal data structure - known only to the HAL implementation |
ATCA_STATUS hal_swi_gpio_send | ( | ATCAIface | iface, |
uint8_t | word_address, | ||
uint8_t * | txdata, | ||
int | txlength | ||
) |
HAL implementation of bit banging send over Harmony.
[in] | iface | instance |
[in] | word_address | device transaction type |
[in] | txdata | pointer to space to bytes to send |
[in] | txlength | number of bytes to send |