#include <oeb500.h>
Inheritance diagram for oEB500:

Public Member Functions | |
| oEB500 (IOLINE imode, PORT ip, IOLINE iconnect, PORT pconnect) | |
| Constructor for eb500 Bluetooth module. | |
| void | send_command (const char *const icommand, bool cr) |
| transmits an ASCII eb500 command. | |
| void | mode (EB500_MODE) |
| Switches to COMMAND_MODE or DATA_MODE when using a dedicated channel for the mode. | |
| void | receive_ack (void) |
| will wait for a '>' character from eb500 module. | |
| bool | connected (void) |
| returns whether eb500 has a bluetooth connection using the dedicated channel. | |
| 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. | |
|
||||||||||||||||||||
|
Constructor for eb500 Bluetooth module.
|
|
||||||||||||
|
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.
|
|
||||||||||||
|
transmits an ASCII eb500 command.
|
|
|
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