Microchip® Advanced Software Framework

bno055_port.h File Reference

BNO055 extension board example.

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

#include "platform_files.h"
#include "bno055.h"
#include "stdint.h"

Macros

#define I2C_BUFFER_LEN   128
 

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 bno055_t bno055_sensor
 

#define I2C_BUFFER_LEN   128

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 bno055_t bno055_sensor

Referenced by bno055_initialize().