CryptoAuthLib
Microchip CryptoAuthentication Library
hal_samg55_i2c_asf.h
Go to the documentation of this file.
1 
30 #ifndef HAL_SAMG55_I2C_ASF_H_
31 #define HAL_SAMG55_I2C_ASF_H_
32 
33 #include <asf.h>
34 
35 
45 #define MAX_I2C_BUSES 2 // SAMG55 has 2 TWI
46 
50 typedef struct atcaI2Cmaster
51 {
52  Flexcom* twi_flexcom;
53  uint32_t twi_flexcom_id;
55  int ref_ct;
56  // for conveniences during interface release phase
57  int bus_index;
59 
60 void change_i2c_speed(ATCAIface iface, uint32_t speed);
61 
64 #endif /* HAL_SAMG55_I2C_ASF_H_ */
uint32_t twi_flexcom_id
Definition: hal_samg55_i2c_asf.h:53
int ref_ct
Definition: hal_at90usb1287_i2c_asf.h:52
void change_i2c_speed(ATCAIface iface, uint32_t speed)
method to change the bus speed of I2C
Definition: hal_at90usb1287_i2c_asf.c:374
int speed
Definition: hal_linux_kit_cdc.c:61
Flexcom * twi_flexcom
Definition: hal_samg55_i2c_asf.h:52
int bus_index
for conveniences during interface release phase
Definition: hal_at90usb1287_i2c_asf.h:53
atca_iface is the C object backing ATCAIface. See the atca_iface.h file for details on the ATCAIface ...
Definition: atca_iface.h:129
this is the hal_data for ATCA HAL created using ASF
Definition: hal_at90usb1287_i2c_asf.h:49
struct atcaI2Cmaster ATCAI2CMaster_t
this is the hal_data for ATCA HAL
Twi * twi_master_instance
Definition: hal_sam4s_i2c_asf.h:53