ATCADevice object - composite of command and interface objects.  
More...
 | 
| 
#define  | ATSHA204A   (0U) | 
|   | The supported Device type in Cryptoauthlib library. 
  | 
|   | 
| 
#define  | ATECC108A   (1U) | 
|   | 
| 
#define  | ATECC508A   (2U) | 
|   | 
| 
#define  | ATECC608A   (3U) | 
|   | 
| 
#define  | ATECC608B   (3U) | 
|   | 
| 
#define  | ATECC608   (3U) | 
|   | 
| 
#define  | ATSHA206A   (4U) | 
|   | 
| 
#define  | TA100   (0x10U) | 
|   | 
| 
#define  | TA101   (0x11U) | 
|   | 
| 
#define  | ECC204   (0x20U) | 
|   | 
| 
#define  | TA010   (0x21U) | 
|   | 
| 
#define  | ECC206   (0x22U) | 
|   | 
| 
#define  | RNG90   (0x23U) | 
|   | 
| 
#define  | SHA104   (0x24U) | 
|   | 
| 
#define  | SHA105   (0x25U) | 
|   | 
| 
#define  | SHA106   (0x26U) | 
|   | 
| 
#define  | ATCA_DEV_UNKNOWN   (0x7EU) | 
|   | 
| 
#define  | ATCA_DEV_INVALID   (0x7FU) | 
|   | 
 | 
| 
typedef void(*  | ctx_cb) (void *ctx) | 
|   | Callback function to clean up the session context. 
  | 
|   | 
| 
typedef struct atca_device *  | ATCADevice | 
|   | 
| 
typedef uint8_t  | ATCADeviceType | 
|   | 
 | 
| enum   | ATCADeviceState { ATCA_DEVICE_STATE_UNKNOWN = 0
, ATCA_DEVICE_STATE_SLEEP
, ATCA_DEVICE_STATE_IDLE
, ATCA_DEVICE_STATE_ACTIVE
 } | 
|   | ATCADeviceState says about device state. 
  | 
|   | 
ATCADevice object - composite of command and interface objects. 
◆ 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()
      
        
          | ATCA_STATUS releaseATCADevice  | 
          ( | 
          ATCADevice  | 
          ca_dev | ) | 
           | 
        
      
 
Release any resources associated with the device. 
- Parameters
 - 
  
    | [in] | ca_dev | Device to release  | 
  
   
- Returns
 - ATCA_SUCCESS on success, otherwise an error code.