GlobLib
HAL and API libraries for MCUs and hardware.
stm32f103cb_i2c.c File Reference

Source file for stm32f103cb I2C. More...

#include "stm32f103cb_i2c.h"

Go to the source code of this file.

Functions

mcu_error I2C_setup (i2c_periph peripheral)
 Initialize I2C data structure and setup port. More...
 
mcu_error I2C_write (i2c_periph peripheral, uint8_t byte)
 Send one byte on the bus. More...
 
mcu_error I2C_read (i2c_periph peripheral)
 Read one byte from the bus without acknowledge generation. More...
 
uint8_t I2C_repeatRead (i2c_periph peripheral)
 Read one byte from the bus with acknowledge generation. More...
 
mcu_error I2C_start (i2c_periph peripheral)
 Generate a start condition on the bus. More...
 
mcu_error I2C_stop (i2c_periph peripheral)
 Generate a stop condition on the bus. More...
 
mcu_error I2C_address (i2c_periph peripheral, uint8_t address, uint8_t operation)
 Send a seven bit address on the bus. More...
 

Detailed Description

Source file for stm32f103cb I2C.


Author
Stuart Ianna
Version
0.1
Date
June 2018
Warning
None
Bug:
Compilers
  • arm-none-eabi-gcc (15:4.9.3+svn231177-1) 4.9.3 20150529 (prerelease)

Definition in file stm32f103cb_i2c.c.