Lines Matching refs:lpi2c
38 uint32_t LPI2C_Open(LPI2C_T *lpi2c, uint32_t u32BusClock) in LPI2C_Open() argument
46 lpi2c->CLKDIV = u32Div; in LPI2C_Open()
49 lpi2c->CTL0 |= LPI2C_CTL0_LPI2CEN_Msk; in LPI2C_Open()
65 void LPI2C_Close(LPI2C_T *lpi2c) in LPI2C_Close() argument
72 lpi2c->CTL0 &= ~LPI2C_CTL0_LPI2CEN_Msk; in LPI2C_Close()
85 void LPI2C_ClearTimeoutFlag(LPI2C_T *lpi2c) in LPI2C_ClearTimeoutFlag() argument
87 lpi2c->TOCTL |= LPI2C_TOCTL_TOIF_Msk; in LPI2C_ClearTimeoutFlag()
104 void LPI2C_Trigger(LPI2C_T *lpi2c, uint8_t u8Start, uint8_t u8Stop, uint8_t u8Si, uint8_t u8Ack) in LPI2C_Trigger() argument
128 lpi2c->CTL0 = (lpi2c->CTL0 & ~0x3CU) | u32Reg; in LPI2C_Trigger()
141 void LPI2C_DisableInt(LPI2C_T *lpi2c) in LPI2C_DisableInt() argument
143 lpi2c->CTL0 &= ~LPI2C_CTL0_INTEN_Msk; in LPI2C_DisableInt()
156 void LPI2C_EnableInt(LPI2C_T *lpi2c) in LPI2C_EnableInt() argument
158 lpi2c->CTL0 |= LPI2C_CTL0_INTEN_Msk; in LPI2C_EnableInt()
170 uint32_t LPI2C_GetBusClockFreq(LPI2C_T *lpi2c) in LPI2C_GetBusClockFreq() argument
172 uint32_t u32Divider = lpi2c->CLKDIV; in LPI2C_GetBusClockFreq()
190 uint32_t LPI2C_SetBusClockFreq(LPI2C_T *lpi2c, uint32_t u32BusClock) in LPI2C_SetBusClockFreq() argument
198 lpi2c->CLKDIV = u32Div; in LPI2C_SetBusClockFreq()
212 uint32_t LPI2C_GetIntFlag(LPI2C_T *lpi2c) in LPI2C_GetIntFlag() argument
216 if((lpi2c->CTL0 & LPI2C_CTL0_SI_Msk) == LPI2C_CTL0_SI_Msk) in LPI2C_GetIntFlag()
237 uint32_t LPI2C_GetStatus(LPI2C_T *lpi2c) in LPI2C_GetStatus() argument
239 return (lpi2c->STATUS0); in LPI2C_GetStatus()
251 uint8_t LPI2C_GetData(LPI2C_T *lpi2c) in LPI2C_GetData() argument
253 return (uint8_t)(lpi2c->DAT); in LPI2C_GetData()
266 void LPI2C_SetData(LPI2C_T *lpi2c, uint8_t u8Data) in LPI2C_SetData() argument
268 lpi2c->DAT = u8Data; in LPI2C_SetData()
285 void LPI2C_SetSlaveAddr(LPI2C_T *lpi2c, uint8_t u8SlaveNo, uint8_t u8SlaveAddr, uint8_t u8GCMode) in LPI2C_SetSlaveAddr() argument
290 lpi2c->ADDR1 = ((uint32_t)u8SlaveAddr << 1U) | u8GCMode; in LPI2C_SetSlaveAddr()
293 lpi2c->ADDR2 = ((uint32_t)u8SlaveAddr << 1U) | u8GCMode; in LPI2C_SetSlaveAddr()
296 lpi2c->ADDR3 = ((uint32_t)u8SlaveAddr << 1U) | u8GCMode; in LPI2C_SetSlaveAddr()
300 lpi2c->ADDR0 = ((uint32_t)u8SlaveAddr << 1U) | u8GCMode; in LPI2C_SetSlaveAddr()
317 void LPI2C_SetSlaveAddrMask(LPI2C_T *lpi2c, uint8_t u8SlaveNo, uint8_t u8SlaveAddrMask) in LPI2C_SetSlaveAddrMask() argument
322 lpi2c->ADDRMSK1 = (uint32_t)u8SlaveAddrMask << 1U; in LPI2C_SetSlaveAddrMask()
325 lpi2c->ADDRMSK2 = (uint32_t)u8SlaveAddrMask << 1U; in LPI2C_SetSlaveAddrMask()
328 lpi2c->ADDRMSK3 = (uint32_t)u8SlaveAddrMask << 1U; in LPI2C_SetSlaveAddrMask()
332 lpi2c->ADDRMSK0 = (uint32_t)u8SlaveAddrMask << 1U; in LPI2C_SetSlaveAddrMask()
349 void LPI2C_EnableTimeout(LPI2C_T *lpi2c, uint8_t u8LongTimeout) in LPI2C_EnableTimeout() argument
353 lpi2c->TOCTL |= LPI2C_TOCTL_TOCDIV4_Msk; in LPI2C_EnableTimeout()
357 lpi2c->TOCTL &= ~LPI2C_TOCTL_TOCDIV4_Msk; in LPI2C_EnableTimeout()
360 lpi2c->TOCTL |= LPI2C_TOCTL_TOCEN_Msk; in LPI2C_EnableTimeout()
373 void LPI2C_DisableTimeout(LPI2C_T *lpi2c) in LPI2C_DisableTimeout() argument
375 lpi2c->TOCTL &= ~LPI2C_TOCTL_TOCEN_Msk; in LPI2C_DisableTimeout()
388 void LPI2C_EnableWakeup(LPI2C_T *lpi2c) in LPI2C_EnableWakeup() argument
390 lpi2c->WKCTL |= LPI2C_WKCTL_WKEN_Msk; in LPI2C_EnableWakeup()
403 void LPI2C_DisableWakeup(LPI2C_T *lpi2c) in LPI2C_DisableWakeup() argument
405 lpi2c->WKCTL &= ~LPI2C_WKCTL_WKEN_Msk; in LPI2C_DisableWakeup()
433 void LPI2C_EnableAutoMode(LPI2C_T *lpi2c, uint8_t u8Mode, uint8_t u8Src) in LPI2C_EnableAutoMode() argument
436 lpi2c->AUTOCTL = (lpi2c->AUTOCTL & ~LPI2C_AUTOCTL_AUTOMODE_Msk) | (u8Mode); in LPI2C_EnableAutoMode()
439 lpi2c->AUTOCTL = (lpi2c->AUTOCTL & ~LPI2C_AUTOCTL_TGSRCSEL_Msk) | (u8Src); in LPI2C_EnableAutoMode()
441 lpi2c->AUTOCTL |= LPI2C_AUTOCTL_TRGEN_Msk; in LPI2C_EnableAutoMode()
454 void LPI2C_DisableAutoMode(LPI2C_T *lpi2c) in LPI2C_DisableAutoMode() argument
456 lpi2c->AUTOCTL &= ~(LPI2C_AUTOCTL_AUTOMODE_Msk | LPI2C_AUTOCTL_TRGEN_Msk); in LPI2C_DisableAutoMode()
471 void LPI2C_SetAutoModeTransferCnt(LPI2C_T *lpi2c, uint32_t u32RxCount, uint32_t u32TxCount) in LPI2C_SetAutoModeTransferCnt() argument
474 …lpi2c->AUTOCNT = (lpi2c->AUTOCNT & ~LPI2C_AUTOCNT_RXCNT_Msk) | ((u32RxCount -1) << LPI2C_AUTOCNT_R… in LPI2C_SetAutoModeTransferCnt()
477 lpi2c->AUTOCNT = (lpi2c->AUTOCNT & ~LPI2C_AUTOCNT_TXCNT_Msk) | (u32TxCount -1); in LPI2C_SetAutoModeTransferCnt()
494 uint8_t LPI2C_WriteByte(LPI2C_T *lpi2c, uint8_t u8SlaveAddr, uint8_t data) in LPI2C_WriteByte() argument
501 LPI2C_START(lpi2c); in LPI2C_WriteByte()
505 LPI2C_WAIT_READY(lpi2c) in LPI2C_WriteByte()
515 switch(LPI2C_GET_STATUS(lpi2c)) in LPI2C_WriteByte()
518 …LPI2C_SET_DATA(lpi2c, (uint8_t)(u8SlaveAddr << 1u | 0x00u)); /* Write SLA+W to Register LPI2CDA… in LPI2C_WriteByte()
522 LPI2C_SET_DATA(lpi2c, data); /* Write data to LPI2CDAT */ in LPI2C_WriteByte()
535 LPI2C_SET_CONTROL_REG(lpi2c, LPI2C_CTL_STO_SI); /* Clear SI and send STOP */ in LPI2C_WriteByte()
540 …LPI2C_SET_CONTROL_REG(lpi2c, u8Ctrl); /* Write controlbit to LPI2C_CTL regi… in LPI2C_WriteByte()
559 uint32_t LPI2C_WriteMultiBytes(LPI2C_T *lpi2c, uint8_t u8SlaveAddr, uint8_t data[], uint32_t u32wLe… in LPI2C_WriteMultiBytes() argument
567 LPI2C_START(lpi2c); /* Send START */ in LPI2C_WriteMultiBytes()
571 LPI2C_WAIT_READY(lpi2c) in LPI2C_WriteMultiBytes()
581 switch(LPI2C_GET_STATUS(lpi2c)) in LPI2C_WriteMultiBytes()
584 …LPI2C_SET_DATA(lpi2c, (uint8_t)(u8SlaveAddr << 1u | 0x00u)); /* Write SLA+W to Register LPI2CDA… in LPI2C_WriteMultiBytes()
591 LPI2C_SET_DATA(lpi2c, data[u32txLen++]); /* Write Data to LPI2CDAT */ in LPI2C_WriteMultiBytes()
606 LPI2C_SET_CONTROL_REG(lpi2c, LPI2C_CTL_STO_SI); /* Clear SI and send STOP */ in LPI2C_WriteMultiBytes()
611 …LPI2C_SET_CONTROL_REG(lpi2c, u8Ctrl); /* Write controlbit to LPI2C_CTL regi… in LPI2C_WriteMultiBytes()
631 uint8_t LPI2C_WriteByteOneReg(LPI2C_T *lpi2c, uint8_t u8SlaveAddr, uint8_t u8DataAddr, uint8_t data) in LPI2C_WriteByteOneReg() argument
639 LPI2C_START(lpi2c); /* Send START */ in LPI2C_WriteByteOneReg()
643 LPI2C_WAIT_READY(lpi2c) in LPI2C_WriteByteOneReg()
653 switch(LPI2C_GET_STATUS(lpi2c)) in LPI2C_WriteByteOneReg()
656 …LPI2C_SET_DATA(lpi2c, (uint8_t)(u8SlaveAddr << 1u | 0x00u)); /* Send Slave address with write b… in LPI2C_WriteByteOneReg()
660 … LPI2C_SET_DATA(lpi2c, u8DataAddr); /* Write Lo byte address of register */ in LPI2C_WriteByteOneReg()
670 LPI2C_SET_DATA(lpi2c, data); in LPI2C_WriteByteOneReg()
681 LPI2C_SET_CONTROL_REG(lpi2c, LPI2C_CTL_STO_SI); /* Clear SI and send STOP */ in LPI2C_WriteByteOneReg()
686 …LPI2C_SET_CONTROL_REG(lpi2c, u8Ctrl); /* Write controlbit to LPI2C_CTL regi… in LPI2C_WriteByteOneReg()
707 uint32_t LPI2C_WriteMultiBytesOneReg(LPI2C_T *lpi2c, uint8_t u8SlaveAddr, uint8_t u8DataAddr, uint8… in LPI2C_WriteMultiBytesOneReg() argument
715 LPI2C_START(lpi2c); /* Send START */ in LPI2C_WriteMultiBytesOneReg()
719 LPI2C_WAIT_READY(lpi2c) in LPI2C_WriteMultiBytesOneReg()
729 switch(LPI2C_GET_STATUS(lpi2c)) in LPI2C_WriteMultiBytesOneReg()
732 …LPI2C_SET_DATA(lpi2c, (uint8_t)(u8SlaveAddr << 1u | 0x00u)); /* Write SLA+W to Register LPI2CDA… in LPI2C_WriteMultiBytesOneReg()
736 … LPI2C_SET_DATA(lpi2c, u8DataAddr); /* Write Lo byte address of register */ in LPI2C_WriteMultiBytesOneReg()
746 LPI2C_SET_DATA(lpi2c, data[u32txLen++]); in LPI2C_WriteMultiBytesOneReg()
756 LPI2C_SET_CONTROL_REG(lpi2c, LPI2C_CTL_STO_SI); /* Clear SI and send STOP */ in LPI2C_WriteMultiBytesOneReg()
761 …LPI2C_SET_CONTROL_REG(lpi2c, u8Ctrl); /* Write controlbit to LPI2C_CTL regi… in LPI2C_WriteMultiBytesOneReg()
782 uint8_t LPI2C_WriteByteTwoRegs(LPI2C_T *lpi2c, uint8_t u8SlaveAddr, uint16_t u16DataAddr, uint8_t d… in LPI2C_WriteByteTwoRegs() argument
790 LPI2C_START(lpi2c); /* Send START */ in LPI2C_WriteByteTwoRegs()
794 LPI2C_WAIT_READY(lpi2c) in LPI2C_WriteByteTwoRegs()
804 switch(LPI2C_GET_STATUS(lpi2c)) in LPI2C_WriteByteTwoRegs()
807 …LPI2C_SET_DATA(lpi2c, (uint8_t)(u8SlaveAddr << 1u | 0x00u)); /* Write SLA+W to Regis… in LPI2C_WriteByteTwoRegs()
811 …LPI2C_SET_DATA(lpi2c, (uint8_t)((u16DataAddr & 0xFF00u) >> 8u)); /* Write Hi byte address of re… in LPI2C_WriteByteTwoRegs()
821 …LPI2C_SET_DATA(lpi2c, (uint8_t)(u16DataAddr & 0xFFu)); /* Write Lo byte address of register … in LPI2C_WriteByteTwoRegs()
826 LPI2C_SET_DATA(lpi2c, data); in LPI2C_WriteByteTwoRegs()
837 … LPI2C_SET_CONTROL_REG(lpi2c, LPI2C_CTL_STO_SI); /* Clear SI and send STOP */ in LPI2C_WriteByteTwoRegs()
842 …LPI2C_SET_CONTROL_REG(lpi2c, u8Ctrl); /* Write controlbit to LPI… in LPI2C_WriteByteTwoRegs()
863 uint32_t LPI2C_WriteMultiBytesTwoRegs(LPI2C_T *lpi2c, uint8_t u8SlaveAddr, uint16_t u16DataAddr, ui… in LPI2C_WriteMultiBytesTwoRegs() argument
871 LPI2C_START(lpi2c); /* Send START */ in LPI2C_WriteMultiBytesTwoRegs()
875 LPI2C_WAIT_READY(lpi2c) in LPI2C_WriteMultiBytesTwoRegs()
885 switch(LPI2C_GET_STATUS(lpi2c)) in LPI2C_WriteMultiBytesTwoRegs()
888 …LPI2C_SET_DATA(lpi2c, (uint8_t)(u8SlaveAddr << 1u | 0x00u)); /* Write SLA+W to Regis… in LPI2C_WriteMultiBytesTwoRegs()
892 …LPI2C_SET_DATA(lpi2c, (uint8_t)((u16DataAddr & 0xFF00u) >> 8u)); /* Write Hi byte address of re… in LPI2C_WriteMultiBytesTwoRegs()
902 …LPI2C_SET_DATA(lpi2c, (uint8_t)(u16DataAddr & 0xFFu)); /* Write Lo byte address of register … in LPI2C_WriteMultiBytesTwoRegs()
907 …LPI2C_SET_DATA(lpi2c, data[u32txLen++]); /* Write data to Register LPI2C… in LPI2C_WriteMultiBytesTwoRegs()
917 … LPI2C_SET_CONTROL_REG(lpi2c, LPI2C_CTL_STO_SI); /* Clear SI and send STOP */ in LPI2C_WriteMultiBytesTwoRegs()
922 …LPI2C_SET_CONTROL_REG(lpi2c, u8Ctrl); /* Write controlbit to LPI… in LPI2C_WriteMultiBytesTwoRegs()
938 uint8_t LPI2C_ReadByte(LPI2C_T *lpi2c, uint8_t u8SlaveAddr) in LPI2C_ReadByte() argument
945 LPI2C_START(lpi2c); /* Send START */ in LPI2C_ReadByte()
949 LPI2C_WAIT_READY(lpi2c) in LPI2C_ReadByte()
959 switch(LPI2C_GET_STATUS(lpi2c)) in LPI2C_ReadByte()
962 …LPI2C_SET_DATA(lpi2c, (uint8_t)((u8SlaveAddr << 1u) | 0x01u)); /* Write SLA+R to Register LPI2C… in LPI2C_ReadByte()
973 rdata = (uint8_t) LPI2C_GET_DATA(lpi2c); /* Receive Data */ in LPI2C_ReadByte()
979 LPI2C_SET_CONTROL_REG(lpi2c, LPI2C_CTL_STO_SI); /* Clear SI and send STOP */ in LPI2C_ReadByte()
984 …LPI2C_SET_CONTROL_REG(lpi2c, u8Ctrl); /* Write controlbit to LPI2C_CTL re… in LPI2C_ReadByte()
1008 uint32_t LPI2C_ReadMultiBytes(LPI2C_T *lpi2c, uint8_t u8SlaveAddr, uint8_t rdata[], uint32_t u32rLe… in LPI2C_ReadMultiBytes() argument
1016 LPI2C_START(lpi2c); /* Send START */ in LPI2C_ReadMultiBytes()
1020 LPI2C_WAIT_READY(lpi2c) in LPI2C_ReadMultiBytes()
1030 switch(LPI2C_GET_STATUS(lpi2c)) in LPI2C_ReadMultiBytes()
1033 …LPI2C_SET_DATA(lpi2c, (uint8_t)((u8SlaveAddr << 1u) | 0x01u)); /* Write SLA+R to Register LPI2C… in LPI2C_ReadMultiBytes()
1044 rdata[u32rxLen++] = (uint8_t) LPI2C_GET_DATA(lpi2c); /* Receive Data */ in LPI2C_ReadMultiBytes()
1055 rdata[u32rxLen++] = (uint8_t) LPI2C_GET_DATA(lpi2c); /* Receive Data */ in LPI2C_ReadMultiBytes()
1061 … LPI2C_SET_CONTROL_REG(lpi2c, LPI2C_CTL_STO_SI); /* Clear SI and send STOP */ in LPI2C_ReadMultiBytes()
1066 …LPI2C_SET_CONTROL_REG(lpi2c, u8Ctrl); /* Write controlbit to LPI2C… in LPI2C_ReadMultiBytes()
1085 uint8_t LPI2C_ReadByteOneReg(LPI2C_T *lpi2c, uint8_t u8SlaveAddr, uint8_t u8DataAddr) in LPI2C_ReadByteOneReg() argument
1092 LPI2C_START(lpi2c); /* Send START */ in LPI2C_ReadByteOneReg()
1096 LPI2C_WAIT_READY(lpi2c) in LPI2C_ReadByteOneReg()
1106 switch(LPI2C_GET_STATUS(lpi2c)) in LPI2C_ReadByteOneReg()
1109 …LPI2C_SET_DATA(lpi2c, (uint8_t)(u8SlaveAddr << 1u | 0x00u)); /* Write SLA+W to Register LPI2C… in LPI2C_ReadByteOneReg()
1113 … LPI2C_SET_DATA(lpi2c, u8DataAddr); /* Write Lo byte address of register */ in LPI2C_ReadByteOneReg()
1124 …LPI2C_SET_DATA(lpi2c, (uint8_t)((u8SlaveAddr << 1u) | 0x01u)); /* Write SLA+R to Register LPI2C… in LPI2C_ReadByteOneReg()
1135 rdata = (uint8_t) LPI2C_GET_DATA(lpi2c); /* Receive Data */ in LPI2C_ReadByteOneReg()
1141 LPI2C_SET_CONTROL_REG(lpi2c, LPI2C_CTL_STO_SI); /* Clear SI and send STOP */ in LPI2C_ReadByteOneReg()
1146 …LPI2C_SET_CONTROL_REG(lpi2c, u8Ctrl); /* Write controlbit to LPI2C_CTL re… in LPI2C_ReadByteOneReg()
1170 uint32_t LPI2C_ReadMultiBytesOneReg(LPI2C_T *lpi2c, uint8_t u8SlaveAddr, uint8_t u8DataAddr, uint8_… in LPI2C_ReadMultiBytesOneReg() argument
1178 LPI2C_START(lpi2c); /* Send START */ in LPI2C_ReadMultiBytesOneReg()
1182 LPI2C_WAIT_READY(lpi2c) in LPI2C_ReadMultiBytesOneReg()
1192 switch(LPI2C_GET_STATUS(lpi2c)) in LPI2C_ReadMultiBytesOneReg()
1195 …LPI2C_SET_DATA(lpi2c, (uint8_t)(u8SlaveAddr << 1u | 0x00u)); /* Write SLA+W to Register LPI2C… in LPI2C_ReadMultiBytesOneReg()
1199 … LPI2C_SET_DATA(lpi2c, u8DataAddr); /* Write Lo byte address of register */ in LPI2C_ReadMultiBytesOneReg()
1210 …LPI2C_SET_DATA(lpi2c, (uint8_t)((u8SlaveAddr << 1u) | 0x01u)); /* Write SLA+R to Register LPI2C… in LPI2C_ReadMultiBytesOneReg()
1221 rdata[u32rxLen++] = (uint8_t) LPI2C_GET_DATA(lpi2c); /* Receive Data */ in LPI2C_ReadMultiBytesOneReg()
1232 rdata[u32rxLen++] = (uint8_t) LPI2C_GET_DATA(lpi2c); /* Receive Data */ in LPI2C_ReadMultiBytesOneReg()
1238 LPI2C_SET_CONTROL_REG(lpi2c, LPI2C_CTL_STO_SI); /* Clear SI and send STOP */ in LPI2C_ReadMultiBytesOneReg()
1243 …LPI2C_SET_CONTROL_REG(lpi2c, u8Ctrl); /* Write controlbit to LPI2C_CTL re… in LPI2C_ReadMultiBytesOneReg()
1261 uint8_t LPI2C_ReadByteTwoRegs(LPI2C_T *lpi2c, uint8_t u8SlaveAddr, uint16_t u16DataAddr) in LPI2C_ReadByteTwoRegs() argument
1268 LPI2C_START(lpi2c); /* Send START */ in LPI2C_ReadByteTwoRegs()
1272 LPI2C_WAIT_READY(lpi2c) in LPI2C_ReadByteTwoRegs()
1282 switch(LPI2C_GET_STATUS(lpi2c)) in LPI2C_ReadByteTwoRegs()
1285 …LPI2C_SET_DATA(lpi2c, (uint8_t)(u8SlaveAddr << 1u | 0x00u)); /* Write SLA+W to Regis… in LPI2C_ReadByteTwoRegs()
1289 …LPI2C_SET_DATA(lpi2c, (uint8_t)((u16DataAddr & 0xFF00u) >> 8u)); /* Write Hi byte address of re… in LPI2C_ReadByteTwoRegs()
1299 …LPI2C_SET_DATA(lpi2c, (uint8_t)(u16DataAddr & 0xFFu)); /* Write Lo byte address of register … in LPI2C_ReadByteTwoRegs()
1308 …LPI2C_SET_DATA(lpi2c, (uint8_t)((u8SlaveAddr << 1u) | 0x01u)); /* Write SLA+R to Regis… in LPI2C_ReadByteTwoRegs()
1319 rdata = (uint8_t) LPI2C_GET_DATA(lpi2c); /* Receive Data */ in LPI2C_ReadByteTwoRegs()
1325 … LPI2C_SET_CONTROL_REG(lpi2c, LPI2C_CTL_STO_SI); /* Clear SI and send STOP */ in LPI2C_ReadByteTwoRegs()
1330 …LPI2C_SET_CONTROL_REG(lpi2c, u8Ctrl); /* Write controlbit to LPI… in LPI2C_ReadByteTwoRegs()
1354 uint32_t LPI2C_ReadMultiBytesTwoRegs(LPI2C_T *lpi2c, uint8_t u8SlaveAddr, uint16_t u16DataAddr, uin… in LPI2C_ReadMultiBytesTwoRegs() argument
1362 LPI2C_START(lpi2c); /* Send START */ in LPI2C_ReadMultiBytesTwoRegs()
1366 LPI2C_WAIT_READY(lpi2c) in LPI2C_ReadMultiBytesTwoRegs()
1376 switch(LPI2C_GET_STATUS(lpi2c)) in LPI2C_ReadMultiBytesTwoRegs()
1379 …LPI2C_SET_DATA(lpi2c, (uint8_t)(u8SlaveAddr << 1u | 0x00u)); /* Write SLA+W to Regis… in LPI2C_ReadMultiBytesTwoRegs()
1383 …LPI2C_SET_DATA(lpi2c, (uint8_t)((u16DataAddr & 0xFF00u) >> 8u)); /* Write Hi byte address of re… in LPI2C_ReadMultiBytesTwoRegs()
1393 …LPI2C_SET_DATA(lpi2c, (uint8_t)(u16DataAddr & 0xFFu)); /* Write Lo byte address of register … in LPI2C_ReadMultiBytesTwoRegs()
1402 …LPI2C_SET_DATA(lpi2c, (uint8_t)((u8SlaveAddr << 1u) | 0x01u)); /* Write SLA+R to Regis… in LPI2C_ReadMultiBytesTwoRegs()
1413 rdata[u32rxLen++] = (uint8_t) LPI2C_GET_DATA(lpi2c); /* Receive Data */ in LPI2C_ReadMultiBytesTwoRegs()
1424 rdata[u32rxLen++] = (uint8_t) LPI2C_GET_DATA(lpi2c); /* Receive Data */ in LPI2C_ReadMultiBytesTwoRegs()
1430 … LPI2C_SET_CONTROL_REG(lpi2c, LPI2C_CTL_STO_SI); /* Clear SI and send STOP */ in LPI2C_ReadMultiBytesTwoRegs()
1435 …LPI2C_SET_CONTROL_REG(lpi2c, u8Ctrl); /* Write controlbit to LPI… in LPI2C_ReadMultiBytesTwoRegs()