#include <VWI.hh>
Internal Virtual Wire Transmitter.
Definition at line 336 of file VWI.hh.
Construct VWI Transmitter instance connected to the given pin. Use given codec for encoding data.
- Parameters
-
[in] | pin | transmitter input pin. |
[in] | codec | for transmitter. |
Definition at line 344 of file VWI.hh.
void VWI::Transmitter::begin |
( |
| ) |
|
|
inline |
Start transmitter.
Definition at line 354 of file VWI.hh.
void VWI::Transmitter::end |
( |
| ) |
|
|
inline |
Stop transmitter.
Definition at line 366 of file VWI.hh.
bool VWI::Transmitter::is_active |
( |
| ) |
const |
|
inline |
Returns the state of the transmitter.
- Returns
- true if the transmitter is active else false
Definition at line 376 of file VWI.hh.
int VWI::Transmitter::send |
( |
uint8_t |
dest, |
|
|
uint8_t |
port, |
|
|
const iovec_t * |
vec |
|
) |
| |
Send message using a null terminated io vector message. Returns almost immediately, and message will be sent at the right timing by interrupts. Message is gathered from elements in io vector. The total size of the io vector buffers must be less than PAYLOAD_MAX. Returns number of bytes transmitted or negative error code; EINVAL if the vector is NULL, EMSGSIZE if the total io vector size is larger that max payload,
- Parameters
-
[in] | dest | destination network address. |
[in] | port | device port (or message type). |
[in] | vec | null terminated io vector. |
- Returns
- number of bytes transmitted or negative error code.
Definition at line 27 of file VWI_Transmitter.cpp.
int VWI::Transmitter::send |
( |
uint8_t |
dest, |
|
|
uint8_t |
port, |
|
|
const void * |
buf, |
|
|
size_t |
len |
|
) |
| |
Send a message with the given length. Returns almost immediately, and message will be sent at the right timing by interrupts. A command may be given in enhanced mode with addressing to allow identification of the message type. The message length (len) must be less than PAYLOAD_MAX.
- Parameters
-
[in] | dest | destination network address. |
[in] | port | device port (or message type). |
[in] | buf | pointer to the data to transmit. |
[in] | len | number of bytes to transmit. |
- Returns
- number of bytes transmitted or negative error code.
Definition at line 92 of file VWI_Transmitter.cpp.
Allow access of codec.
Definition at line 439 of file VWI.hh.
void TIMER1_COMPA_vect |
( |
void |
| ) |
|
|
friend |
The documentation for this class was generated from the following files: