iLLD_TC27xD  1.0
IfxAsclin.h File Reference

ASCLIN basic functionality. More...

#include "_Impl/IfxAsclin_cfg.h"
#include "Scu/Std/IfxScuCcu.h"
#include "Scu/Std/IfxScuWdt.h"
#include "Cpu/Std/IfxCpu_Intrinsics.h"
#include "IfxAsclin_reg.h"
#include "Src/Std/IfxSrc.h"
#include "_PinMap/IfxAsclin_PinMap.h"

Go to the source code of this file.

Enumerations

enum  IfxAsclin_Checksum {
  IfxAsclin_Checksum_classic = 0,
  IfxAsclin_Checksum_enhanced = 1
}
 Defines if the classic or the enhanced checksum will be calculated by the checksum block.
Definition in Ifx_ASCLIN.DATCON.B.CSM. More...
 
enum  IfxAsclin_ChecksumInjection {
  IfxAsclin_ChecksumInjection_notWritten = 0,
  IfxAsclin_ChecksumInjection_written = 1
}
 Defines if the received checksum byte is written into the RXFifo or not.
Definition in Ifx_ASCLIN.LIN.CON.B.CSI. More...
 
enum  IfxAsclin_ClockPolarity {
  IfxAsclin_ClockPolarity_idleLow = 0,
  IfxAsclin_ClockPolarity_idleHigh = 1
}
 CPOL defines the idle level of the clock signal in the SPI mode.
Idle level is the level outside the data transmission time intervals.
Definition in Ifx_ASCLIN.IOCR.B.CPOL. More...
 
enum  IfxAsclin_ClockSource {
  IfxAsclin_ClockSource_noClock = 0,
  IfxAsclin_ClockSource_kernelClock = 1,
  IfxAsclin_ClockSource_oscillatorClock = 2,
  IfxAsclin_ClockSource_flexRayClock = 4,
  IfxAsclin_ClockSource_ascFastClock = 8,
  IfxAsclin_ClockSource_ascSlowClock = 16
}
 Selection of clock source
Definition in Ifx_ASCLIN.CSR.B.CLKSEL. More...
 
enum  IfxAsclin_CtsInputSelect {
  IfxAsclin_CtsInputSelect_0,
  IfxAsclin_CtsInputSelect_1,
  IfxAsclin_CtsInputSelect_2,
  IfxAsclin_CtsInputSelect_3
}
 CTS input pin selection
Definition in Ifx_ASCLIN.IOCR.B.CTS. More...
 
enum  IfxAsclin_DataLength {
  IfxAsclin_DataLength_1 = 0,
  IfxAsclin_DataLength_2,
  IfxAsclin_DataLength_3,
  IfxAsclin_DataLength_4,
  IfxAsclin_DataLength_5,
  IfxAsclin_DataLength_6,
  IfxAsclin_DataLength_7,
  IfxAsclin_DataLength_8,
  IfxAsclin_DataLength_9,
  IfxAsclin_DataLength_10,
  IfxAsclin_DataLength_11,
  IfxAsclin_DataLength_12,
  IfxAsclin_DataLength_13,
  IfxAsclin_DataLength_14,
  IfxAsclin_DataLength_15,
  IfxAsclin_DataLength_16
}
 Number of bits per transfer
Definition in Ifx_ASCLIN.FRAMECON.B.DATALEN. More...
 
enum  IfxAsclin_FrameMode {
  IfxAsclin_FrameMode_initialise = 0,
  IfxAsclin_FrameMode_asc = 1,
  IfxAsclin_FrameMode_spi = 2,
  IfxAsclin_FrameMode_lin = 3
}
 Defines the basic operating mode of the module. Changing the mode must be done by switching first to initialize mode, and then to the other mode.
Definition in Ifx_ASCLIN.FRAMECON.B.MODE. More...
 
enum  IfxAsclin_HeaderResponseSelect {
  IfxAsclin_HeaderResponseSelect_headerAndResponse = 0,
  IfxAsclin_HeaderResponseSelect_headerOnly = 1
}
 Defines if LIN frame shall consist of a header and response or of a header only.
Definition in Ifx_ASCLIN.DATCON.B.HO. More...
 
enum  IfxAsclin_IdleDelay {
  IfxAsclin_IdleDelay_0,
  IfxAsclin_IdleDelay_1,
  IfxAsclin_IdleDelay_2,
  IfxAsclin_IdleDelay_3,
  IfxAsclin_IdleDelay_4,
  IfxAsclin_IdleDelay_5,
  IfxAsclin_IdleDelay_6,
  IfxAsclin_IdleDelay_7
}
 Defines the duration of the IDLE delay in bit times.
SPI mode: this is the idle time between the frames.
ASC and LIN mode: this is the pause inserted between transmission of bytes.
Definition in Ifx_ASCLIN.FRAMECON.B.IDLE. More...
 
enum  IfxAsclin_LeadDelay {
  IfxAsclin_LeadDelay_0,
  IfxAsclin_LeadDelay_1,
  IfxAsclin_LeadDelay_2,
  IfxAsclin_LeadDelay_3,
  IfxAsclin_LeadDelay_4,
  IfxAsclin_LeadDelay_5,
  IfxAsclin_LeadDelay_6,
  IfxAsclin_LeadDelay_7
}
 Defines the leading delay in bit times in SPI mode. ASC mode: not applicable.
LIN mode: delay between the end of the break and the start of the sync character.
Definition in Ifx_ASCLIN.FRAMECON.B.LEAD. More...
 
enum  IfxAsclin_LinMode {
  IfxAsclin_LinMode_slave = 0,
  IfxAsclin_LinMode_master = 1
}
 Configures if the module in LIN mode operates as master or slave
Definition in Ifx_ASCLIN.LIN.CON.B.MS. More...
 
enum  IfxAsclin_LinResponseTimeoutMode {
  IfxAsclin_LinResponseTimeoutMode_frameTimeout = 0,
  IfxAsclin_LinResponseTimeoutMode_responseTimeout = 1
}
 Defines the timeout threshold of RESPOSE bit is for LIN response timeout or LIN frame timeout.
Definition in Ifx_ASCLIN.DATCON.B.RM. More...
 
enum  IfxAsclin_OversamplingFactor {
  IfxAsclin_OversamplingFactor_4 = 3,
  IfxAsclin_OversamplingFactor_5 = 4,
  IfxAsclin_OversamplingFactor_6 = 5,
  IfxAsclin_OversamplingFactor_7 = 6,
  IfxAsclin_OversamplingFactor_8 = 7,
  IfxAsclin_OversamplingFactor_9 = 8,
  IfxAsclin_OversamplingFactor_10 = 9,
  IfxAsclin_OversamplingFactor_11 = 10,
  IfxAsclin_OversamplingFactor_12 = 11,
  IfxAsclin_OversamplingFactor_13 = 12,
  IfxAsclin_OversamplingFactor_14 = 13,
  IfxAsclin_OversamplingFactor_15 = 14,
  IfxAsclin_OversamplingFactor_16 = 15
}
 Defines the bit length in ticks in the range of 1 to 16. The lengths of 1 to 3 are not allowed
Definition in Ifx_ASCLIN.BITCON.B.OVERSAMPLING. More...
 
enum  IfxAsclin_ParityType {
  IfxAsclin_ParityType_even = 0,
  IfxAsclin_ParityType_odd = 1
}
 Type of parity bit attached to data bits
Definition in Ifx_ASCLIN.FRAMECON.B.ODD. More...
 
enum  IfxAsclin_ReceiveBufferMode {
  IfxAsclin_ReceiveBufferMode_rxFifo = 0,
  IfxAsclin_ReceiveBufferMode_rxBuffer = 1
}
 Receive buffer mode
Definition in Ifx_ASCLIN.RXFIFOCON.B.BUF. More...
 
enum  IfxAsclin_RtsCtsPolarity {
  IfxAsclin_RtsCtsPolarity_activeHigh = 0,
  IfxAsclin_RtsCtsPolarity_activeLow = 1
}
 Polarity of the RTS and CTS signals
Definition in Ifx_ASCLIN.IOCR.B.RCPOL. More...
 
enum  IfxAsclin_RxFifoInterruptLevel {
  IfxAsclin_RxFifoInterruptLevel_1,
  IfxAsclin_RxFifoInterruptLevel_2,
  IfxAsclin_RxFifoInterruptLevel_3,
  IfxAsclin_RxFifoInterruptLevel_4,
  IfxAsclin_RxFifoInterruptLevel_5,
  IfxAsclin_RxFifoInterruptLevel_6,
  IfxAsclin_RxFifoInterruptLevel_7,
  IfxAsclin_RxFifoInterruptLevel_8,
  IfxAsclin_RxFifoInterruptLevel_9,
  IfxAsclin_RxFifoInterruptLevel_10,
  IfxAsclin_RxFifoInterruptLevel_11,
  IfxAsclin_RxFifoInterruptLevel_12,
  IfxAsclin_RxFifoInterruptLevel_13,
  IfxAsclin_RxFifoInterruptLevel_14,
  IfxAsclin_RxFifoInterruptLevel_15,
  IfxAsclin_RxFifoInterruptLevel_16
}
 Defines the filling level that triggers a drain (RX) interrupt or DMA access
Definition in Ifx_ASCLIN.RXFIFOCON.B.INTLEVEL. More...
 
enum  IfxAsclin_RxFifoOutletWidth {
  IfxAsclin_RxFifoOutletWidth_0,
  IfxAsclin_RxFifoOutletWidth_1,
  IfxAsclin_RxFifoOutletWidth_2,
  IfxAsclin_RxFifoOutletWidth_3
}
 Defines the number of bytes read from the Rx FIFO with one FPI bus read
Definition in Ifx_ASCLIN.RXFIFOCON.B.OUTW. More...
 
enum  IfxAsclin_RxInputSelect {
  IfxAsclin_RxInputSelect_0,
  IfxAsclin_RxInputSelect_1,
  IfxAsclin_RxInputSelect_2,
  IfxAsclin_RxInputSelect_3,
  IfxAsclin_RxInputSelect_4,
  IfxAsclin_RxInputSelect_5,
  IfxAsclin_RxInputSelect_6,
  IfxAsclin_RxInputSelect_7
}
 Alternate input selection for Rx signal.
Definition in Ifx_ASCLIN.IOCR.B.ALTI. More...
 
enum  IfxAsclin_SamplePointPosition {
  IfxAsclin_SamplePointPosition_1 = 1,
  IfxAsclin_SamplePointPosition_2 = 2,
  IfxAsclin_SamplePointPosition_3 = 3,
  IfxAsclin_SamplePointPosition_4 = 4,
  IfxAsclin_SamplePointPosition_5 = 5,
  IfxAsclin_SamplePointPosition_6 = 6,
  IfxAsclin_SamplePointPosition_7 = 7,
  IfxAsclin_SamplePointPosition_8 = 8,
  IfxAsclin_SamplePointPosition_9 = 9,
  IfxAsclin_SamplePointPosition_10 = 10,
  IfxAsclin_SamplePointPosition_11 = 11,
  IfxAsclin_SamplePointPosition_12 = 12,
  IfxAsclin_SamplePointPosition_13 = 13,
  IfxAsclin_SamplePointPosition_14 = 14,
  IfxAsclin_SamplePointPosition_15 = 15
}
 Sample point position
Definition in Ifx_ASCLIN.BITCON.B.SAMPLEPOINT. More...
 
enum  IfxAsclin_SamplesPerBit {
  IfxAsclin_SamplesPerBit_one = 0,
  IfxAsclin_SamplesPerBit_three = 1
}
 Number of samples per bit, sample mode/medianfilter
Definition in Ifx_ASCLIN.BITCON.B.SM. More...
 
enum  IfxAsclin_ShiftDirection {
  IfxAsclin_ShiftDirection_lsbFirst = 0,
  IfxAsclin_ShiftDirection_msbFirst = 1
}
 SPI mode: defines the shift direction of the shift register.
ASC and LIN mode: should be set to 0.
Definition in Ifx_ASCLIN.FRAMECON.B.MSB. More...
 
enum  IfxAsclin_SlavePolarity {
  IfxAsclin_SlavePolarity_idleLow = 0,
  IfxAsclin_SlavePolarity_idlehigh = 1
}
 Defines the idle level of the SLSO signal, which is the level.
Outside the data transmission, leading and trailing time intervals.
Definition in Ifx_ASCLIN.IOCR.B.SPOL. More...
 
enum  IfxAsclin_SleepMode {
  IfxAsclin_SleepMode_enable = 0,
  IfxAsclin_SleepMode_disable = 1
}
 Enable/disable the sensitivity of the module to sleep signal
Definition in Ifx_ASCLIN.CLC.B.EDIS. More...
 
enum  IfxAsclin_Status {
  IfxAsclin_Status_configurationError = 0,
  IfxAsclin_Status_noError = 1
}
 Error status. More...
 
enum  IfxAsclin_StopBit {
  IfxAsclin_StopBit_0,
  IfxAsclin_StopBit_1,
  IfxAsclin_StopBit_2,
  IfxAsclin_StopBit_3,
  IfxAsclin_StopBit_4,
  IfxAsclin_StopBit_5,
  IfxAsclin_StopBit_6,
  IfxAsclin_StopBit_7
}
 ASC and LIN mode: number of stop bits (0 is not allowed), SPI mode: trailing delay.
Definition in Ifx_ASCLIN.FRAMECON.B.STOP. More...
 
enum  IfxAsclin_TxFifoInletWidth {
  IfxAsclin_TxFifoInletWidth_0,
  IfxAsclin_TxFifoInletWidth_1,
  IfxAsclin_TxFifoInletWidth_2,
  IfxAsclin_TxFifoInletWidth_3
}
 Defines the number of bytes written to the Tx FIFO with one FPI bus write
Definition in Ifx_ASCLIN.TXFIFOCON.B.INW. More...
 
enum  IfxAsclin_TxFifoInterruptLevel {
  IfxAsclin_TxFifoInterruptLevel_0,
  IfxAsclin_TxFifoInterruptLevel_1,
  IfxAsclin_TxFifoInterruptLevel_2,
  IfxAsclin_TxFifoInterruptLevel_3,
  IfxAsclin_TxFifoInterruptLevel_4,
  IfxAsclin_TxFifoInterruptLevel_5,
  IfxAsclin_TxFifoInterruptLevel_6,
  IfxAsclin_TxFifoInterruptLevel_7,
  IfxAsclin_TxFifoInterruptLevel_8,
  IfxAsclin_TxFifoInterruptLevel_9,
  IfxAsclin_TxFifoInterruptLevel_10,
  IfxAsclin_TxFifoInterruptLevel_11,
  IfxAsclin_TxFifoInterruptLevel_12,
  IfxAsclin_TxFifoInterruptLevel_13,
  IfxAsclin_TxFifoInterruptLevel_14,
  IfxAsclin_TxFifoInterruptLevel_15
}
 Defines the filling level that triggers a refill (TX) interrupt or DMA access
Definition in Ifx_ASCLIN.TXFIFOCON.B.INTLEVEL. More...
 

Functions

IFX_INLINE void IfxAsclin_clearAllFlags (Ifx_ASCLIN *asclin)
 clears all the flags More...
 
IFX_INLINE void IfxAsclin_clearBreakDetectedFlag (Ifx_ASCLIN *asclin)
 Clears the break detected flag. More...
 
IFX_INLINE void IfxAsclin_clearCollisionDetectionErrorFlag (Ifx_ASCLIN *asclin)
 Clears the collision detection error flag. More...
 
IFX_INLINE void IfxAsclin_clearFallingEdgeDetectedFlag (Ifx_ASCLIN *asclin)
 Clears the falling edge detected flag. More...
 
IFX_INLINE void IfxAsclin_clearFrameErrorFlag (Ifx_ASCLIN *asclin)
 Clears the frame error flag. More...
 
IFX_INLINE void IfxAsclin_clearHeaderTimeoutFlag (Ifx_ASCLIN *asclin)
 Clears the header timeout flag. More...
 
IFX_INLINE void IfxAsclin_clearKernelResetStatus (Ifx_ASCLIN *asclin)
 Clears the kernel reset status. More...
 
IFX_INLINE void IfxAsclin_clearLinAutoBaudDetectionErrorFlag (Ifx_ASCLIN *asclin)
 Clears the auto baudrate detection error flag. More...
 
IFX_INLINE void IfxAsclin_clearLinChecksumErrorFlag (Ifx_ASCLIN *asclin)
 Clears the LIN checksum error flag. More...
 
IFX_INLINE void IfxAsclin_clearLinParityErrorFlag (Ifx_ASCLIN *asclin)
 Clears the LIN parity error flag. More...
 
IFX_INLINE void IfxAsclin_clearParityErrorFlag (Ifx_ASCLIN *asclin)
 Clears the parity error flag. More...
 
IFX_INLINE void IfxAsclin_clearRaisingEdgeDetectedFlag (Ifx_ASCLIN *asclin)
 Clears the raising edge detected flag. More...
 
IFX_INLINE void IfxAsclin_clearResponseTimeoutFlag (Ifx_ASCLIN *asclin)
 Clears the response timeout flag. More...
 
IFX_INLINE void IfxAsclin_clearRxFifoFillLevelFlag (Ifx_ASCLIN *asclin)
 Clears the Rx FIFO level flag. More...
 
IFX_INLINE void IfxAsclin_clearRxFifoOverflowFlag (Ifx_ASCLIN *asclin)
 Clears the Rx FIFO overflow flag. More...
 
IFX_INLINE void IfxAsclin_clearRxFifoUnderflowFlag (Ifx_ASCLIN *asclin)
 Clears the Rx FIFO underflow flag. More...
 
IFX_INLINE void IfxAsclin_clearRxHeaderEndFlag (Ifx_ASCLIN *asclin)
 Clears the receive header end flag. More...
 
IFX_INLINE void IfxAsclin_clearRxResponseEndFlag (Ifx_ASCLIN *asclin)
 Clears the receive response end flag. More...
 
IFX_INLINE void IfxAsclin_clearTransmissionCompletedFlag (Ifx_ASCLIN *asclin)
 Clears the transmission pending flag. More...
 
IFX_INLINE void IfxAsclin_clearTxFifoFillLevelFlag (Ifx_ASCLIN *asclin)
 Clears the Tx FIFO level flag. More...
 
IFX_INLINE void IfxAsclin_clearTxFifoOverflowFlag (Ifx_ASCLIN *asclin)
 Clears the Tx FIFO overflow flag. More...
 
IFX_INLINE void IfxAsclin_clearTxHeaderEndFlag (Ifx_ASCLIN *asclin)
 Clears the transmit header end flag. More...
 
IFX_INLINE void IfxAsclin_clearTxResponseEndFlag (Ifx_ASCLIN *asclin)
 Clears the transmit response end flag. More...
 
IFX_INLINE void IfxAsclin_flushRxFifo (Ifx_ASCLIN *asclin)
 Flushes (empties) the Rx FIFO. More...
 
IFX_INLINE void IfxAsclin_flushTxFifo (Ifx_ASCLIN *asclin)
 Flushes (empties) the Tx FIFO. More...
 
IFX_INLINE void IfxAsclin_setBrdLowerlimt (Ifx_ASCLIN *asclin, uint8 limit)
 Sets the baudrate detection's lower limit. More...
 
IFX_INLINE void IfxAsclin_setBrdUpperlimt (Ifx_ASCLIN *asclin, uint8 limit)
 Sets the baudrate detection's upper limit. More...
 
IFX_INLINE void IfxAsclin_setChecksumInjection (Ifx_ASCLIN *asclin, IfxAsclin_ChecksumInjection csi)
 Sets the checksum injection. More...
 
IFX_INLINE void IfxAsclin_setChecksumMode (Ifx_ASCLIN *asclin, IfxAsclin_Checksum mode)
 Sets the checksum mode. More...
 
IFX_INLINE void IfxAsclin_setDataLength (Ifx_ASCLIN *asclin, IfxAsclin_DataLength length)
 Sets the data length (number of bits per transfer) More...
 
IFX_INLINE void IfxAsclin_setDenominator (Ifx_ASCLIN *asclin, uint16 denominator)
 Sets the denominator of the fractional divider. More...
 
IFX_INLINE void IfxAsclin_setDisableModuleRequest (Ifx_ASCLIN *asclin)
 Sets the disable module request. More...
 
IFX_INLINE void IfxAsclin_setEnableModuleRequest (Ifx_ASCLIN *asclin)
 Sets the enable module request. More...
 
IFX_INLINE void IfxAsclin_setFilterDepth (Ifx_ASCLIN *asclin, uint8 depth)
 Sets digital glitch filter depth. More...
 
IFX_INLINE void IfxAsclin_setHeaderResponseSelect (Ifx_ASCLIN *asclin, IfxAsclin_HeaderResponseSelect type)
 Sets the header response selection. More...
 
IFX_INLINE void IfxAsclin_setIdleDelay (Ifx_ASCLIN *asclin, IfxAsclin_IdleDelay delay)
 Sets the idle delay. More...
 
IFX_INLINE void IfxAsclin_setKernelResetOne (Ifx_ASCLIN *asclin)
 Sets the kernal reset of the KRST1. More...
 
IFX_INLINE void IfxAsclin_setKernelResetZero (Ifx_ASCLIN *asclin)
 Sets the kernel reset of the KRST0. More...
 
IFX_INLINE void IfxAsclin_setLeadDelay (Ifx_ASCLIN *asclin, IfxAsclin_LeadDelay delay)
 Sets the lead delay. More...
 
IFX_INLINE void IfxAsclin_setLinBreakLength (Ifx_ASCLIN *asclin, uint8 length)
 Sets the LIN break length. More...
 
IFX_INLINE void IfxAsclin_setLinHeaderTimeout (Ifx_ASCLIN *asclin, uint8 timeout)
 Sets the LIN header timeout. More...
 
IFX_INLINE void IfxAsclin_setLinMode (Ifx_ASCLIN *asclin, IfxAsclin_LinMode mode)
 Sets the LIN mode of operation. More...
 
IFX_INLINE void IfxAsclin_setLinResponseTimeoutMode (Ifx_ASCLIN *asclin, IfxAsclin_LinResponseTimeoutMode mode)
 Sets the LIN response timeout mode. More...
 
IFX_INLINE void IfxAsclin_setLinResponseTimeoutThreshold (Ifx_ASCLIN *asclin, uint16 threshold)
 Sets the LIN response timeout threshold. More...
 
IFX_INLINE void IfxAsclin_setNumerator (Ifx_ASCLIN *asclin, uint16 numerator)
 Sets the numerator of the fractional divider. More...
 
IFX_INLINE void IfxAsclin_setOversampling (Ifx_ASCLIN *asclin, IfxAsclin_OversamplingFactor ovsFactor)
 Sets the division ratio of the baudrate post divider. More...
 
IFX_INLINE void IfxAsclin_setParityType (Ifx_ASCLIN *asclin, IfxAsclin_ParityType type)
 Sets the parity type. More...
 
IFX_INLINE void IfxAsclin_setPrescaler (Ifx_ASCLIN *asclin, uint16 prescaler)
 Sets the division ratio of the predivider (prescaler) More...
 
IFX_INLINE void IfxAsclin_setRxBufferMode (Ifx_ASCLIN *asclin, IfxAsclin_ReceiveBufferMode mode)
 Sets the receive buffer mode. More...
 
IFX_INLINE void IfxAsclin_setRxFifoInterruptLevel (Ifx_ASCLIN *asclin, IfxAsclin_RxFifoInterruptLevel level)
 Sets the Tx FIFO interrupt level. More...
 
IFX_INLINE void IfxAsclin_setRxFifoOutletWidth (Ifx_ASCLIN *asclin, IfxAsclin_RxFifoOutletWidth width)
 Sets the receive FIFO outlet width. More...
 
IFX_INLINE void IfxAsclin_setSampleMode (Ifx_ASCLIN *asclin, IfxAsclin_SamplesPerBit medianFilter)
 Sets the sample mode (number of samples per bit / median filter) More...
 
IFX_INLINE void IfxAsclin_setSamplePointPosition (Ifx_ASCLIN *asclin, IfxAsclin_SamplePointPosition spPosition)
 Sets the sampling point position. More...
 
IFX_INLINE void IfxAsclin_setShiftDirection (Ifx_ASCLIN *asclin, IfxAsclin_ShiftDirection dir)
 Sets the shift direction. More...
 
IFX_INLINE void IfxAsclin_setStopBit (Ifx_ASCLIN *asclin, IfxAsclin_StopBit stopBit)
 Sets the number of stop bits. More...
 
IFX_INLINE void IfxAsclin_setTransmitHeaderRequestFlag (Ifx_ASCLIN *asclin)
 Sets the transmit header request flag. More...
 
IFX_INLINE void IfxAsclin_setTransmitResponseRequestFlag (Ifx_ASCLIN *asclin)
 Sets the transmit response request flag. More...
 
IFX_INLINE void IfxAsclin_setTransmitWakeRequestFlag (Ifx_ASCLIN *asclin)
 Sets the transmission wake request flag. More...
 
IFX_INLINE void IfxAsclin_setTxFifoInletWidth (Ifx_ASCLIN *asclin, IfxAsclin_TxFifoInletWidth width)
 Sets the transmit FIFO inlet width. More...
 
IFX_INLINE void IfxAsclin_setTxFifoInterruptLevel (Ifx_ASCLIN *asclin, IfxAsclin_TxFifoInterruptLevel level)
 Sets the Tx FIFO interrupt level. More...
 
IFX_INLINE boolean IfxAsclin_getBreakDetectedFlagStatus (Ifx_ASCLIN *asclin)
 Returns the break detected flag status. More...
 
IFX_INLINE uint8 IfxAsclin_getClockSource (Ifx_ASCLIN *asclin)
 Returns the clock source. More...
 
IFX_INLINE boolean IfxAsclin_getClockStatus (Ifx_ASCLIN *asclin)
 Returns the clock status. More...
 
IFX_INLINE boolean IfxAsclin_getCollisionDetectionErrorFlagStatus (Ifx_ASCLIN *asclin)
 Returns the collision detection error flag status. More...
 
IFX_INLINE boolean IfxAsclin_getFallingEdgeDetectedFlagStatus (Ifx_ASCLIN *asclin)
 Returns the falling edge detected flag status. More...
 
IFX_INLINE boolean IfxAsclin_getFrameErrorFlagStatus (Ifx_ASCLIN *asclin)
 Returns the frame error flag status. More...
 
IFX_INLINE boolean IfxAsclin_getHeaderTimeoutFlagStatus (Ifx_ASCLIN *asclin)
 Returns the header timeout flag status. More...
 
IFX_INLINE boolean IfxAsclin_getKernelResetStatus (Ifx_ASCLIN *asclin)
 Returns the kernel reset status. More...
 
IFX_INLINE boolean IfxAsclin_getLinAutoBaudDetectionErrorFlagStatus (Ifx_ASCLIN *asclin)
 Returns the LIN auto baudrate detection error flag status. More...
 
IFX_INLINE boolean IfxAsclin_getLinChecksumErrorFlagStatus (Ifx_ASCLIN *asclin)
 Returns the LIN checksum error flag status. More...
 
IFX_INLINE boolean IfxAsclin_getLinParityErrorFlagStatus (Ifx_ASCLIN *asclin)
 Returns the LIN parity error flag status. More...
 
IFX_INLINE boolean IfxAsclin_getModuleStatus (Ifx_ASCLIN *asclin)
 Returns the module status. More...
 
IFX_INLINE boolean IfxAsclin_getParityErrorFlagStatus (Ifx_ASCLIN *asclin)
 Returns the parity error flag status. More...
 
IFX_INLINE uint16 IfxAsclin_getPrescaler (Ifx_ASCLIN *asclin)
 Returns the division ratio of the predivider (prescaler) More...
 
IFX_INLINE boolean IfxAsclin_getRaisingEdgeDetectedFlagStatus (Ifx_ASCLIN *asclin)
 Returns the raising edge detected flag status. More...
 
IFX_INLINE boolean IfxAsclin_getReceiveSignalStatus (Ifx_ASCLIN *asclin)
 Returns the received signal status. More...
 
IFX_INLINE boolean IfxAsclin_getResponseTimeoutFlagStatus (Ifx_ASCLIN *asclin)
 Returns the response timeout flag status. More...
 
IFX_INLINE uint8 IfxAsclin_getRxFifoFillLevel (Ifx_ASCLIN *asclin)
 Returns the current filling level of Tx FIFO. More...
 
IFX_INLINE boolean IfxAsclin_getRxFifoFillLevelFlagStatus (Ifx_ASCLIN *asclin)
 Returns the Rx FIFO level flag status. More...
 
IFX_INLINE uint8 IfxAsclin_getRxFifoOutletWidth (Ifx_ASCLIN *asclin)
 Returns the receive FIFO inlet width. More...
 
IFX_INLINE boolean IfxAsclin_getRxFifoOverflowFlagStatus (Ifx_ASCLIN *asclin)
 Returns the Rx FIFO overflow flag status. More...
 
IFX_INLINE boolean IfxAsclin_getRxFifoUnderflowFlagStatus (Ifx_ASCLIN *asclin)
 Returns the Rx FIFO underflow flag status. More...
 
IFX_INLINE boolean IfxAsclin_getRxHeaderEndFlagStatus (Ifx_ASCLIN *asclin)
 Returns the receive header end flag status. More...
 
IFX_INLINE boolean IfxAsclin_getRxResponseEndFlagStatus (Ifx_ASCLIN *asclin)
 Returns the receive response end flag status. More...
 
IFX_INLINE boolean IfxAsclin_getTransmissionCompletedFlagStatus (Ifx_ASCLIN *asclin)
 Returns the transmission pending flag status. More...
 
IFX_INLINE boolean IfxAsclin_getTransmitSignalStatus (Ifx_ASCLIN *asclin)
 Returns the transmit signal status. More...
 
IFX_INLINE uint8 IfxAsclin_getTxFifoFillLevel (Ifx_ASCLIN *asclin)
 Returns the current filling level of Tx FIFO. More...
 
IFX_INLINE boolean IfxAsclin_getTxFifoFillLevelFlagStatus (Ifx_ASCLIN *asclin)
 Returns the Tx FIFO level flag status. More...
 
IFX_INLINE uint8 IfxAsclin_getTxFifoInletWidth (Ifx_ASCLIN *asclin)
 Returns the transmit FIFO inlet width. More...
 
IFX_INLINE boolean IfxAsclin_getTxFifoOverflowFlagStatus (Ifx_ASCLIN *asclin)
 Returns the Tx FIFO overflow flag status. More...
 
IFX_INLINE boolean IfxAsclin_getTxHeaderEndFlagStatus (Ifx_ASCLIN *asclin)
 Returns the transmit header end flag status. More...
 
IFX_INLINE boolean IfxAsclin_getTxResponseEndFlagStatus (Ifx_ASCLIN *asclin)
 Returns the transmit response end flag status. More...
 
IFX_INLINE void IfxAsclin_setSleepMode (Ifx_ASCLIN *asclin, IfxAsclin_SleepMode mode)
 Sets the sensitivity of the module to sleep signal. More...
 
IFX_EXTERN float32 IfxAsclin_getFaFrequency (Ifx_ASCLIN *asclin)
 Returns the ASCLIN module FA frequency in Hz. More...
 
IFX_EXTERN float32 IfxAsclin_getOvsFrequency (Ifx_ASCLIN *asclin)
 Returns the OVS frequency. More...
 
IFX_EXTERN float32 IfxAsclin_getPdFrequency (Ifx_ASCLIN *asclin)
 Returns the PD frequency. More...
 
IFX_EXTERN float32 IfxAsclin_getShiftFrequency (Ifx_ASCLIN *asclin)
 Returns the SHIFT frequency. More...
 
IFX_EXTERN void IfxAsclin_resetModule (Ifx_ASCLIN *asclin)
 resets Asclin kernel More...
 
IFX_INLINE void IfxAsclin_disableAllFlags (Ifx_ASCLIN *asclin)
 disables all flags More...
 
IFX_INLINE void IfxAsclin_enableAutoBaudrateDetection (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables the auto baudrate detection. More...
 
IFX_INLINE void IfxAsclin_enableBreakDetectedFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables break detected flag. More...
 
IFX_INLINE void IfxAsclin_enableCollisionDetection (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables the collision detection. More...
 
IFX_INLINE void IfxAsclin_enableCollisionDetectionErrorFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables LIN collision detection error flag. More...
 
IFX_INLINE void IfxAsclin_enableCts (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables CTS. More...
 
IFX_INLINE void IfxAsclin_enableFallingEdgeDetectedFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables falling edge detected flag. More...
 
IFX_INLINE void IfxAsclin_enableFrameErrorFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables frame error flag. More...
 
IFX_INLINE void IfxAsclin_enableHardwareChecksum (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables the hardware checksum. More...
 
IFX_INLINE void IfxAsclin_enableHeaderTimeoutFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables header timeout flag. More...
 
IFX_INLINE void IfxAsclin_enableLinAutoBaudDetectionErrorFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables LIN auto baudrate detection error flag. More...
 
IFX_INLINE void IfxAsclin_enableLinChecksumErrorFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables LIN checksum error flag. More...
 
IFX_INLINE void IfxAsclin_enableLinParityErrorFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables LIN parity error flag. More...
 
IFX_INLINE void IfxAsclin_enableLoopBackMode (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables the loop back mode. More...
 
IFX_INLINE void IfxAsclin_enableParity (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables the parity bit attachment to tha data bits. More...
 
IFX_INLINE void IfxAsclin_enableParityErrorFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables parity error flag. More...
 
IFX_INLINE void IfxAsclin_enableRaisingEdgeDetectedFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables raising edge detected flag. More...
 
IFX_INLINE void IfxAsclin_enableResponseTimeoutFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables response timeout flag. More...
 
IFX_INLINE void IfxAsclin_enableRxFifoFillLevelFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables Rx FIFO level flag. More...
 
IFX_INLINE void IfxAsclin_enableRxFifoInlet (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables the receive FIFO outlet to allow filling of Rx FIFO through shift register. More...
 
IFX_INLINE void IfxAsclin_enableRxFifoOverflowFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables Rx FIFO overflow flag. More...
 
IFX_INLINE void IfxAsclin_enableRxFifoUnderflowFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables Rx FIFO underflow flag. More...
 
IFX_INLINE void IfxAsclin_enableRxHeaderEndFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables receive header end flag. More...
 
IFX_INLINE void IfxAsclin_enableRxResponseEndFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables receive response end flag. More...
 
IFX_INLINE void IfxAsclin_enableTransmissionCompletedFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables transmission completed flag. More...
 
IFX_INLINE void IfxAsclin_enableTxFifoFillLevelFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables Tx FIFO level flag. More...
 
IFX_INLINE void IfxAsclin_enableTxFifoOutlet (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables the transmit FIFO outlet to allow transmission. More...
 
IFX_INLINE void IfxAsclin_enableTxFifoOverflowFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables Tx FIFO overflow flag. More...
 
IFX_INLINE void IfxAsclin_enableTxHeaderEndFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables transmit header end flag. More...
 
IFX_INLINE void IfxAsclin_enableTxResponseEndFlag (Ifx_ASCLIN *asclin, boolean enable)
 Enables/disables transmit response end flag. More...
 
IFX_INLINE void IfxAsclin_setClockPolarity (Ifx_ASCLIN *asclin, IfxAsclin_ClockPolarity cpol)
 Selects the clock polarity. More...
 
IFX_INLINE void IfxAsclin_setCtsInput (Ifx_ASCLIN *asclin, IfxAsclin_CtsInputSelect ctsi)
 Selects the CTS input pin. More...
 
IFX_INLINE void IfxAsclin_setFrameMode (Ifx_ASCLIN *asclin, IfxAsclin_FrameMode mode)
 Selects the module's mode of operation. More...
 
IFX_INLINE void IfxAsclin_setRtsCtsPolarity (Ifx_ASCLIN *asclin, IfxAsclin_RtsCtsPolarity rcpol)
 Selects the RTS/CTS polarity. More...
 
IFX_INLINE void IfxAsclin_setRxInput (Ifx_ASCLIN *asclin, IfxAsclin_RxInputSelect alti)
 Selects the alternate input for Rx signal. More...
 
IFX_INLINE void IfxAsclin_setSlavePolarity (Ifx_ASCLIN *asclin, IfxAsclin_SlavePolarity spol)
 Selects the slave polarity. More...
 
IFX_EXTERN boolean IfxAsclin_setBitTiming (Ifx_ASCLIN *asclin, float32 baudrate, IfxAsclin_OversamplingFactor oversampling, IfxAsclin_SamplePointPosition samplepoint, IfxAsclin_SamplesPerBit medianFilter)
 Set the bit timing. More...
 
IFX_EXTERN void IfxAsclin_enableAscErrorFlags (Ifx_ASCLIN *asclin, boolean parEnable, boolean rfoEnable)
 Enables the ASC error interrupt Flags. More...
 
IFX_EXTERN void IfxAsclin_enableModule (Ifx_ASCLIN *asclin)
 Enables the module. More...
 
IFX_EXTERN sint32 IfxAsclin_getIndex (Ifx_ASCLIN *asclin)
 Returns the module Index. More...
 
IFX_EXTERN volatile Ifx_SRC_SRCR * IfxAsclin_getSrcPointerEr (Ifx_ASCLIN *asclin)
 Returns the SRC pointer for ERR. More...
 
IFX_EXTERN volatile Ifx_SRC_SRCR * IfxAsclin_getSrcPointerRx (Ifx_ASCLIN *asclin)
 Returns the SRC pointer for Rx. More...
 
IFX_EXTERN volatile Ifx_SRC_SRCR * IfxAsclin_getSrcPointerTx (Ifx_ASCLIN *asclin)
 Returns the SRC pointer for Tx. More...
 
IFX_EXTERN uint32 IfxAsclin_read16 (Ifx_ASCLIN *asclin, uint16 *data, uint32 count)
 Reads data up to 16 bits. More...
 
IFX_EXTERN uint32 IfxAsclin_read32 (Ifx_ASCLIN *asclin, uint32 *data, uint32 count)
 Reads data up to 32 bits. More...
 
IFX_EXTERN uint32 IfxAsclin_read8 (Ifx_ASCLIN *asclin, uint8 *data, uint32 count)
 Reads data up to 8 bits. More...
 
IFX_EXTERN void IfxAsclin_setBaudrateBitFields (Ifx_ASCLIN *asclin, uint16 prescaler, uint16 numerator, uint16 denominator, IfxAsclin_OversamplingFactor oversampling)
 Sets the baudrate bit fields. More...
 
IFX_EXTERN void IfxAsclin_setClockSource (Ifx_ASCLIN *asclin, IfxAsclin_ClockSource clockSource)
 Sets the clock source. More...
 
IFX_EXTERN uint32 IfxAsclin_write16 (Ifx_ASCLIN *asclin, uint16 *data, uint32 count)
 Writes data up to 16 bits. More...
 
IFX_EXTERN uint32 IfxAsclin_write32 (Ifx_ASCLIN *asclin, uint32 *data, uint32 count)
 Writes data up to 32 bits. More...
 
IFX_EXTERN uint32 IfxAsclin_write8 (Ifx_ASCLIN *asclin, uint8 *data, uint32 count)
 Writes data up to 8 bits. More...
 
IFX_INLINE void IfxAsclin_initCtsPin (const IfxAsclin_Cts_In *cts, IfxPort_InputMode inputMode)
 Initializes a CTS input. More...
 
IFX_INLINE void IfxAsclin_initRtsPin (const IfxAsclin_Rts_Out *rts, IfxPort_OutputMode outputMode, IfxPort_PadDriver padDriver)
 Initializes a RTS output. More...
 
IFX_INLINE void IfxAsclin_initRxPin (const IfxAsclin_Rx_In *rx, IfxPort_InputMode inputMode)
 Initializes a RX input. More...
 
IFX_INLINE void IfxAsclin_initSclkPin (const IfxAsclin_Sclk_Out *sclk, IfxPort_OutputMode outputMode, IfxPort_PadDriver padDriver)
 Initializes a SCLK output. More...
 
IFX_INLINE void IfxAsclin_initSlsoPin (const IfxAsclin_Slso_Out *slso, IfxPort_OutputMode outputMode, IfxPort_PadDriver padDriver)
 Initializes a SLSO output. More...
 
IFX_INLINE void IfxAsclin_initTxPin (const IfxAsclin_Tx_Out *tx, IfxPort_OutputMode outputMode, IfxPort_PadDriver padDriver)
 Initializes a TX output. More...
 
IFX_INLINE uint32 IfxAsclin_readRxData (Ifx_ASCLIN *asclin)
 
IFX_INLINE void IfxAsclin_writeTxData (Ifx_ASCLIN *asclin, uint32 data)
 

Detailed Description

ASCLIN basic functionality.

Version
iLLD_1_0_0_11_0
                            IMPORTANT NOTICE

Infineon Technologies AG (Infineon) is supplying this file for use exclusively with Infineon's microcontroller products. This file can be freely distributed within development tools that are supporting such microcontroller products.

THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.

Definition in file IfxAsclin.h.

Function Documentation

IFX_INLINE uint32 IfxAsclin_readRxData ( Ifx_ASCLIN *  asclin)
Parameters
asclinpointer to ASCLIN registers
Returns
returns the value of RxDATA register

Definition at line 2097 of file IfxAsclin.h.

Referenced by IfxAsclin_Spi_read().

IFX_INLINE void IfxAsclin_writeTxData ( Ifx_ASCLIN *  asclin,
uint32  data 
)
Parameters
asclinpointer to ASCLIN registers
datadata to be written
Returns
None

Definition at line 2358 of file IfxAsclin.h.

Referenced by IfxAsclin_Spi_write().