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

Kit Bridging HAL for cryptoauthlib. This is not intended to be a zero copy driver. It should work with any interface that confirms to a few basic requirements: a) will accept an arbitrary number of bytes and packetize it if necessary for transmission, b) will block for the duration of the transmit. More...

#include "cryptoauthlib.h"
#include "atca_hal.h"
#include "hal_kit_bridge.h"

Functions

ATCA_STATUS hal_kit_attach_phy (ATCAIfaceCfg *cfg, atca_hal_kit_phy_t *phy)
 Helper function that connects a physical layer context structure that will be used by the kit protocol bridge.
 
ATCA_STATUS hal_kit_init (ATCAIface iface, ATCAIfaceCfg *cfg)
 HAL implementation of Kit USB HID init.
 
ATCA_STATUS hal_kit_post_init (ATCAIface iface)
 HAL implementation of Kit HID post init.
 
ATCA_STATUS hal_kit_send (ATCAIface iface, uint8_t word_address, uint8_t *txdata, int txlength)
 HAL implementation of kit protocol send over USB HID.
 
ATCA_STATUS hal_kit_receive (ATCAIface iface, uint8_t word_address, uint8_t *rxdata, uint16_t *rxsize)
 HAL implementation of send over USB HID.
 
ATCA_STATUS hal_kit_control (ATCAIface iface, uint8_t option, void *param, size_t paramlen)
 Kit Protocol Control.
 
ATCA_STATUS hal_kit_release (void *hal_data)
 Close the physical port for HID.
 

Detailed Description

Kit Bridging HAL for cryptoauthlib. This is not intended to be a zero copy driver. It should work with any interface that confirms to a few basic requirements: a) will accept an arbitrary number of bytes and packetize it if necessary for transmission, b) will block for the duration of the transmit.