Lines Matching refs:i2c
64 typedef int (*mxc_i2c_getAck_t)(mxc_i2c_regs_t *i2c, unsigned char byte);
95 mxc_i2c_regs_t *i2c; ///< Pointer to I2C registers (selects the member
160 typedef int (*mxc_i2c_slave_handler_t)(mxc_i2c_regs_t *i2c, mxc_i2c_slave_event_t event,
181 int MXC_I2C_Init(mxc_i2c_regs_t *i2c, int masterMode, unsigned int slaveAddr);
195 int MXC_I2C_SetSlaveAddr(mxc_i2c_regs_t *i2c, unsigned int slaveAddr, int idx);
204 int MXC_I2C_Shutdown(mxc_i2c_regs_t *i2c);
214 int MXC_I2C_Reset(mxc_i2c_regs_t *i2c);
225 int MXC_I2C_SetFrequency(mxc_i2c_regs_t *i2c, unsigned int hz);
234 unsigned int MXC_I2C_GetFrequency(mxc_i2c_regs_t *i2c);
248 int MXC_I2C_ReadyForSleep(mxc_i2c_regs_t *i2c);
261 int MXC_I2C_SetClockStretching(mxc_i2c_regs_t *i2c, int enable);
270 int MXC_I2C_GetClockStretching(mxc_i2c_regs_t *i2c);
287 int MXC_I2C_DMA_Init(mxc_i2c_regs_t *i2c, mxc_dma_regs_t *dma, bool use_dma_tx, bool use_dma_rx);
297 int MXC_I2C_DMA_GetTXChannel(mxc_i2c_regs_t *i2c);
307 int MXC_I2C_DMA_GetRXChannel(mxc_i2c_regs_t *i2c);
318 int MXC_I2C_DMA_SetRequestSelect(mxc_i2c_regs_t *i2c, uint8_t *txData, uint8_t *rxData);
335 int MXC_I2C_Start(mxc_i2c_regs_t *i2c);
344 int MXC_I2C_Stop(mxc_i2c_regs_t *i2c);
361 int MXC_I2C_WriteByte(mxc_i2c_regs_t *i2c, unsigned char byte);
377 int MXC_I2C_ReadByte(mxc_i2c_regs_t *i2c, unsigned char *byte, int ack);
401 int MXC_I2C_ReadByteInteractive(mxc_i2c_regs_t *i2c, unsigned char *byte, mxc_i2c_getAck_t getAck);
420 int MXC_I2C_Write(mxc_i2c_regs_t *i2c, unsigned char *bytes, unsigned int *len);
439 int MXC_I2C_Read(mxc_i2c_regs_t *i2c, unsigned char *bytes, unsigned int *len, int ack);
450 int MXC_I2C_ReadRXFIFO(mxc_i2c_regs_t *i2c, volatile unsigned char *bytes, unsigned int len);
464 int MXC_I2C_ReadRXFIFODMA(mxc_i2c_regs_t *i2c, unsigned char *bytes, unsigned int len,
474 int MXC_I2C_GetRXFIFOAvailable(mxc_i2c_regs_t *i2c);
485 int MXC_I2C_WriteTXFIFO(mxc_i2c_regs_t *i2c, volatile unsigned char *bytes, unsigned int len);
500 int MXC_I2C_WriteTXFIFODMA(mxc_i2c_regs_t *i2c, unsigned char *bytes, unsigned int len,
510 int MXC_I2C_GetTXFIFOAvailable(mxc_i2c_regs_t *i2c);
517 void MXC_I2C_ClearRXFIFO(mxc_i2c_regs_t *i2c);
524 void MXC_I2C_ClearTXFIFO(mxc_i2c_regs_t *i2c);
535 int MXC_I2C_GetFlags(mxc_i2c_regs_t *i2c, unsigned int *flags0, unsigned int *flags1);
544 void MXC_I2C_ClearFlags(mxc_i2c_regs_t *i2c, unsigned int flags0, unsigned int flags1);
553 void MXC_I2C_EnableInt(mxc_i2c_regs_t *i2c, unsigned int flags0, unsigned int flags1);
562 void MXC_I2C_DisableInt(mxc_i2c_regs_t *i2c, unsigned int flags0, unsigned int flags1);
572 void MXC_I2C_EnablePreload(mxc_i2c_regs_t *i2c);
579 void MXC_I2C_DisablePreload(mxc_i2c_regs_t *i2c);
586 void MXC_I2C_EnableGeneralCall(mxc_i2c_regs_t *i2c);
593 void MXC_I2C_DisableGeneralCall(mxc_i2c_regs_t *i2c);
605 void MXC_I2C_SetTimeout(mxc_i2c_regs_t *i2c, unsigned int timeout);
614 unsigned int MXC_I2C_GetTimeout(mxc_i2c_regs_t *i2c);
640 int MXC_I2C_Recover(mxc_i2c_regs_t *i2c, unsigned int retries);
768 int MXC_I2C_SlaveTransaction(mxc_i2c_regs_t *i2c, mxc_i2c_slave_handler_t callback);
811 int MXC_I2C_SlaveTransactionAsync(mxc_i2c_regs_t *i2c, mxc_i2c_slave_handler_t callback);
834 int MXC_I2C_SetRXThreshold(mxc_i2c_regs_t *i2c, unsigned int numBytes);
843 unsigned int MXC_I2C_GetRXThreshold(mxc_i2c_regs_t *i2c);
867 int MXC_I2C_SetTXThreshold(mxc_i2c_regs_t *i2c, unsigned int numBytes);
876 unsigned int MXC_I2C_GetTXThreshold(mxc_i2c_regs_t *i2c);
886 void MXC_I2C_AsyncStop(mxc_i2c_regs_t *i2c);
897 void MXC_I2C_AbortAsync(mxc_i2c_regs_t *i2c);
908 void MXC_I2C_AsyncHandler(mxc_i2c_regs_t *i2c);