Collaboration diagram for UART:
![]() |
Functions | |
int | SciH8Init (NUTDEVICE *dev) |
Initialize on chip uart device. | |
int | SciH8IOCtl (NUTDEVICE *dev, int req, void *conf) |
Perform on-chip UART control functions. | |
int | SciH8Input (NUTDEVICE *dev) |
Wait for input. | |
int | SciH8Output (NUTDEVICE *dev) |
Initiate output. | |
int | SciH8Flush (NUTDEVICE *dev) |
Wait for output buffer empty. | |
int | SciH8GetRaw (u_char *cp) |
int | SciH8PutRaw (u_char ch) |
int | SciH8Read (NUTFILE *fp, void *buffer, int size) |
Read from device. | |
int | SciH8Write (NUTFILE *fp, CONST void *buffer, int len) |
NUTFILE * | SciH8Open (NUTDEVICE *dev, CONST char *name, int mode, int acc) |
Open a device or file. | |
int | SciH8Close (NUTFILE *fp) |
Close a device or file. | |
Variables | |
__END_DECLS NUTDEVICE | devSci0 |
SCI0 Device information structure. | |
NUTDEVICE | devSci1 |
SCI1 Device information structure. | |
NUTDEVICE | devSci2 |
SCI2 Device information structure. |
|
Initialize on chip uart device. Prepares the device for subsequent reading or writing. Enables SCI transmitter and receiver interrupts.
|
|
Perform on-chip UART control functions.
|
|
Wait for input. This function checks the input buffer for any data. If the buffer is empty, the calling thread will be blocked until at least one new character is received or a timeout occurs.
|
|
Initiate output. This function checks the output buffer for any data. If the buffer contains at least one character, the transmitter is started, if not already running. The function returns immediately, without waiting for the character being completely transmitted. Any remaining characters in the output buffer are transmitted in the background.
|
|
Wait for output buffer empty. If the output buffer contains any data, the calling thread is suspended until all data has been transmitted.
|
|
Initial value: { 0, { 's', 'c', 'i', '0', 0, 0, 0, 0, 0}, IFTYP_STREAM, 0, 0, &ifs_sci0, &dcb_sci0, SciH8Init, SciH8IOCtl, SciH8Read, SciH8Write, SciH8Open, SciH8Close, 0}
|
|
Initial value: { 0, {'s', 'c', 'i', '1', 0, 0, 0, 0, 0}, IFTYP_STREAM, 1, 0, &ifs_sci1, &dcb_sci1, SciH8Init, SciH8IOCtl, SciH8Read, SciH8Write, SciH8Open, SciH8Close, 0 }
|
|
Initial value: { 0, {'s', 'c', 'i', '2', 0, 0, 0, 0, 0}, IFTYP_STREAM, 2, 0, &ifs_sci2, &dcb_sci2, SciH8Init, SciH8IOCtl, SciH8Read, SciH8Write, SciH8Open, SciH8Close, 0 }
|