CryptoAuthLib
Atmel CryptoAuthentication Library
hal_xmega_a3bu_i2c_asf.h
Go to the documentation of this file.
1 
44 #ifndef HAL_XMEGA_A3BU_I2C_ASF_H_
45 #define HAL_XMEGA_A3BU_I2C_ASF_H_
46 
47 #include <asf.h>
48 #include "twi_master.h"
49 
59 #define MAX_I2C_BUSES 4 // XMEGA A3BU has up to 4 PORT that can be configured as I2C
60 
63 typedef struct atcaI2Cmaster {
64  twi_master_t i2c_master_instance;
65  int ref_ct;
66  // for conveniences during interface release phase
67  int bus_index;
69 
70 void change_i2c_speed( ATCAIface iface, uint32_t speed );
71 
73 #endif /* HAL_XMEGA_A3BU_I2C_ASF_H_ */
int bus_index
for conveniences during interface release phase
Definition: hal_i2c_bitbang.h:85
atca_iface is the C object backing ATCAIface. See the atca_iface.h file for details on the ATCAIface ...
Definition: atca_iface.c:57
This is the hal_data for ATCA HAL.
Definition: hal_i2c_bitbang.h:79
int speed
Definition: hal_linux_kit_cdc.c:86
void change_i2c_speed(ATCAIface iface, uint32_t speed)
method to change the bus speed of I2C
Definition: hal_sam4s_i2c_asf.c:320
struct atcaI2Cmaster ATCAI2CMaster_t
this is the hal_data for ATCA HAL created using ASF
twi_master_t i2c_master_instance
Definition: hal_xmega_a3bu_i2c_asf.h:64
int ref_ct
Definition: hal_i2c_bitbang.h:83