Loading...
Searching...
No Matches

Set default configuration parameters for the ATCA device. More...

Detailed Description

Set default configuration parameters for the ATCA device.

     The CryptoAuth library defines the data structure ATCAIfaceCfg for
     device initialization. We use this instead of a self defined params
     struct and store it in the params array.
     ATCAIfaceCfg contains a variable for the bus address, which is never
     used by the library. We use it to store RIOT's I2C_DEV.
     We also initialize the baud rate with zero, because RIOT doesn't have
     an API to change baud.

Macros

#define ATCA_NUMOF   (ARRAY_SIZE(atca_params))
 Number of connected devices.
 

Variables

static const ATCAIfaceCfg atca_params []
 Allocation of ATCA device descriptors.
 
ATCADevice atca_devs_ptr [ATCA_NUMOF]
 List of device pointers for all available devices.
 
#define ATCA_PARAM_I2C   (I2C_DEV(0))
 
#define ATCA_PARAM_ADDR   (ATCA_I2C_ADDR)
 
#define ATCA_RX_RETRIES   (20)
 
#define ATCA_DEVTYPE   (ATECC608A)
 
#define ATCA_PARAMS
 Configuration parameters for the primary ATCA device.
 

Macro Definition Documentation

◆ ATCA_DEVTYPE

#define ATCA_DEVTYPE   (ATECC608A)

Definition at line 69 of file atca_params.h.

◆ ATCA_NUMOF

#define ATCA_NUMOF   (ARRAY_SIZE(atca_params))

Number of connected devices.

Definition at line 116 of file atca_params.h.

◆ ATCA_PARAM_ADDR

#define ATCA_PARAM_ADDR   (ATCA_I2C_ADDR)

Definition at line 63 of file atca_params.h.

◆ ATCA_PARAM_I2C

#define ATCA_PARAM_I2C   (I2C_DEV(0))

Definition at line 59 of file atca_params.h.

◆ ATCA_PARAMS

#define ATCA_PARAMS
Value:
{ .iface_type = ATCA_I2C_IFACE, \
.devtype = ATCA_DEVTYPE, \
.atcai2c.address = ATCA_PARAM_ADDR, \
.atcai2c.bus = ATCA_PARAM_I2C, \
.atcai2c.baud = -1, \
.wake_delay = 1500, \
.rx_retries = ATCA_RX_RETRIES }

Configuration parameters for the primary ATCA device.

Definition at line 76 of file atca_params.h.

◆ ATCA_RX_RETRIES

#define ATCA_RX_RETRIES   (20)

Definition at line 66 of file atca_params.h.

Variable Documentation

◆ atca_params

const ATCAIfaceCfg atca_params[]
static
Initial value:
=
{
}
#define ATCA_PARAMS
Configuration parameters for the primary ATCA device.
Definition atca_params.h:76

Allocation of ATCA device descriptors.

Definition at line 107 of file atca_params.h.