RTEMS 6.1-rc4
Loading...
Searching...
No Matches
LPI2C FreeRTOS Driver

LPI2C RTOS Operation

status_t LPI2C_RTOS_Init (lpi2c_rtos_handle_t *handle, LPI2C_Type *base, const lpi2c_master_config_t *masterConfig, uint32_t srcClock_Hz)
 Initializes LPI2C.
 
status_t LPI2C_RTOS_Deinit (lpi2c_rtos_handle_t *handle)
 Deinitializes the LPI2C.
 
status_t LPI2C_RTOS_Transfer (lpi2c_rtos_handle_t *handle, lpi2c_master_transfer_t *transfer)
 Performs I2C transfer.
 

Driver version

#define FSL_LPI2C_FREERTOS_DRIVER_VERSION   (MAKE_VERSION(2, 3, 2))
 LPI2C FreeRTOS driver version.
 

Detailed Description

Function Documentation

◆ LPI2C_RTOS_Deinit()

status_t LPI2C_RTOS_Deinit ( lpi2c_rtos_handle_t *  handle)

Deinitializes the LPI2C.

This function deinitializes the LPI2C module and related RTOS context.

Parameters
handleThe RTOS LPI2C handle.

◆ LPI2C_RTOS_Init()

status_t LPI2C_RTOS_Init ( lpi2c_rtos_handle_t *  handle,
LPI2C_Type base,
const lpi2c_master_config_t masterConfig,
uint32_t  srcClock_Hz 
)

Initializes LPI2C.

This function initializes the LPI2C module and related RTOS context.

Parameters
handleThe RTOS LPI2C handle, the pointer to an allocated space for RTOS context.
baseThe pointer base address of the LPI2C instance to initialize.
masterConfigConfiguration structure to set-up LPI2C in master mode.
srcClock_HzFrequency of input clock of the LPI2C module.
Returns
status of the operation.

◆ LPI2C_RTOS_Transfer()

status_t LPI2C_RTOS_Transfer ( lpi2c_rtos_handle_t *  handle,
lpi2c_master_transfer_t transfer 
)

Performs I2C transfer.

This function performs an I2C transfer using LPI2C module according to data given in the transfer structure.

Parameters
handleThe RTOS LPI2C handle.
transferStructure specifying the transfer parameters.
Returns
status of the operation.