CryptoAuthLib
Microchip CryptoAuthentication Library
|
ATCA Hardware abstraction layer for Windows using kit protocol over a USB HID device. More...
#include "atca_hal.h"
#include "hal_win_kit_hid.h"
#include "kit_protocol.h"
#include "kit_phy.h"
#include <SetupAPI.h>
#include <stdio.h>
#include <stdlib.h>
#include <tchar.h>
Macros | |
#define | HID_GUID { 0x4d1e55b2, 0xf16f, 0x11cf, 0x88, 0xcb, 0x00, 0x11, 0x11, 0x00, 0x00, 0x30 } |
Functions | |
ATCA_STATUS | hal_kit_hid_init (void *hal, ATCAIfaceCfg *cfg) |
HAL implementation of Kit USB HID init. More... | |
ATCA_STATUS | hal_kit_hid_discover_buses (int i2c_buses[], int max_buses) |
discover cdc buses available for this hardware this maintains a list of logical to physical bus mappings freeing the application of the a-priori knowledge More... | |
ATCA_STATUS | hal_kit_hid_discover_devices (int bus_num, ATCAIfaceCfg cfg[], int *found) |
discover any CryptoAuth devices on a given logical bus number More... | |
ATCA_STATUS | hal_kit_hid_post_init (ATCAIface iface) |
HAL implementation of Kit HID post init. More... | |
ATCA_STATUS | kit_phy_send (ATCAIface iface, const char *txdata, int txlength) |
HAL implementation of kit protocol send .It is called by the top layer. More... | |
ATCA_STATUS | kit_phy_receive (ATCAIface iface, char *rxdata, int *rxsize) |
HAL implementation of kit protocol receive data.It is called by the top layer. More... | |
ATCA_STATUS | kit_phy_num_found (int8_t *num_found) |
Number of USB HID devices found. More... | |
ATCA_STATUS | hal_kit_hid_send (ATCAIface iface, uint8_t *txdata, int txlength) |
HAL implementation of kit protocol send over USB HID. More... | |
ATCA_STATUS | hal_kit_hid_receive (ATCAIface iface, uint8_t *rxdata, uint16_t *rxsize) |
HAL implementation of send over USB HID. More... | |
ATCA_STATUS | hal_kit_hid_wake (ATCAIface iface) |
Call the wake for kit protocol. More... | |
ATCA_STATUS | hal_kit_hid_idle (ATCAIface iface) |
Call the idle for kit protocol. More... | |
ATCA_STATUS | hal_kit_hid_sleep (ATCAIface iface) |
Call the sleep for kit protocol. More... | |
ATCA_STATUS | hal_kit_hid_release (void *hal_data) |
Close the physical port for HID. More... | |
Variables | |
atcahid_t | _gHid |
ATCA Hardware abstraction layer for Windows using kit protocol over a USB HID device.