![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|
#include "mfs/mfs.h"

Go to the source code of this file.
Data Structures | |
| struct | stc_mfs_hl_buffer |
| MFS_HL ring buffer. More... | |
| struct | stc_mfs_hl_uart_config |
| MFS_HL UART configuration. More... | |
| struct | stc_mfs_hl_spi_config |
| MFS_HL SPI configuration. More... | |
| struct | stc_mfs_hl_timer_config |
| MFS_HL Timer mode configuration. More... | |
| struct | stc_mfs_hl_csio_config |
| MFS_HL CSIO configuration. More... | |
| struct | stc_mfs_hl_i2c_config |
| MFS_HL I2C configuration. More... | |
| struct | stc_mfs_hl_lin_config |
| MFS_HL LIN configuration. More... | |
| struct | stc_mfs_hl_intern_data |
| MFS_HL module internal data, storing internal information for each enabled MFS instance. More... | |
| struct | stc_mfs_hl_instance_data |
| MFS_HL instance data type. More... | |
Macros | |
| #define | MFS_HL_MODE_GROUP_CHK (0xF0u) |
| MFS_HL mode group. More... | |
| #define | MFS_HL_MODE_GROUP_UART (0x10u) |
| #define | MFS_HL_MODE_GROUP_CSIO (0x20u) |
| #define | MFS_HL_MODE_GROUP_I2C (0x30u) |
| #define | MFS_HL_MODE_GROUP_LIN (0x40u) |
Typedefs | |
| typedef void(* | mfs_hl_tx_cb_func_ptr_t )(uint16_t) |
| MFS_HL callback function prototypes. More... | |
| typedef void(* | mfs_hl_rx_cb_func_ptr_t )(uint16_t) |
| typedef uint8_t(* | mfs_hl_i2c_slv_cb_func_prt_t )(uint8_t) |
| typedef void(* | mfs_hl_lin_brk_func_ptr_t )(void) |
| typedef enum en_mfs_hl_fifo_usage | en_mfs_hl_fifo_usage_t |
| MFS_HL FIFO usage. More... | |
| typedef enum en_mfs_hl_exec | en_mfs_hl_exec_t |
| MFS_HL Execution status. More... | |
| typedef enum en_mfs_hl_mfs_mode | en_mfs_hl_mfs_mode_t |
| MFS_HL MFS mode. More... | |
| typedef enum en_mfs_hl_i2c_wait_select | en_mfs_hl_i2c_wait_select_t |
| MFS_HL I2C wait selection. More... | |
| typedef enum en_mfs_hl_i2c_int_state | en_mfs_hl_i2c_int_state_t |
| MFS_HL I2C interrupt status. More... | |
| typedef struct stc_mfs_hl_buffer | stc_mfs_hl_buffer_t |
| MFS_HL ring buffer. More... | |
| typedef struct stc_mfs_hl_uart_config | stc_mfs_hl_uart_config_t |
| MFS_HL UART configuration. More... | |
| typedef struct stc_mfs_hl_spi_config | stc_mfs_hl_spi_config_t |
| MFS_HL SPI configuration. More... | |
| typedef struct stc_mfs_hl_timer_config | stc_mfs_hl_timer_config_t |
| MFS_HL Timer mode configuration. More... | |
| typedef struct stc_mfs_hl_csio_config | stc_mfs_hl_csio_config_t |
| MFS_HL CSIO configuration. More... | |
| typedef struct stc_mfs_hl_i2c_config | stc_mfs_hl_i2c_config_t |
| MFS_HL I2C configuration. More... | |
| typedef struct stc_mfs_hl_lin_config | stc_mfs_hl_lin_config_t |
| MFS_HL LIN configuration. More... | |
| typedef enum en_mfs_hl_buffer | en_mfs_hl_buffer_t |
| Get the poitner to internal RX or TX buffer. More... | |
| typedef struct stc_mfs_hl_intern_data | stc_mfs_hl_intern_data_t |
| MFS_HL module internal data, storing internal information for each enabled MFS instance. More... | |
| typedef struct stc_mfs_hl_instance_data | stc_mfs_hl_instance_data_t |
| MFS_HL instance data type. More... | |
Functions | |
| en_result_t | Mfs_Hl_Uart_Init (volatile stc_mfsn_t *pstcUart, stc_mfs_hl_uart_config_t *pstcConfig) |
| Initialize an MFS_HL module as UART mode. This Function initialises the MFS according the UART setup in the passed configuration structure. Several checking are done before that and an error is returned if invalid Modes are requested. More... | |
| en_result_t | Mfs_Hl_Uart_DeInit (volatile stc_mfsn_t *pstcUart) |
| UART deinitialisation of a MFS_HL module. More... | |
| en_result_t | Mfs_Hl_Csio_Init (volatile stc_mfsn_t *pstcCsio, stc_mfs_hl_csio_config_t *pstcConfig) |
| Initialize an MFS_HL module as CSIO mode. More... | |
| en_result_t | Mfs_Hl_Csio_DeInit (volatile stc_mfsn_t *pstcCsio) |
| CSIO deinitialisation of a MFS_HL module. More... | |
| en_result_t | Mfs_Hl_Csio_SynchronousTrans (volatile stc_mfsn_t *pstcCsio, const uint8_t *pu8TxData, uint8_t *pu8RxData, uint16_t u16TransferSize, boolean_t bCsHolding) |
| Simultaneously transmit and receive data as CSIO master. More... | |
| en_result_t | Mfs_Hl_Lin_Init (volatile stc_mfsn_t *pstcLin, stc_mfs_hl_lin_config_t *pstcConfig) |
| Initialize an MFS_HL module as LIN mode. More... | |
| en_result_t | Mfs_Hl_Lin_DeInit (volatile stc_mfsn_t *pstcLin) |
| LIN deinitialisation of a MFS_HL module. More... | |
| en_result_t | Mfs_Hl_Lin_SetBreak (volatile stc_mfsn_t *pstcLin) |
| Set LIN Break with an MFS_HL module in LIN Master Mode. More... | |
| en_result_t | Mfs_Hl_Lin_SetNewBaudDivisor (volatile stc_mfsn_t *pstcLin, uint16_t u16BaudDivisor) |
| Set new baud divisor (NOT Baud Rate!) in LIN Slave Mode. More... | |
| en_result_t | Mfs_Hl_Lin_DisableRxInterrupt (volatile stc_mfsn_t *pstcLin) |
| Disable reception interrupt for LIN mode. More... | |
| en_result_t | Mfs_Hl_Lin_TransferRxBuffer (volatile stc_mfsn_t *pstcLin, uint8_t *pu8Data, uint16_t u16ReadCount) |
| Transfers n bytes of recent receive buffer to user buffer. More... | |
| en_result_t | Mfs_Hl_I2c_Init (volatile stc_mfsn_t *pstcI2c, stc_mfs_hl_i2c_config_t *pstcConfig) |
| Initialize an MFS_HL module as I2C mode. This Function initialises the MFS according the I2C setup in the passed Config Struct. Several Checkings are done before that and an error is returned if invalid Modes are requested. More... | |
| en_result_t | Mfs_Hl_I2c_DeInit (volatile stc_mfsn_t *pstcI2c) |
| I2C deinitialisation of a MFS_HL module. More... | |
| en_result_t | Mfs_Hl_I2c_Write (volatile stc_mfsn_t *pstcI2c, uint8_t u8SlaveAddr, uint8_t *pu8Data, uint16_t *pu16WriteCnt, boolean_t bBlocking) |
| Write data to MFS_HL module for I2C. More... | |
| en_result_t | Mfs_Hl_I2c_Read (volatile stc_mfsn_t *pstcI2c, uint8_t u8SlaveAddr, uint8_t *pu8Data, uint16_t *pu16ReadCnt, boolean_t bBlocking) |
| Read received data from I2C. More... | |
| en_result_t | Mfs_Hl_I2c_WaitTxComplete (volatile stc_mfsn_t *pstcI2c, uint32_t u32MaxCnt) |
| Check to complete I2C transmission. More... | |
| en_result_t | Mfs_Hl_I2c_WaitRxComplete (volatile stc_mfsn_t *pstcI2c, uint32_t u32MaxCnt) |
| Check to complete I2C reception. More... | |
| en_result_t | Mfs_Hl_Read (volatile stc_mfsn_t *pstcMfs, uint8_t *pu8Data, uint16_t *pu16DataCnt, uint16_t u16ReadCnt, boolean_t bBlocking) |
| Read received data from MFS_HL module synchronously or asynchronously. More... | |
| en_result_t | Mfs_Hl_Write (volatile stc_mfsn_t *pstcMfs, uint8_t *pu8Data, uint16_t u16WriteCnt, boolean_t bBlocking, boolean_t bCsHolding) |
| Write data to MFS_HL module synchronously or asynchronously. More... | |
| en_result_t | Mfs_Hl_GetBufferPointer (volatile stc_mfsn_t *pstcMfs, en_mfs_hl_buffer_t enBufIndex, stc_mfs_hl_buffer_t **ppstcBuffer) |
| Get the internal TX or RX buffer pointer. More... | |
Headerfile for MFS High Level functions
History:
Definition in file mfs_hl.h.