Microchip® Advanced Software Framework

bno055_port.c File Reference

BNO055 extension board example.

Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.

#include "bno055_port.h"
#include "i2c_master.h"
#include "ioport.h"
#include "conf_board.h"
#include "conf_bno055.h"

Functions

void bno055_delay_msek (BNO055_MDELAY_DATA_TYPE msek)
 
void bno055_gpio_config (void)
 
void bno055_i2c_bus_init (void)
 
int8_t bno055_i2c_bus_read (uint8_t dev_addr, uint8_t reg_addr, uint8_t *reg_data, uint8_t cnt)
 
int8_t bno055_i2c_bus_write (uint8_t dev_addr, uint8_t reg_addr, uint8_t *reg_data, uint8_t cnt)
 
void bno055_initialize (void)
 
void bno055_reset (void)
 
void extint_initialize (void(*handler_function)(void))
 

Variables

struct i2c_master_packet bno055_read_pkt
 
struct bno055_t bno055_sensor
 
struct i2c_master_packet bno055_write_pkt
 
struct i2c_master_module i2c_master_module
 

void bno055_delay_msek ( BNO055_MDELAY_DATA_TYPE  msek)
void bno055_gpio_config ( void  )
int8_t bno055_i2c_bus_read ( uint8_t  dev_addr,
uint8_t  reg_addr,
uint8_t *  reg_data,
uint8_t  cnt 
)
int8_t bno055_i2c_bus_write ( uint8_t  dev_addr,
uint8_t  reg_addr,
uint8_t *  reg_data,
uint8_t  cnt 
)
void bno055_reset ( void  )

References delay_ms, and ioport_set_pin_level().

Referenced by bno055_initialize().

void extint_initialize ( void(*)(void)  handler_function)

struct i2c_master_packet bno055_read_pkt
struct bno055_t bno055_sensor

Referenced by bno055_initialize().

struct i2c_master_packet bno055_write_pkt