CryptoAuthLib
Atmel CryptoAuthentication Library
hal_samd21_i2c_start.h
Go to the documentation of this file.
1 
44 #ifndef HAL_SAMD21_I2C_START_H_
45 #define HAL_SAMD21_I2C_START_H_
46 
47 #include "atmel_start.h"
48 #include <stdlib.h>
49 
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_m_sync_desc 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 
73 #endif /* HAL_SAMD21_I2C_START_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 for Atmel START SERCOM
struct i2c_master_module i2c_master_instance
Definition: hal_samd21_i2c_asf.h:63
int ref_ct
Definition: hal_i2c_bitbang.h:83