English
Language : 

UM0097 Datasheet, PDF (179/229 Pages) STMicroelectronics – STR71x firmware library
UM0097
Peripheral firmware overview
I2C_AddressSend
Function Name
Function Prototype
Behavior Description
Input Parameter 1
Input Parameter 2
Input Parameter 3
Input Parameter 4
Output Parameter
Return Value
Required Preconditions
Called Functions
I2C_AddressSend
void I2C_AddressSend (I2C_TypeDef *I2Cx,
u16 Address, I2C_Addressing Mode,
I2C_Direction Direction);
Sends the slave address with which the next communication will be
performed.
I2Cx: where x can be 0 or 1 to select the I2C peripheral which will
send the slave address.
Address: Indicates the slave address which will be transmitted.
Mode: Refer to I2C addressing modes on page 167 for more
details on the allowed values of this parameter
Direction: specifies the communication direction.
Refer to I2C transfer direction on page 167 for more details on the
allowed values of this parameter.
None
None
None
I2C_STARTGenerate
Example:
This example illustrates how to send the address to slave in case of transmission direction
and 7-bit addressing mode:
{
...
I2C_AddressSend (I2C0, 0x43, I2C_Mode7, I2C_TX);
...
}
179/229