Macros | Functions
d_i2c.c File Reference
#include <asf.h>
#include <string.h>
#include <stdio.h>
#include "d_i2c.h"
Include dependency graph for d_i2c.c:

Go to the source code of this file.

Macros

#define BOARD_ID_TWI   ID_TWIHS0
 
#define BOARD_TWI   TWIHS0
 
#define TWI_CLK   400000
 

Functions

int i2cInit (void)
 
int i2cRead (uint8_t chip_addr, uint32_t address, uint8_t address_len, void *data, uint32_t len)
 
int i2cWrite (uint8_t chip_addr, uint32_t address, uint8_t address_len, void *data, uint32_t len)
 

Macro Definition Documentation

◆ BOARD_ID_TWI

#define BOARD_ID_TWI   ID_TWIHS0

Definition at line 21 of file d_i2c.c.

◆ BOARD_TWI

#define BOARD_TWI   TWIHS0

Definition at line 22 of file d_i2c.c.

◆ TWI_CLK

#define TWI_CLK   400000

Definition at line 23 of file d_i2c.c.

Function Documentation

◆ i2cInit()

int i2cInit ( void  )

Definition at line 26 of file d_i2c.c.

◆ i2cRead()

int i2cRead ( uint8_t  chip_addr,
uint32_t  address,
uint8_t  address_len,
void *  data,
uint32_t  len 
)

Definition at line 46 of file d_i2c.c.

◆ i2cWrite()

int i2cWrite ( uint8_t  chip_addr,
uint32_t  address,
uint8_t  address_len,
void *  data,
uint32_t  len 
)

Definition at line 83 of file d_i2c.c.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:59