STM8L15x Standard Peripherals Drivers: Data transfers functions

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

Data transfers functions

Data transfers functions. More...

Functions

uint8_t I2C_ReceiveData (I2C_TypeDef *I2Cx)
 Returns the most recent received data.
void I2C_SendData (I2C_TypeDef *I2Cx, uint8_t Data)
 Send a byte by writing in the DR register.

Detailed Description

Data transfers functions.

 ===============================================================================
                        Data transfers functions
 ===============================================================================


Function Documentation

uint8_t I2C_ReceiveData ( I2C_TypeDef I2Cx)

Returns the most recent received data.

Parameters:
I2Cx,:where x can be 1 to select the specified I2C peripheral.
None
Return values:
Thevalue of the received byte data.

Definition at line 670 of file stm8l15x_i2c.c.

References I2C_struct::DR.

void I2C_SendData ( I2C_TypeDef I2Cx,
uint8_t  Data 
)

Send a byte by writing in the DR register.

Parameters:
I2Cx,:where x can be 1 to select the specified I2C peripheral.
Data,:Byte to be sent.
Return values:
None

Definition at line 658 of file stm8l15x_i2c.c.

References I2C_struct::DR.

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com