#include <ouart.h>
Inheritance diagram for oUART:

Public Member Functions | |
| void | init (IOLINE channel, UART_MODE mode, int dsize, PARITY_TYPE parity, int BAUD_RATE) |
| Init specifying channel on TPU port, mode of transmission, parity, and baud rate. | |
| void | priority (PRIORITY p) |
| Sets TPU priority. Ref TPU Channel Utilization) PRIORITY: Priority of channel. | |
| bool | havebyte () |
| Returns true if a byte was received; bool: Return true if data in internal buffer; otherwise false. | |
| word | inbyte (void) |
| returns the last unreturned data word | |
| void | outbyte (word txbyte) |
| puts character out. | |
| int | sendingbyte (void) |
| Whether module is still sending a byte or not. | |
| int | send (const char *const buf, int nbytes) |
| Write a string of characters. | |
| void | buffer (volatile word *inbuffer, uint16 ilen) |
| Provide a working buffer for the UART channel. | |
| bool | active (uint8 r=FALSE) |
| Used to determine stale information. | |
| void | dump (void) |
| Reset receiving counter after syncronizing messages. | |
| uint16 | byte_count (void) |
| Returns number of bytes in signal buffer. | |
| void | baud_rate (int dsize, PARITY_TYPE parity, int BAUD_RATE) |
| Allows reconfiguring of baud rate...basically reinitiales the channel. | |
Static Public Member Functions | |
| int | TCR1 (void) |
| void | TMCR (int iarb) |
| bool | HSQR (int chan, int val) |
| Configures the host sequence register. | |
| bool | HSRR (int chan, int val) |
| Configures the host sequence request register. | |
| bool | CPR (int chan, int val) |
| Configures the channel priority register (Ref. TPU Channel Utilization). | |
| bool | CIER (int chan, int cie) |
| Configures the channel interrupt enable register. | |
| int | CISR (int chan) |
| Returns the channel interrupt status register. | |
| void | CISR_clear (int chan) |
| Clears the channel interrupt status register for the channel. | |
| bool | TICR (int cirl, int cibv) |
| Configures the TPU interrupt configuration register. | |
| int | tpu_vector (IOLINE channel) |
| Given a channel, returns the vector number to use for an interrupt. | |
Implements single channel receiver or transmitter. If you need both, then simply declare a seperate receiver and trasmitter. Usually will be attached to same device, but the UART function doesn't care one way or the other. Modified for 16 channels of UART.
|
||||||||||||
|
Configures the channel interrupt enable register.
|
|
||||||||||||
|
Configures the channel priority register (Ref. TPU Channel Utilization).
|
|
|
Returns true if a byte was received;
|
|
||||||||||||
|
Configures the host sequence register.
|
|
||||||||||||
|
Configures the host sequence request register.
|
|
|
misnomer--should be TCR1 divisor--return number of clocks (PSCK,TCR1P modifications) Globally available object. Can be used in combination with TPU_REGISTER definition to say TPU_REGISTER->CFSR.BITS... |
|
|
was tpu_init Configures the channel function select register |
1.3