|
NinjaFlight
|
#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"
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) |
| 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 | ||
| ) |

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