CryptoAuthLib
Microchip CryptoAuthentication Library
atca_device.h
Go to the documentation of this file.
1 
29 #ifndef ATCA_DEVICE_H
30 #define ATCA_DEVICE_H
31 
32 #include "atca_command.h"
33 #include "atca_iface.h"
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
45 {
48 };
49 
50 typedef struct atca_device * ATCADevice;
51 
55 void deleteATCADevice(ATCADevice *ca_dev);
56 
59 
60 
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif
ATCA_STATUS releaseATCADevice(ATCADevice ca_dev)
Release any resources associated with the device.
Definition: atca_device.c:164
Definition: atca_iface.h:66
atca_command is the C object backing ATCACommand.
Definition: atca_command.h:52
Microchip Crypto Auth device command object - this is a command builder only, it does not send the co...
ATCA_STATUS
Definition: atca_status.h:41
struct atca_device * ATCADevice
Definition: atca_device.h:50
char * dev
Definition: hal_linux_kit_cdc.c:59
ATCAIface mIface
Physical interface.
Definition: atca_device.h:47
atca_device is the C object backing ATCADevice. See the atca_device.h file for details on the ATCADev...
Definition: atca_device.h:44
ATCAIface atGetIFace(ATCADevice dev)
returns a reference to the ATCAIface interface object for the device
Definition: atca_device.c:155
Microchip Crypto Auth hardware interface object.
void deleteATCADevice(ATCADevice *ca_dev)
destructor for a device NULLs reference after object is freed
Definition: atca_device.c:90
ATCADevice newATCADevice(ATCAIfaceCfg *cfg)
constructor for a Microchip CryptoAuth device
Definition: atca_device.c:41
ATCACommand atGetCommands(ATCADevice dev)
returns a reference to the ATCACommand object for the device
Definition: atca_device.c:146
atca_iface is the C object backing ATCAIface. See the atca_iface.h file for details on the ATCAIface ...
Definition: atca_iface.h:129
ATCA_STATUS initATCADevice(ATCAIfaceCfg *cfg, ATCADevice ca_dev)
Initializer for an Microchip CryptoAuth device.
Definition: atca_device.c:118
ATCACommand mCommands
Command set for a given CryptoAuth device.
Definition: atca_device.h:46