ATCADevice object - composite of command and interface objects.
More...
ATCADevice object - composite of command and interface objects.
◆ ATCADevice
◆ ATCADeviceType
The supported Device type in Cryptoauthlib library.
Enumerator |
---|
ATSHA204A | |
ATECC108A | |
ATECC508A | |
ATECC608A | |
ATCA_DEV_UNKNOWN | |
◆ atGetCommands()
returns a reference to the ATCACommand object for the device
- Parameters
-
[in] | dev | reference to a device |
- Returns
- reference to the ATCACommand object for the device
◆ atGetIFace()
returns a reference to the ATCAIface interface object for the device
- Parameters
-
[in] | dev | reference to a device |
- Returns
- reference to the ATCAIface object for the device
◆ deleteATCADevice()
destructor for a device NULLs reference after object is freed
- Parameters
-
[in] | ca_dev | pointer to a reference to a device |
◆ initATCADevice()
Initializer for an Microchip CryptoAuth device.
- Parameters
-
[in] | cfg | pointer to an interface configuration object |
[in,out] | ca_dev | As input, pre-allocated structure to be initialized. mCommands and mIface members should point to existing structures to be initialized. |
- Returns
- ATCA_SUCCESS on success, otherwise an error code.
◆ newATCADevice()
constructor for a Microchip CryptoAuth device
- Parameters
-
[in] | cfg | Interface configuration object |
- Returns
- Reference to a new ATCADevice on success. NULL on failure.
◆ releaseATCADevice()
Release any resources associated with the device.
- Parameters
-
[in] | ca_dev | Device to release |
- Returns
- ATCA_SUCCESS on success, otherwise an error code.