iLLD_TC27xD
1.0
|
Data Structures | |
struct | IfxAsclin_Asc_BaudRate |
Structure for baudrate. More... | |
struct | IfxAsclin_Asc_BitTimingControl |
Structure for bit timings. More... | |
struct | IfxAsclin_Asc_FifoControl |
Structure for FIFO control. More... | |
struct | IfxAsclin_Asc_FrameControl |
Structure for frame control. More... | |
struct | IfxAsclin_Asc_InterruptConfig |
Structure for interrupt configuration. More... | |
struct | IfxAsclin_Asc_Pins |
Structure for ASC pin configuration. More... | |
struct | IfxAsclin_Asc |
Module Handle. More... | |
struct | IfxAsclin_Asc_Config |
Configuration structure of the module. More... | |
struct IfxAsclin_Asc_BaudRate |
Structure for baudrate.
Definition at line 245 of file IfxAsclin_Asc.h.
Data Fields | ||
---|---|---|
float32 | baudrate | value of the required baudrate |
IfxAsclin_OversamplingFactor | oversampling | BITCON.OVERSAMPLING, division ratio of the baudrate post devider. |
uint16 | prescaler | BITCON.PRESCALER, the division ratio of the predevider. |
struct IfxAsclin_Asc_BitTimingControl |
Structure for bit timings.
Definition at line 254 of file IfxAsclin_Asc.h.
Data Fields | ||
---|---|---|
IfxAsclin_SamplesPerBit | medianFilter | BITCON.SM, number of samples per bit (1 or 3), sample mode/median filter. |
IfxAsclin_SamplePointPosition | samplePointPosition | BITCON.SAMPLEPOINT, sample point position. |
struct IfxAsclin_Asc_FifoControl |
Structure for FIFO control.
Definition at line 262 of file IfxAsclin_Asc.h.
Data Fields | ||
---|---|---|
IfxAsclin_ReceiveBufferMode | buffMode | RXFIFOCON.BUFF, receive buffer mode (Rx FIFO or Rx buffer) |
IfxAsclin_TxFifoInletWidth | inWidth | TXFIFOCON.INW, transmit FIFO inlet width. |
IfxAsclin_RxFifoOutletWidth | outWidth | RXFIFOCON.OTW, receive FIFO oulet width. |
IfxAsclin_RxFifoInterruptLevel | rxFifoInterruptLevel | RXFIFOCON.INTLEVEL, Rx FIFO interrupt level. |
IfxAsclin_TxFifoInterruptLevel | txFifoInterruptLevel | TXFIFOCON.INTLEVEL, Tx FIFO interrupt level. |
struct IfxAsclin_Asc_FrameControl |
Structure for frame control.
Definition at line 273 of file IfxAsclin_Asc.h.
Data Fields | ||
---|---|---|
IfxAsclin_DataLength | dataLength | DATCON.DATALENGTH, data length, number of bits per transfer. |
IfxAsclin_FrameMode | frameMode | FRAMECON.MODE, mode of operation of the module. |
IfxAsclin_IdleDelay | idleDelay | FRAMECON.IDLE, idle delay. |
boolean | parityBit | FRAMECON.PEN, parity enable. |
IfxAsclin_ParityType | parityType | FRAMECON.ODD, parity type (even or odd) |
IfxAsclin_ShiftDirection | shiftDir | FRAMECON.MSB, shift direction. |
IfxAsclin_StopBit | stopBit | FRAMECON.STOP, number of stop bits. |
struct IfxAsclin_Asc_InterruptConfig |
Structure for interrupt configuration.
Definition at line 286 of file IfxAsclin_Asc.h.
Data Fields | ||
---|---|---|
uint16 | erPriority | error interrupt priority |
uint16 | rxPriority | receive interrupt priority |
uint16 | txPriority | transmit interrupt priority |
IfxSrc_Tos | typeOfService | type of interrupt service |
struct IfxAsclin_Asc_Pins |
Structure for ASC pin configuration.
Definition at line 296 of file IfxAsclin_Asc.h.
Data Fields | ||
---|---|---|
const IfxAsclin_Cts_In * | cts | ASC clear to send (CTS) pin. |
IfxPort_InputMode | ctsMode | Cts pin as input. |
IfxPort_PadDriver | pinDriver | pad driver |
const IfxAsclin_Rts_Out * | rts | ASC (request to send) RTS pin. |
IfxPort_OutputMode | rtsMode | Rts as output. |
const IfxAsclin_Rx_In * | rx | ASC Rx pin. |
IfxPort_InputMode | rxMode | Rx pin as input. |
const IfxAsclin_Tx_Out * | tx | ASC Tx pin. |
IfxPort_OutputMode | txMode | Tx as output. |
struct IfxAsclin_Asc |
Module Handle.
Definition at line 323 of file IfxAsclin_Asc.h.
Data Fields | ||
---|---|---|
Ifx_ASCLIN * | asclin | pointer to ASCLIN registers |
Ifx_DataBufferMode | dataBufferMode | Rx buffer mode. |
IfxAsclin_Asc_ErrorFlagsUnion | errorFlags | error reported by ASCLIN during runtime (written by IfxAsclin_Asc_isrError) |
Ifx_Fifo * | rx | Receive FIFO buffer. |
volatile boolean | rxSwFifoOverflow | Will be set by IfxAsclin_Asc_isrReceive if the SW Fifo overflowed. |
volatile uint32 | sendCount | Number of byte that are send out, this value is reset with the function Asc_If_resetSendCount() |
Ifx_Fifo * | tx | Transmit FIFO buffer. |
volatile boolean | txInProgress | Ongoing transfer. Will be set by IfxAsclin_Asc_initiateTransmission, and cleared by IfxAsclin_Asc_isrTransmit. |
volatile Ifx_TickTime | txTimestamp | Time stamp of the latest send byte. |
struct IfxAsclin_Asc_Config |
Configuration structure of the module.
Definition at line 338 of file IfxAsclin_Asc.h.
Data Fields | ||
---|---|---|
Ifx_ASCLIN * | asclin | pointer to ASCLIN registers |
IfxAsclin_Asc_BaudRate | baudrate | structure for baudrate |
IfxAsclin_Asc_BitTimingControl | bitTiming | structure for bit timings |
IfxAsclin_ClockSource | clockSource | CSR.CLKSEL, clock source selection. |
Ifx_DataBufferMode | dataBufferMode | Rx buffer mode. |
IfxAsclin_Asc_ErrorFlagsUnion | errorFlags | structure for error flags |
IfxAsclin_Asc_FifoControl | fifo | structure for FIFO control |
IfxAsclin_Asc_FrameControl | frame | structure for frame control |
IfxAsclin_Asc_InterruptConfig | interrupt | structure for interrupt configuration |
boolean | loopBack | IOCR.LB, loop back mode selection, 0 for disable, 1 for enable. |
const IfxAsclin_Asc_Pins * | pins | structure for ASC pins |
void * | rxBuffer |
The buffer parameter must point on a free memory location where the buffer object will be Initialised. The Size of this area must be at least equals to "rxBufferSize + sizeof(Ifx_Fifo) + 8". Not tacking this in account may result in unpredictable behavior. If set to NULL, the buffer will be allocated dynamically according to rxBufferSize |
Ifx_SizeT | rxBufferSize | Size of the rx buffer. |
void * | txBuffer |
The buffer parameter must point on a free memory location where the buffer object will be Initialised. The Size of this area must be at least equals to "txBufferSize + sizeof(Ifx_Fifo) + 8". Not tacking this in account may result in unpredictable behavior. If set to NULL_PTR, the buffer will be allocated dynamically according to txBufferSize |
Ifx_SizeT | txBufferSize | Size of the tx buffer. |