CryptoAuthLib
Microchip CryptoAuthentication Library
atca_iface.c File Reference

Microchip CryptoAuthLib hardware interface object. More...

#include <stdlib.h>
#include "atca_iface.h"
#include "hal/atca_hal.h"

Macros

#define ATCA_POST_DELAY_MSEC   25
 

Functions

ATCA_STATUS _atinit (ATCAIface ca_iface, ATCAHAL_t *hal)
 
ATCA_STATUS initATCAIface (ATCAIfaceCfg *cfg, ATCAIface ca_iface)
 Initializer for ATCAIface objects. More...
 
ATCAIface newATCAIface (ATCAIfaceCfg *cfg)
 Constructor for ATCAIface objects. More...
 
ATCA_STATUS atinit (ATCAIface ca_iface)
 Performs the HAL initialization by calling intermediate HAL wrapper function. If using the basic API, the atcab_init() function should be called instead. More...
 
ATCA_STATUS atsend (ATCAIface ca_iface, uint8_t *txdata, int txlength)
 Sends the data to the device by calling intermediate HAL wrapper function. More...
 
ATCA_STATUS atreceive (ATCAIface ca_iface, uint8_t *rxdata, uint16_t *rxlength)
 Receives data from the device by calling intermediate HAL wrapper function. More...
 
ATCA_STATUS atwake (ATCAIface ca_iface)
 Wakes up the device by calling intermediate HAL wrapper function. If using the basic API, the atcab_wakeup() function should be used instead. More...
 
ATCA_STATUS atidle (ATCAIface ca_iface)
 Puts the device into idle state by calling intermediate HAL wrapper function. If using the basic API, the atcab_idle() function should be used instead. More...
 
ATCA_STATUS atsleep (ATCAIface ca_iface)
 Puts the device into sleep state by calling intermediate HAL wrapper function. If using the basic API, the atcab_sleep() function should be used instead. More...
 
ATCAIfaceCfgatgetifacecfg (ATCAIface ca_iface)
 Returns the logical interface configuration for the device. More...
 
void * atgetifacehaldat (ATCAIface ca_iface)
 Returns the HAL data pointer for the device. More...
 
ATCA_STATUS releaseATCAIface (ATCAIface ca_iface)
 Instruct the HAL driver to release any resources associated with this interface. More...
 
void deleteATCAIface (ATCAIface *ca_iface)
 Instruct the HAL driver to release any resources associated with this interface, then delete the object. More...
 

Detailed Description

Microchip CryptoAuthLib hardware interface object.