CryptoAuthLib
Atmel CryptoAuthentication Library
hal_sam4s_i2c_asf.h
Go to the documentation of this file.
1 
44 #ifndef HAL_SAM4S_I2C_ASF_H_
45 #define HAL_SAM4S_I2C_ASF_H_
46 
47 #include <asf.h>
48 
49 
59 #define MAX_I2C_BUSES 2 // SAM4S has 2 TWI
60 
64 typedef struct atcaI2Cmaster {
65  uint32_t twi_id;
67  int ref_ct;
68  // for conveniences during interface release phase
69  int bus_index;
71 
72 void change_i2c_speed(ATCAIface iface, uint32_t speed);
73 
76 #endif /* HAL_SAM4S_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
Twi * twi_master_instance
Definition: hal_sam4s_i2c_asf.h:66
uint32_t twi_id
Definition: hal_sam4s_i2c_asf.h:65
int ref_ct
Definition: hal_i2c_bitbang.h:83