CryptoAuthLib v3.7.6
Microchip CryptoAuthentication Library
 
Loading...
Searching...
No Matches
hal_gpio_harmony.c File Reference

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.
 

Detailed Description

ATCA Hardware abstraction layer for GPIO.

Function Documentation

◆ hal_gpio_init()

ATCA_STATUS hal_gpio_init ( ATCAIface  iface,
ATCAIfaceCfg cfg 
)

Initialize a gpio interface using given config.

Returns
ATCA_SUCCESS on success, otherwise an error code.

◆ hal_gpio_post_init()

ATCA_STATUS hal_gpio_post_init ( ATCAIface  iface)

Post Init for gpio hal.

Returns
ATCA_SUCCESS

◆ hal_gpio_receive()

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.

Returns
ATCA_SUCCESS on success, otherwise an error code.
Parameters
ifaceInterface context
word_addressUnused parameter
pin_statePin state to output
unused_paramUnused parameter

◆ hal_gpio_release()

ATCA_STATUS hal_gpio_release ( void *  hal_data)

Release and clean up the HAL.

Parameters
[in]hal_dataopaque pointer to hal data structure - known only to the HAL implementation
Returns
ATCA_SUCCESS

◆ hal_gpio_send()

ATCA_STATUS hal_gpio_send ( ATCAIface  iface,
uint8_t  word_address,
uint8_t *  pin_state,
int  unused_param 
)

Set the state of the pin.

Returns
ATCA_SUCCESS
Parameters
ifaceInterface context
word_addressUnused parameter
pin_statePin state to output
unused_paramUnused parameter