CryptoAuthLib
Microchip CryptoAuthentication Library
hal_i2c_start.h
Go to the documentation of this file.
1 
30 #ifndef HAL_SAMD21_I2C_START_H_
31 #define HAL_SAMD21_I2C_START_H_
32 
33 #include "atmel_start.h"
34 #include <stdlib.h>
35 
44 #define MAX_I2C_BUSES 6 // SAMD21 has up to 6 SERCOMS that can be configured as I2C
45 
48 typedef struct atcaI2Cmaster
49 {
50  struct i2c_m_sync_desc i2c_master_instance;
51  uint32_t sercom_core_freq;
52  int ref_ct;
53  // for conveniences during interface release phase
54  int bus_index;
56 
57 void change_i2c_speed(ATCAIface iface, uint32_t speed);
58 
61 #endif /* HAL_SAMD21_I2C_START_H_ */
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
volatile void * i2c_master_instance
Definition: hal_at90usb1287_i2c_asf.h:51
uint32_t sercom_core_freq
Definition: hal_i2c_start.h:51
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 for Atmel START SERCOM