CryptoAuthLib
Microchip CryptoAuthentication Library
hal_pic32mx695f512h_i2c.h File Reference

ATCA Hardware abstraction layer for PIC32MX695F512H I2C over xxx drivers. More...

Go to the source code of this file.

Data Structures

struct  atcaI2Cmaster
 this is the hal_data for ATCA HAL created using ASF More...
 

Macros

#define GetSystemClock()   (80000000ul)
 
#define GetPeripheralClock()   (GetSystemClock() / (1 << OSCCONbits.PBDIV))
 
#define GetInstructionClock()   (GetSystemClock())
 
#define MAX_I2C_BUSES   4
 

Typedefs

typedef struct atcaI2Cmaster ATCAI2CMaster_t
 this is the hal_data for ATCA HAL More...
 

Functions

void i2c_write (I2C_MODULE i2c_id, uint8_t address, uint8_t *data, int len)
 
ATCA_STATUS i2c_read (I2C_MODULE i2c_id, uint8_t address, uint8_t *data, uint16_t len)
 
void change_i2c_speed (ATCAIface iface, uint32_t speed)
 method to change the bus speed of I2C More...
 

Detailed Description

ATCA Hardware abstraction layer for PIC32MX695F512H I2C over xxx drivers.

This code is structured in two parts. Part 1 is the connection of the ATCA HAL API to the physical I2C implementation. Part 2 is the xxx I2C primitives to set up the interface.

Prerequisite: