RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Modules | Functions | Variables
Lpi2c

Modules

 Lpi2c_master_driver
 
 Lpi2c_slave_driver
 

Functions

uint32_t LPI2C_GetInstance (LPI2C_Type *base)
 Returns an instance number given a base address.
 

Variables

IRQn_Type const kLpi2cIrqs []
 Array to map LPI2C instance number to IRQ number, used internally for LPI2C master interrupt and EDMA transactional APIs.
 
lpi2c_master_isr_t s_lpi2cMasterIsr
 Pointer to master IRQ handler for each instance, used internally for LPI2C master interrupt and EDMA transactional APIs.
 
void * s_lpi2cMasterHandle []
 Pointers to master handles for each instance, used internally for LPI2C master interrupt and EDMA transactional APIs.
 

Driver version

enum  {
  kStatus_LPI2C_Busy = MAKE_STATUS(kStatusGroup_LPI2C, 0) , kStatus_LPI2C_Idle = MAKE_STATUS(kStatusGroup_LPI2C, 1) , kStatus_LPI2C_Nak = MAKE_STATUS(kStatusGroup_LPI2C, 2) , kStatus_LPI2C_FifoError = MAKE_STATUS(kStatusGroup_LPI2C, 3) ,
  kStatus_LPI2C_BitError = MAKE_STATUS(kStatusGroup_LPI2C, 4) , kStatus_LPI2C_ArbitrationLost = MAKE_STATUS(kStatusGroup_LPI2C, 5) , kStatus_LPI2C_PinLowTimeout , kStatus_LPI2C_NoTransferInProgress ,
  kStatus_LPI2C_DmaRequestFail = MAKE_STATUS(kStatusGroup_LPI2C, 8) , kStatus_LPI2C_Timeout = MAKE_STATUS(kStatusGroup_LPI2C, 9)
}
 LPI2C status return codes. More...
 
#define FSL_LPI2C_DRIVER_VERSION   (MAKE_VERSION(2, 4, 1))
 LPI2C driver version.
 
#define I2C_RETRY_TIMES   0U /* Define to zero means keep waiting until the flag is assert/deassert. */
 Retry times for waiting flag.
 

Detailed Description

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

LPI2C status return codes.

Enumerator
kStatus_LPI2C_Busy 

The master is already performing a transfer.

kStatus_LPI2C_Idle 

The slave driver is idle.

kStatus_LPI2C_Nak 

The slave device sent a NAK in response to a byte.

kStatus_LPI2C_FifoError 

FIFO under run or overrun.

kStatus_LPI2C_BitError 

Transferred bit was not seen on the bus.

kStatus_LPI2C_ArbitrationLost 

Arbitration lost error.

kStatus_LPI2C_PinLowTimeout 

SCL or SDA were held low longer than the timeout.

kStatus_LPI2C_NoTransferInProgress 

Attempt to abort a transfer when one is not in progress.

kStatus_LPI2C_DmaRequestFail 

DMA request failed.

kStatus_LPI2C_Timeout 

Timeout polling status flags.

Function Documentation

◆ LPI2C_GetInstance()

uint32_t LPI2C_GetInstance ( LPI2C_Type base)

Returns an instance number given a base address.

If an invalid base address is passed, debug builds will assert. Release builds will just return instance number 0.

Parameters
baseThe LPI2C peripheral base address.
Returns
LPI2C instance number starting from 0.

brief Returns an instance number given a base address.

If an invalid base address is passed, debug builds will assert. Release builds will just return instance number 0.

param base The LPI2C peripheral base address. return LPI2C instance number starting from 0.

Variable Documentation

◆ kLpi2cIrqs

IRQn_Type const kLpi2cIrqs[]
extern

Array to map LPI2C instance number to IRQ number, used internally for LPI2C master interrupt and EDMA transactional APIs.

Array to map LPI2C instance number to IRQ number, used internally for LPI2C master interrupt and EDMA transactional APIs.

◆ s_lpi2cMasterHandle

void* s_lpi2cMasterHandle[]
extern

Pointers to master handles for each instance, used internally for LPI2C master interrupt and EDMA transactional APIs.

Pointers to master handles for each instance, used internally for LPI2C master interrupt and EDMA transactional APIs.

◆ s_lpi2cMasterIsr

lpi2c_master_isr_t s_lpi2cMasterIsr
extern

Pointer to master IRQ handler for each instance, used internally for LPI2C master interrupt and EDMA transactional APIs.

Pointer to master IRQ handler for each instance, used internally for LPI2C master interrupt and EDMA transactional APIs.