iLLD_TC29x
1.0
|
The standard interafce data pipe (DPipe) abstract the hardware used for data transfer. It provide, after proper initialization an hardware independant way to write and read data to/from as communciation channel.
The following files are already ported: Ifx_Console, Ifx_Shell
IFX_INLINE boolean IfxStdIf_DPipe_canReadCount | ( | IfxStdIf_DPipe * | stdif, |
Ifx_SizeT | count, | ||
Ifx_TickTime | timeout | ||
) |
Indicates if the required number of bytes are available for read in the buffer.
driver | Pointer to the interface driver object |
count | Pointer to the count of data (in bytes). |
timeout | in system timer ticks |
Definition at line 274 of file IfxStdIf_DPipe.h.
IFX_INLINE boolean IfxStdIf_DPipe_canWriteCount | ( | IfxStdIf_DPipe * | stdif, |
Ifx_SizeT | count, | ||
Ifx_TickTime | timeout | ||
) |
Indicates if there is enough free space to write the data in the buffer.
driver | Pointer to the interface driver object |
count | Pointer to the count of data (in bytes). |
timeout | in system timer ticks |
Definition at line 282 of file IfxStdIf_DPipe.h.
IFX_INLINE void IfxStdIf_DPipe_clearRx | ( | IfxStdIf_DPipe * | stdif) |
Clears the RX buffer by removing all data.
driver | Pointer to the interface driver object |
Definition at line 322 of file IfxStdIf_DPipe.h.
Referenced by Ifx_Shell_enable().
IFX_INLINE void IfxStdIf_DPipe_clearTx | ( | IfxStdIf_DPipe * | stdif) |
Clears the TX buffer by removing all data.
driver | Pointer to the interface driver object |
Definition at line 314 of file IfxStdIf_DPipe.h.
IFX_INLINE boolean IfxStdIf_DPipe_flushTx | ( | IfxStdIf_DPipe * | stdif, |
Ifx_TickTime | timeout | ||
) |
Flush the transmit buffer by transmitting all data.
driver | Pointer to the interface driver object |
timeout | timeout for the flush operation |
Definition at line 306 of file IfxStdIf_DPipe.h.
IFX_INLINE sint32 IfxStdIf_DPipe_getReadCount | ( | IfxStdIf_DPipe * | stdif) |
Returns the number of bytes in the rx buffer.
driver | Pointer to the interface driver object |
Definition at line 258 of file IfxStdIf_DPipe.h.
IFX_INLINE IfxStdIf_DPipe_ReadEvent IfxStdIf_DPipe_getReadEvent | ( | IfxStdIf_DPipe * | stdif) |
Returns read event object.
driver | Pointer to the interface driver object |
Definition at line 290 of file IfxStdIf_DPipe.h.
IFX_INLINE uint32 IfxStdIf_DPipe_getSendCount | ( | IfxStdIf_DPipe * | stdif) |
Returns number of bytes send.
driver | Pointer to the interface driver object |
Definition at line 354 of file IfxStdIf_DPipe.h.
IFX_INLINE Ifx_TickTime IfxStdIf_DPipe_getTxTimeStamp | ( | IfxStdIf_DPipe * | stdif) |
Returns the time stamp of the last transmit data.
driver | Pointer to the interface driver object |
Definition at line 362 of file IfxStdIf_DPipe.h.
IFX_INLINE sint32 IfxStdIf_DPipe_getWriteCount | ( | IfxStdIf_DPipe * | stdif) |
Returns the number of free bytes (free space) in the tx buffer.
driver | Pointer to the interface driver object |
Definition at line 266 of file IfxStdIf_DPipe.h.
IFX_INLINE IfxStdIf_DPipe_WriteEvent IfxStdIf_DPipe_getWriteEvent | ( | IfxStdIf_DPipe * | stdif) |
Returns write event object.
driver | Pointer to the interface driver object |
Definition at line 298 of file IfxStdIf_DPipe.h.
IFX_INLINE void IfxStdIf_DPipe_onError | ( | IfxStdIf_DPipe * | stdif) |
handler called on error event
driver | Pointer to the interface driver object |
Definition at line 346 of file IfxStdIf_DPipe.h.
IFX_INLINE void IfxStdIf_DPipe_onReceive | ( | IfxStdIf_DPipe * | stdif) |
handler called on reveive event
driver | Pointer to the interface driver object |
Definition at line 330 of file IfxStdIf_DPipe.h.
IFX_INLINE void IfxStdIf_DPipe_onTransmit | ( | IfxStdIf_DPipe * | stdif) |
handler called on transmit event
driver | Pointer to the interface driver object |
Definition at line 338 of file IfxStdIf_DPipe.h.
IFX_EXTERN void IfxStdIf_DPipe_print | ( | IfxStdIf_DPipe * | stdif, |
pchar | format, | ||
... | |||
) |
Definition at line 33 of file IfxStdIf_DPipe.c.
Referenced by Ifx_Assert_doLevel(), Ifx_Assert_doValidate(), Ifx_Shell_bbProtocolStart(), Ifx_Shell_cmdEscapeProcess(), Ifx_Shell_execute(), Ifx_Shell_init(), Ifx_Shell_printSyntax(), Ifx_Shell_process(), Ifx_Shell_protocolStart(), and Ifx_Shell_showHelpSingle().
IFX_INLINE boolean IfxStdIf_DPipe_read | ( | IfxStdIf_DPipe * | stdif, |
void * | data, | ||
Ifx_SizeT * | count, | ||
Ifx_TickTime | timeout | ||
) |
Read data from the IfxStdIf_DPipe object.
Initially the parameter 'count' specifies count of data to read. After execution the data pointed by 'count' specifies the data actually read.
driver | Pointer to the interface driver object |
data | Pointer to the start of data |
count | Pointer to the count of data (in bytes). |
timeout | in system timer ticks |
TRUE | Returns TRUE if all items could be read |
FALSE | Returns FALSE if not all the items could be read |
Definition at line 250 of file IfxStdIf_DPipe.h.
Referenced by Ifx_Shell_process().
IFX_INLINE void IfxStdIf_DPipe_resetSendCount | ( | IfxStdIf_DPipe * | stdif) |
Reset the sendCount counter.
driver | Pointer to the interface driver object |
Definition at line 370 of file IfxStdIf_DPipe.h.
IFX_INLINE boolean IfxStdIf_DPipe_write | ( | IfxStdIf_DPipe * | stdif, |
void * | data, | ||
Ifx_SizeT * | count, | ||
Ifx_TickTime | timeout | ||
) |
Write binary data into the IfxStdIf_DPipe.
Initially the parameter 'count' specifies count of data to write. After execution the data pointed by 'count' specifies the data actually written
driver | Pointer to the interface driver object |
data | Pointer to the start of data |
count | Pointer to the count of data (in bytes). |
timeout | in system timer ticks |
TRUE | Returns TRUE if all items could be written |
FALSE | Returns FALSE if not all the items could be written |
Definition at line 242 of file IfxStdIf_DPipe.h.
Referenced by Ifx_Console_print(), Ifx_Console_printAlign(), and IfxStdIf_DPipe_print().