CryptoAuthLib
Atmel CryptoAuthentication Library
hal_samd21_i2c_asf.h
Go to the documentation of this file.
1 
44 #ifndef HAL_SAMD21_I2C_ASF_H_
45 #define HAL_SAMD21_I2C_ASF_H_
46 
47 #include <asf.h>
48 
58 #define MAX_I2C_BUSES 6 // SAMD21 has up to 6 SERCOMS that can be configured as I2C
59 
62 typedef struct atcaI2Cmaster {
63  struct i2c_master_module i2c_master_instance;
64  int ref_ct;
65  // for conveniences during interface release phase
66  int bus_index;
68 
69 void change_i2c_speed( ATCAIface iface, uint32_t speed );
70 
72 #endif /* HAL_SAMD21_I2C_ASF_H_ */
This is the hal_data for ATCA HAL.
Definition: hal_i2c_bitbang.h:79
struct atcaI2Cmaster ATCAI2CMaster_t
this is the hal_data for ATCA HAL for ASF SERCOM
atca_iface is the C object backing ATCAIface. See the atca_iface.h file for details on the ATCAIface ...
Definition: atca_iface.c:57
int bus_index
for conveniences during interface release phase
Definition: hal_i2c_bitbang.h:85
int ref_ct
Definition: hal_i2c_bitbang.h:83
struct i2c_master_module i2c_master_instance
Definition: hal_samd21_i2c_asf.h:63
void change_i2c_speed(ATCAIface iface, uint32_t speed)
method to change the bus speed of I2C
Definition: hal_sam4s_i2c_asf.c:320
int speed
Definition: hal_linux_kit_cdc.c:86