NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
bus_i2c_stm32f10x.c File Reference
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <platform.h>
#include "build_config.h"
#include "gpio.h"
#include "system.h"
#include "bus_i2c.h"
#include "nvic.h"
Include dependency graph for bus_i2c_stm32f10x.c:

Data Structures

struct  i2c_hardware
 

Functions

void i2cSetOverclock (uint8_t OverClock)
 
void I2C1_ER_IRQHandler (void)
 
void I2C1_EV_IRQHandler (void)
 
void I2C2_ER_IRQHandler (void)
 
void I2C2_EV_IRQHandler (void)
 
bool i2cWriteBuffer (uint8_t addr_, uint8_t reg_, uint8_t len_, uint8_t *data)
 
bool i2cWrite (uint8_t addr_, uint8_t reg_, uint8_t data)
 
bool i2cRead (uint8_t addr_, uint8_t reg_, uint8_t len, uint8_t *buf)
 
void i2cInit (I2CDevice index)
 
uint16_t i2cGetErrorCounter (void)
 

Function Documentation

void I2C1_ER_IRQHandler ( void  )
void I2C1_EV_IRQHandler ( void  )
void I2C2_ER_IRQHandler ( void  )
void I2C2_EV_IRQHandler ( void  )
uint16_t i2cGetErrorCounter ( void  )
void i2cInit ( I2CDevice  index)
bool i2cRead ( uint8_t  addr_,
uint8_t  reg_,
uint8_t  len,
uint8_t *  buf 
)
void i2cSetOverclock ( uint8_t  OverClock)
bool i2cWrite ( uint8_t  addr_,
uint8_t  reg_,
uint8_t  data 
)

Here is the call graph for this function:

bool i2cWriteBuffer ( uint8_t  addr_,
uint8_t  reg_,
uint8_t  len_,
uint8_t *  data 
)