get flag status c code

Solutions on MaxInterview for get flag status c code by the best coders in the world

showing results for - "get flag status c code"
Maud
24 Apr 2018
1void I2C2_Write(uint8_t Data)
2{
3	LL_I2C_TransmitData8(I2C2, Data); // Transmit Data via I2C n.2
4	while(!GetFlagStatus(LL_I2C_IsActiveFlag_BTF)); // Check for flag BTF
5}
6
7
8int GetFlagStatus(uint32_t (*fct)(I2C_TypeDef*))
9{
10	return ((*fct) (I2C2)); // Function called : LL_I2C_IsActiveFlag_BTF(I2C2)
11}