CryptoAuthLib
Atmel CryptoAuthentication Library
ATCADevice (atca_)

ATCADevice object - composite of command and interface objects. More...

Data Structures

struct  atca_device
 atca_device is the C object backing ATCADevice. See the atca_device.h file for details on the ATCADevice methods More...
 

Typedefs

typedef struct atca_deviceATCADevice
 

Enumerations

enum  ATCADeviceType { ATSHA204A, ATECC108A, ATECC508A, ATCA_DEV_UNKNOWN = 0x20 }
 

Functions

ATCADevice newATCADevice (ATCAIfaceCfg *cfg)
 constructor for an Atmel CryptoAuth device More...
 
ATCACommand atGetCommands (ATCADevice dev)
 returns a reference to the ATCACommand object for the device More...
 
ATCAIface atGetIFace (ATCADevice dev)
 returns a reference to the ATCAIface interface object for the device More...
 
void deleteATCADevice (ATCADevice *cadev)
 destructor for a device NULLs reference after object is freed More...
 

Detailed Description

ATCADevice object - composite of command and interface objects.

Typedef Documentation

typedef struct atca_device* ATCADevice

Enumeration Type Documentation

Enumerator
ATSHA204A 
ATECC108A 
ATECC508A 
ATCA_DEV_UNKNOWN 

Function Documentation

ATCACommand atGetCommands ( ATCADevice  dev)

returns a reference to the ATCACommand object for the device

Parameters
[in]devreference to a device
Returns
reference to the ATCACommand object for the device
ATCAIface atGetIFace ( ATCADevice  dev)

returns a reference to the ATCAIface interface object for the device

Parameters
[in]devreference to a device
Returns
reference to the ATCAIface object for the device
void deleteATCADevice ( ATCADevice cadev)

destructor for a device NULLs reference after object is freed

Parameters
[in]cadevpointer to a reference to a device
ATCADevice newATCADevice ( ATCAIfaceCfg cfg)

constructor for an Atmel CryptoAuth device

Parameters
[in]cfgpointer to an interface configuration object
Returns
reference to a new ATCADevice