![]() |
snickerdoodle Platform Controller
firmware for STM32F0 platform controller
|
Functions | |
void | sd_i2c1_init (void) |
I2C1 Initialization Initialize low-level hardware peripheral and set device handle. More... | |
void | sd_i2c2_init (void) |
I2C2 Initialization Initialize low-level hardware peripheral and set device handle. More... | |
void | HAL_I2C_MspInit (I2C_HandleTypeDef *hi2c) |
void | HAL_I2C_MspDeInit (I2C_HandleTypeDef *hi2c) |
enum sd_i2c_err | sd_i2C_set_chan (struct sd_i2c_dev *dev, uint8_t chan) |
Set I2C channel Set I2C channel (more than one channel may be specified) to broadcast messages. More... | |
enum sd_i2c_err | sd_i2c_en_chan (struct sd_i2c_dev *dev, uint8_t chan) |
Enable I2C channel Enable an I2C channel without altering previously configured channels. More than one channel may be specified. More... | |
enum sd_i2c_err | sd_i2c_dis_chan (struct sd_i2c_dev *dev, uint8_t chan) |
Disable I2C channel Disable an I2C channel without altering previously configured channels. More than one channel may be specified. More... | |
static enum sd_i2c_err | sd_i2c_dev_init (struct sd_i2c_dev *dev, I2C_HandleTypeDef *hi2c) |
Initialize I2C channel Initialize I2C channel with a peripheral handle and set the device as ready. More... | |
void HAL_I2C_MspInit | ( | I2C_HandleTypeDef * | hi2c | ) |
#include <Src/sd_i2c.c>
Pin/Port | Signal -—— |
---|---|
PB8 | SCL |
PB9 | SDA |
Pin/Port | Signal ----— |
---|---|
PB10 | SCL |
PB11 | SDA |
void sd_i2c1_init | ( | void | ) |
#include <Src/sd_i2c.c>
I2C1 Initialization Initialize low-level hardware peripheral and set device handle.
Configure Analog filter
void sd_i2c2_init | ( | void | ) |
#include <Src/sd_i2c.c>
I2C2 Initialization Initialize low-level hardware peripheral and set device handle.
Configure Analog filter
|
static |
#include <Src/sd_i2c.c>
Initialize I2C channel Initialize I2C channel with a peripheral handle and set the device as ready.
dev | I2C device to initialize |
hi2c | I2C device handle to use |
SD_I2C_SUCCESS | on success, error state otherwise |
enum sd_i2c_err sd_i2c_dis_chan | ( | struct sd_i2c_dev * | dev, |
uint8_t | chan | ||
) |
#include <Src/sd_i2c.c>
Disable I2C channel Disable an I2C channel without altering previously configured channels. More than one channel may be specified.
dev | I2C device to configure |
chan | Channel to disable on the I2C switch |
SD_I2C_SUCCESS | on success, error state otherwise |
enum sd_i2c_err sd_i2c_en_chan | ( | struct sd_i2c_dev * | dev, |
uint8_t | chan | ||
) |
#include <Src/sd_i2c.c>
Enable I2C channel Enable an I2C channel without altering previously configured channels. More than one channel may be specified.
dev | I2C device to configure |
chan | Channel to enable on the I2C switch |
SD_I2C_SUCCESS | on success, error state otherwise |
enum sd_i2c_err sd_i2C_set_chan | ( | struct sd_i2c_dev * | dev, |
uint8_t | chan | ||
) |
#include <Src/sd_i2c.c>
Set I2C channel Set I2C channel (more than one channel may be specified) to broadcast messages.
dev | I2C device to configure |
chan | Channel(s) to set on the I2C switch |
SD_I2C_SUCCESS | on success, error state otherwise |