PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
mfs.c File Reference
#include "pdl.h"
Include dependency graph for mfs.c:

Go to the source code of this file.

Macros

#define MFS_MASTER_CLK_HCR   (0x00u)
 
#define MFS_MASTER_CLK_MAIN   (0x01u)
 
#define MFS_MASTER_CLK_PLL   (0x02u)
 
#define MFS_MASTER_CLK_LCR   (0x04u)
 
#define MFS_MASTER_CLK_SUB   (0x05u)
 
#define MFS_BASE_CLK_DIV1   (0x00u)
 
#define MFS_BASE_CLK_DIV2   (0x01u)
 
#define MFS_BASE_CLK_DIV3   (0x02u)
 
#define MFS_BASE_CLK_DIV4   (0x03u)
 
#define MFS_BASE_CLK_DIV6   (0x04u)
 
#define MFS_BASE_CLK_DIV8   (0x05u)
 
#define MFS_BASE_CLK_DIV16   (0x06u)
 
#define MFS_NUM_1   (0x01u)
 
#define MFS_NUM_2   (0x02u)
 
#define MFS_NUM_3   (0x03u)
 
#define MFS_NUM_4   (0x04u)
 
#define MFS_NUM_5   (0x05u)
 
#define MFS_NUM_6   (0x06u)
 
#define MFS_NUM_7   (0x07u)
 
#define MFS_NUM_8   (0x08u)
 
#define MFS_NUM_16   (0x10u)
 
#define MFS_BGR_MASK   (0x7FFFu)
 
#define MFS_PLL_CTL1_MASK   (0x0Fu)
 
#define MFS_PLL_CTL2_MASK   (0x3Fu)
 

Functions

static stc_mfs_intern_data_t * MfsGetInternDataPtr (volatile stc_mfsn_t *pstcMfs)
 Return the internal data for a certain MFS instance. More...
 
en_result_t Mfs_InitTxIrq (volatile stc_mfsn_t *pstcMfs)
 Device dependent initialization of transmit interrupts according CMSIS with level defined in pdl.h. More...
 
en_result_t Mfs_InitRxIrq (volatile stc_mfsn_t *pstcMfs)
 Device dependent initialization of receive interrupts according CMSIS with level defined in pdl.h. More...
 
en_result_t Mfs_DeInitIrq (volatile stc_mfsn_t *pstcMfs)
 Device dependent de-initialization of interrupts according CMSIS. More...
 
void MfsIrqHandlerRx (volatile stc_mfsn_t *pstcMfs, stc_mfs_intern_data_t *pstcMfsInternData)
 MFS receive interrupt service routine. More...
 
void MfsIrqHandlerTx (volatile stc_mfsn_t *pstcMfs, stc_mfs_intern_data_t *pstcMfsInternData)
 MFS transmit interrupt service routine. More...
 
void MfsIrqHandlerStatus (volatile stc_mfsn_t *pstcMfs, stc_mfs_intern_data_t *pstcMfsInternData)
 MFS status interrupt service routine. More...
 
en_result_t Mfs_Uart_Init (volatile stc_mfsn_t *pstcUart, const stc_mfs_uart_config_t *pstcConfig)
 Initialisation of a MFS module to activate as UART. More...
 
en_result_t Mfs_Uart_DeInit (volatile stc_mfsn_t *pstcUart)
 Deinitialisation of a MFS module activating as UART. More...
 
en_result_t Mfs_Uart_SetBaudRate (volatile stc_mfsn_t *pstcUart, uint32_t u32BaudRate)
 Set baud rate for UART This Function sets baud rate for UART (MFS). More...
 
en_result_t Mfs_Csio_Init (volatile stc_mfsn_t *pstcCsio, const stc_mfs_csio_config_t *pstcConfig)
 Initialisation of a MFS module to activate as CSIO. More...
 
en_result_t Mfs_Csio_DeInit (volatile stc_mfsn_t *pstcCsio)
 Deinitialisation of a MFS module activating as CSIO. More...
 
en_result_t Mfs_Csio_SetSckOutEnable (volatile stc_mfsn_t *pstcCsio, boolean_t bEnable)
 Enable or disable serial clock output This Function sets or clears SCKE bit of SMR for CSIO (MFS). More...
 
uint32_t Mfs_Csio_ReadData32 (volatile stc_mfsn_t *pstcCsio)
 Read data from Received Data Register (RDR). The received data is read from Received Data Register (RDR) and return for CSIO. More...
 
en_result_t Mfs_Csio_WriteData32 (volatile stc_mfsn_t *pstcCsio, const uint32_t u32Data)
 Write data to Transmit Data Register (TDR). The data provided by Mfs_Csio_WriteData::u32Data is written into the Transmit Data Register (TDR) for CSIO. More...
 
en_result_t Mfs_Csio_SetChipSelectErrEnable (volatile stc_mfsn_t *pstcCsio, boolean_t bEnable)
 Enable or disable generating of chip select error. This Function sets or clears TBEEN bit of SACSR for CSIO (MFS). More...
 
en_result_t Mfs_Csio_SetChipSelectErrIntEnable (volatile stc_mfsn_t *pstcCsio, boolean_t bEnable)
 Enable or disable interrupt of chip select error. This Function sets or clears CSEIE bit of SACSR for CSIO (MFS). More...
 
uint16_t Mfs_Csio_GetStatus (volatile stc_mfsn_t *pstcCsio, uint16_t u16StatusMask)
 Get serial status register This Function gets specified bit status of SACSR for CSIO (MFS). More...
 
en_result_t Mfs_Csio_ClrChipSelectErr (volatile stc_mfsn_t *pstcCsio)
 Clear chip select error status This Function clears CSE bit status of SACSR for CSIO (MFS). More...
 
en_result_t Mfs_Csio_ClrTimerIntReq (volatile stc_mfsn_t *pstcCsio)
 Clear timer interrupt request This Function clears TINT bit status of SACSR for CSIO (MFS). More...
 
en_result_t Mfs_Csio_SetSerialTimerIntEnable (volatile stc_mfsn_t *pstcCsio, boolean_t bEnable)
 Enable or disable serial timer interrupt. This Function sets or clears TINTE bit of SACSR for CSIO (MFS). More...
 
en_result_t Mfs_Csio_SetSyncTransEnable (volatile stc_mfsn_t *pstcCsio, boolean_t bEnable)
 Enable or disable synchronous transfer with serial timer. This Function sets or clears TSYNE bit of SACSR for CSIO (MFS). More...
 
en_result_t Mfs_Csio_SetTimerPrescale (volatile stc_mfsn_t *pstcCsio, uint8_t u8Prescale)
 Set timer prescale. This Function sets TDIV bits of SACSR for CSIO (MFS). More...
 
en_result_t Mfs_Csio_SetSerialTimerEnable (volatile stc_mfsn_t *pstcCsio, boolean_t bEnable)
 Enable or disable serial timer. This Function sets or clears TMRE bit of SACSR for CSIO (MFS). More...
 
uint16_t Mfs_Csio_GetSerialTimer (volatile stc_mfsn_t *pstcCsio)
 Get value of serial timer. This Function returns the value of STMR for CSIO (MFS). More...
 
en_result_t Mfs_Csio_SetCmpVal4SerialTimer (volatile stc_mfsn_t *pstcCsio, uint16_t u16CompareValue)
 Set compare value for serial timer. This Function writes the compare value to STMCR for CSIO (MFS). More...
 
en_result_t Mfs_Csio_SetCsHold (volatile stc_mfsn_t *pstcCsio, boolean_t bHold)
 Set serial chip select into non-hold or hold. This Function clears or sets SCAM bit of SCSCR for CSIO (MFS). More...
 
en_result_t Mfs_Csio_SetCsTimingPrescale (volatile stc_mfsn_t *pstcCsio, uint8_t u8Prescale)
 Set prescale for chip select timing. This Function sets CDIV bits of SCSCR for CSIO (MFS). More...
 
en_result_t Mfs_Csio_SetCsInActiveLevel (volatile stc_mfsn_t *pstcCsio, boolean_t bLevel)
 Set level when chip select is in-active. This Function sets/clears CSLVL bit of SCSCR for CSIO (MFS). More...
 
en_result_t Mfs_Csio_SetChipSelectEnable (volatile stc_mfsn_t *pstcCsio, boolean_t bEnable)
 Enable or disable chip select. This Function sets or clears CSEN0 bit of SCSCR for CSIO (MFS). More...
 
en_result_t Mfs_Csio_SetChipSelectOutEnable (volatile stc_mfsn_t *pstcCsio, boolean_t bEnable)
 Enable or disable chip select output. This Function sets or clears CSOE bit of SCSCR for CSIO (MFS). More...
 
en_result_t Mfs_Csio_SetCsTimingConfig (volatile stc_mfsn_t *pstcCsio, stc_mfs_csio_cs_timing_t *pstcCsTimingCfg)
 Set configuration of chip select timings. This Function sets SCSTR10 and SCSTR32 for CSIO (MFS). More...
 
en_result_t Mfs_Csio_SetTxLength (volatile stc_mfsn_t *pstcCsio, uint8_t u8TxBytes)
 Set transfer length. This Function sets TBYTE0 for CSIO (MFS). More...
 
en_result_t Mfs_Csio_SetBaudRate (volatile stc_mfsn_t *pstcCsio, uint32_t u32BaudRate)
 Set baud rate This Function sets baud rate for CSIO (MFS). More...
 
en_result_t Mfs_I2c_Init (volatile stc_mfsn_t *pstcI2c, const stc_mfs_i2c_config_t *pstcConfig)
 Initialisation of a MFS module to activate as I2C. More...
 
en_result_t Mfs_I2c_DeInit (volatile stc_mfsn_t *pstcI2c)
 Deinitialisation of a MFS module activating as I2C. More...
 
en_result_t Mfs_I2c_SetTxIntEnable (volatile stc_mfsn_t *pstcI2c, boolean_t bEnable)
 Enable or disable I2C TX interrupt The Function sets or clears TIE bit of SMR for I2C. More...
 
en_result_t Mfs_I2c_SetRxIntEnable (volatile stc_mfsn_t *pstcI2c, boolean_t bEnable)
 Enable or disable I2C RX interrupt The Function sets or clears RIE bit of SMR for I2C. More...
 
en_result_t Mfs_I2c_SetAckEnable (volatile stc_mfsn_t *pstcI2c, boolean_t bEnable)
 Enable or disable ACK for I2C The Function sets or clears ACKE bit of IBCR for I2C. More...
 
en_result_t Mfs_I2c_SetWaitSelect (volatile stc_mfsn_t *pstcI2c, uint8_t u8WaitSelect)
 Set wait selection for I2C The Function sets or clears WSEL bit of IBCR for I2C. More...
 
en_result_t Mfs_I2c_SetCondDetIntEnable (volatile stc_mfsn_t *pstcI2c, boolean_t bEnable)
 Enable or disable condition detection interrupt for I2C The Function sets or clears CNDE bit of IBCR for I2C. More...
 
en_result_t Mfs_I2c_SetIntEnable (volatile stc_mfsn_t *pstcI2c, boolean_t bEnable)
 Enable or disable interrupt for I2C The Function sets or clears INTE bit of IBCR for I2C. More...
 
boolean_t Mfs_I2c_GetBusErrStatus (volatile stc_mfsn_t *pstcI2c)
 Get bus error status for I2C The Function can return the bus error status (IBCR.BER) of I2C. More...
 
boolean_t Mfs_I2c_GetIntStatus (volatile stc_mfsn_t *pstcI2c)
 Get interrupt status for I2C The Function can return the interrupt status (IBCR.INT) of I2C. More...
 
en_result_t Mfs_I2c_ClearIntStatus (volatile stc_mfsn_t *pstcI2c)
 Clear interrupt status for I2C The Function clears the interrupt status (IBCR.INT) of I2C. More...
 
en_result_t Mfs_I2c_SetTransmitEmpty (volatile stc_mfsn_t *pstcI2c)
 Set transmit empty flag for I2C The Function sets the TSET bit of SSR of I2C. This sets the TDRE bit of SSR. If DMA mode is enabled, TBI bit of SSR is set. More...
 
en_result_t Mfs_I2c_SetDmaModeEnable (volatile stc_mfsn_t *pstcI2c, boolean_t bEnable)
 Enable or disable DMA mode for I2C The Function sets or clears DMA bit of SSR for I2C. More...
 
en_result_t Mfs_I2c_SetNoizeFilter (volatile stc_mfsn_t *pstcI2c, uint8_t u8NzFilter)
 Set noize filter for I2C The Function sets NFCR for I2C. More...
 
en_result_t Mfs_I2c_SetSdaOutLevel (volatile stc_mfsn_t *pstcI2c, boolean_t bLevel)
 Set SDA output level after passing noize filter for I2C The Function sets or clears SDAC bit of EIBCR for I2C. More...
 
en_result_t Mfs_I2c_SetSclOutLevel (volatile stc_mfsn_t *pstcI2c, boolean_t bLevel)
 Set SCL output level after passing noize filter for I2C The Function sets or clears SCLC bit of EIBCR for I2C. More...
 
en_result_t Mfs_I2c_SetSerlalOutEnable (volatile stc_mfsn_t *pstcI2c, boolean_t bEnable)
 Enable or disable serial output for I2C The Function sets or clears SOCE bit of EIBCR for I2C. More...
 
en_result_t Mfs_I2c_SetBusErrorControlEnable (volatile stc_mfsn_t *pstcI2c, boolean_t bEnable)
 Enable or disable I2C continue after occurring bus error for I2C The Function sets or clears BEC bit of EIBCR for I2C. More...
 
en_result_t Mfs_I2c_SetI2cEnable (volatile stc_mfsn_t *pstcI2c, boolean_t bEnable, uint8_t u8AddrMask)
 Enable or disable I2C interface and set slave address mask for I2C The Function sets or clears EN bit and SM bits of ISMK for I2C. More...
 
en_result_t Mfs_I2c_SetSlvAddrEnable (volatile stc_mfsn_t *pstcI2c, boolean_t bEnable, uint8_t u8SlvAdr)
 Enable or disable slave address for I2C The Function sets or clears SAEN bit and SA bits of ISBA for I2C. More...
 
en_result_t Mfs_I2c_SetBaudRate (volatile stc_mfsn_t *pstcI2c, uint32_t u32BaudRate)
 Set baud rate This Function sets baud rate for I2C (MFS). More...
 
en_result_t Mfs_Lin_Init (volatile stc_mfsn_t *pstcLin, const stc_mfs_lin_config_t *pstcConfig)
 Initialisation of a MFS module to activate as LIN. More...
 
en_result_t Mfs_Lin_DeInit (volatile stc_mfsn_t *pstcLin)
 Deinitialisation of a MFS module activating as LIN. More...
 
en_result_t Mfs_Lin_SetBreak (volatile stc_mfsn_t *pstcLin)
 Set LIN break field This Function sets LBR bit of SCR for LIN. More...
 
en_result_t Mfs_Lin_ClearBreakDetFlag (volatile stc_mfsn_t *pstcLin)
 Clear LIN break detection flag. More...
 
en_result_t Mfs_Lin_SetBreakDetIntEnable (volatile stc_mfsn_t *pstcLin, boolean_t bEnable)
 Enable or disable LIN Break field detection interrupt for LIN The Function sets or clears LBIE bit of ESCR for LIN. More...
 
en_result_t Mfs_Lin_SetBreakConfig (volatile stc_mfsn_t *pstcLin, uint8_t u8BreakLen, uint8_t u8DelimiterLen)
 Set LIN break field length and break delimiter length The Function sets LBL bits and DEL bits of ESCR for LIN. More...
 
en_result_t Mfs_Lin_SetBaudRate (volatile stc_mfsn_t *pstcLin, uint32_t u32BaudRate)
 Set baud rate This Function sets baud rate for LIN (MFS). More...
 
en_result_t Mfs_SetSerialOutputEnable (volatile stc_mfsn_t *pstcMfs, boolean_t bEnable)
 Enable or disable serial output This Function sets or clears SOE bit of SMR for MFS (UART/CSIO/LIN). More...
 
en_result_t Mfs_SetWakeUpControlEnable (volatile stc_mfsn_t *pstcMfs, boolean_t bEnable)
 Enable or disable wake up function This Function sets or clears WUCR bit of SMR for MFS (UART/LIN). More...
 
en_result_t Mfs_SoftwareReset (volatile stc_mfsn_t *pstcMfs)
 Software Reset This Function initializes the MFS (UART/CSIO/LIN) internal state. More...
 
en_result_t Mfs_SetRxIntEnable (volatile stc_mfsn_t *pstcMfs, boolean_t bEnable)
 Enable or disable RX interrupt This Function sets or clears RIE bit of SCR for MFS (UART/CSIO/LIN). More...
 
en_result_t Mfs_SetTxIntEnable (volatile stc_mfsn_t *pstcMfs, boolean_t bEnable)
 Enable or disable TX interrupt The Function sets or clears TIE bit of SCR for MFS (UART/CSIO/LIN). More...
 
en_result_t Mfs_SetTxBusIdleIntEnable (volatile stc_mfsn_t *pstcMfs, boolean_t bEnable)
 Enable or disable TX bus idle interrupt The Function sets or clears TBIE bit of SCR for MFS (UART/CSIO/LIN). More...
 
en_result_t Mfs_SetTxFifoIntEnable (volatile stc_mfsn_t *pstcMfs, boolean_t bEnable)
 Enable or disable TX FIFO interrupt The Function sets or clears FTIE bit of FCR1 for MFS (UART/CSIO/LIN). More...
 
en_result_t Mfs_SetRxEnable (volatile stc_mfsn_t *pstcMfs, boolean_t bEnable)
 Enable or disable RX This Function sets or clears RXE bit of SCR for MFS (UART/CSIO/LIN). More...
 
en_result_t Mfs_SetTxEnable (volatile stc_mfsn_t *pstcMfs, boolean_t bEnable)
 Enable or disable TX This Function sets or clears TXE bit of SCR for MFS (UART/CSIO/LIN). More...
 
uint8_t Mfs_GetStatus (volatile stc_mfsn_t *pstcMfs, uint8_t u8StatusMask)
 Get status The Function can return the status (SSR) for MFS (UART/CSIO/LIN/I2C) More...
 
en_result_t Mfs_ErrorClear (volatile stc_mfsn_t *pstcMfs)
 Clear error flag. The Function can clear the error flags for MFS (UART/CSIO/LIN/I2C) More...
 
uint16_t Mfs_ReadData (volatile stc_mfsn_t *pstcMfs)
 Read data from Received Data Register (RDR). The received data is read from Received Data Register (RDR) and return for MFS (UART/CSIO/LIN/I2C). More...
 
en_result_t Mfs_WriteData (volatile stc_mfsn_t *pstcMfs, const uint16_t u16Data)
 Write data to Transmit Data Register (TDR). The data provided by Mfs_WriteData::u16Data is written into the Transmit Data Register (TDR) for MFS (UART/CSIO/LIN/I2C). More...
 
en_result_t Mfs_ConfigFifo (volatile stc_mfsn_t *pstcMfs, stc_mfs_fifo_config_t *pstcFifoConfig)
 Configure FIFO This Function configures the dedicated FIFO for MFS. More...
 
boolean_t Mfs_GetTxFifoReqStatus (volatile stc_mfsn_t *pstcMfs)
 Get TX FIFO request status for MFS The Function can return the TX FIFO request status (FCR1.FDRQ) of MFS. More...
 
en_result_t Mfs_ClrTxFifoReqStatus (volatile stc_mfsn_t *pstcMfs)
 Clear TX FIFO request status for MFS The Function clears the TX FIFO request status (FCR1.FDRQ) of MFS. More...
 
en_result_t Mfs_ResetFifo (volatile stc_mfsn_t *pstcMfs, uint8_t u8FifoNumber)
 Reset FIFO funtion This Function resets dedicated FIFO of MFS. More...
 
en_result_t Mfs_SetFifoEnable (volatile stc_mfsn_t *pstcMfs, uint8_t u8FifoNumber, boolean_t bEnable)
 Enable or disable FIFO funtion This Function sets or clears FE1/FE2 bit of MFS. More...
 
uint8_t Mfs_GetFifoBytes (volatile stc_mfsn_t *pstcMfs, uint8_t u8FifoNumber)
 Get effective data count in the FIFO buffer This Function gets the FBYTE of the dedicated FIFO. More...
 
uint32_t Mfs_GetBusClock (void)
 Get APB2 Bus clock frequency This function return the clock value of APB2. More...
 
uint32_t Mfs_GetReloadValue (uint32_t u32BaudRate)
 Get reload value This function return the reload value to calucurate baud rate. More...
 
uint32_t Mfs_I2c_GetReloadValue (uint32_t u32BaudRate)
 Get reload value for I2C interface This function return the reload value to calucurate baud rate. More...
 
en_result_t Mfs_SetSMR (volatile stc_mfsn_t *pstcMfs, uint8_t u8SMR)
 Set value to Serial Mode Register This Function sets value to SMR. More...
 
uint8_t Mfs_GetSMR (volatile stc_mfsn_t *pstcMfs)
 Get value from Serial Mode Register This Function returns value of SMR. More...
 
en_result_t Mfs_SetSCR (volatile stc_mfsn_t *pstcMfs, uint8_t u8SCR)
 Set value to Serial Control Register This Function sets value to SCR. More...
 
uint8_t Mfs_GetSCR (volatile stc_mfsn_t *pstcMfs)
 Get value from Serial Control Register This Function returns value of SCR. More...
 
en_result_t Mfs_SetESCR (volatile stc_mfsn_t *pstcMfs, uint8_t u8ESCR)
 Set value to Extended Serial Control Register This Function sets value to ESCR. More...
 
uint8_t Mfs_GetESCR (volatile stc_mfsn_t *pstcMfs)
 Get value from Extended Serial Control Register This Function returns value of ESCR. More...
 
en_result_t Mfs_SetBGR (volatile stc_mfsn_t *pstcMfs, uint16_t u16BGR)
 Set value to Baud rate Generator Register This Function sets value to BGR. More...
 
uint16_t Mfs_GetBGR (volatile stc_mfsn_t *pstcMfs)
 Get value from Baud rate Generator Register This Function returns value of BGR. More...
 
en_result_t Mfs_SetFCR1 (volatile stc_mfsn_t *pstcMfs, uint8_t u8FCR1)
 Set value to Fifo Control Register 1 This Function sets value to FCR1. More...
 
uint8_t Mfs_GetFCR1 (volatile stc_mfsn_t *pstcMfs)
 Get value from FIFO Control Register 1 This Function returns value of FCR1. More...
 
en_result_t Mfs_SetFCR0 (volatile stc_mfsn_t *pstcMfs, uint8_t u8FCR0)
 Set value to Fifo Control Register 0 This Function can set value to FCR0. More...
 
uint8_t Mfs_GetFCR0 (volatile stc_mfsn_t *pstcMfs)
 Get value from FIFO Control Register 0 This Function returns value of FCR0. More...
 
en_result_t Mfs_SetSCSTR10 (volatile stc_mfsn_t *pstcMfs, uint16_t u16SCSTR10)
 Set value to Serial Chip Select Timing Register 1-0 This Function can set value to SCSTR10. More...
 
uint16_t Mfs_GetSCSTR10 (volatile stc_mfsn_t *pstcMfs)
 Get value from Serial Chip Select Timing Register 1-0 This Function returns value of SCSTR10. More...
 
en_result_t Mfs_SetSCSTR32 (volatile stc_mfsn_t *pstcMfs, uint16_t u16SCSTR32)
 Set value to Serial Chip Select Timing Register 3-2 This Function can set value to SCSTR32. More...
 
uint16_t Mfs_GetSCSTR32 (volatile stc_mfsn_t *pstcMfs)
 Get value from Serial Chip Select Timing Register 1-0 This Function returns value of SCSTR32. More...
 
en_result_t Mfs_SetSACSR (volatile stc_mfsn_t *pstcMfs, uint16_t u16SACSR)
 Set value to Serial Assistant Status Control Register This Function can set value to SACSR. More...
 
uint16_t Mfs_GetSACSR (volatile stc_mfsn_t *pstcMfs)
 Get value from Serial Assistant Status Control Register This Function can get value from SACSR. More...
 
uint16_t Mfs_GetSTMCR (volatile stc_mfsn_t *pstcMfs)
 Get value from Serial Timer Compare Register This Function can get value from STMCR. More...
 
en_result_t Mfs_SetSCSCR (volatile stc_mfsn_t *pstcMfs, uint16_t u16SCSCR)
 Set value to Serial Chip Select Control Register This Function can set value to SCSCR. More...
 
uint16_t Mfs_GetSCSCR (volatile stc_mfsn_t *pstcMfs)
 Get value from Serial Chip Select Control Register This Function can get value from SCSCR. More...
 
en_result_t Mfs_SetTBYTE0 (volatile stc_mfsn_t *pstcMfs, uint8_t u8TBYTE0)
 Set value to Transmission Byte 0 This Function can set value to TBYTE0. More...
 
uint8_t Mfs_GetTBYTE0 (volatile stc_mfsn_t *pstcMfs)
 Get value from Transmission Byte 0 This Function can get value from TBYTE0. More...
 
en_result_t Mfs_SetISBA (volatile stc_mfsn_t *pstcMfs, uint8_t u8ISBA)
 Set value to 7-bit Slave Address Register This Function can set value to ISBA. More...
 
uint8_t Mfs_GetISBA (volatile stc_mfsn_t *pstcMfs)
 Get value from 7-bit Slave Address Register This Function can get value from ISBA. More...
 
en_result_t Mfs_SetISMK (volatile stc_mfsn_t *pstcMfs, uint8_t u8ISMK)
 Set value to 7-bit Slave Address Mask Register This Function can set value to ISMK. More...
 
uint8_t Mfs_GetISMK (volatile stc_mfsn_t *pstcMfs)
 Get value from 7-bit Slave Address Mask Register This Function can get value from ISMK. More...
 
uint8_t Mfs_GetNFCR (volatile stc_mfsn_t *pstcMfs)
 Get value from Noize Filter Control Register This Function can get value from NFCR. More...
 
en_result_t Mfs_SetEIBCR (volatile stc_mfsn_t *pstcMfs, uint8_t u8EIBCR)
 Set value to Extended I2C Bus Control Register This Function can set value to EIBCR. More...
 
uint8_t Mfs_GetEIBCR (volatile stc_mfsn_t *pstcMfs)
 Get value from Extended I2C Bus Control Register This Function can get value from EIBCR. More...
 
en_result_t Mfs_SetTxIntCallBack (volatile stc_mfsn_t *pstcMfs, mfs_tx_cb_func_ptr_t pfnTxCbFunc)
 Set TX ISR callback funtion. More...
 
en_result_t Mfs_SetRxIntCallBack (volatile stc_mfsn_t *pstcMfs, mfs_rx_cb_func_ptr_t pfnRxCbFunc)
 Set RX ISR callback funtion. More...
 
en_result_t Mfs_SetStsIntCallBack (volatile stc_mfsn_t *pstcMfs, mfs_sts_cb_func_ptr_t pfnStsCbFunc)
 Set Status ISR callback funtion. More...
 
en_result_t Mfs_SetUpperLayerHandle (volatile stc_mfsn_t *pstcMfs, void *pvHandle)
 Set handle for upper layer. More...
 

Variables

stc_mfs_instance_data_t m_astcMfsInstanceDataLut [MfsInstanceIndexMax]
 Look-up table for all enabled MFS instances and their internal data. More...
 

Detailed Description

A detailed description is available at MFS Module description

History:

  • 2013-03-27 1.0 NT First version.

Definition in file mfs.c.