#include <Link.h>
|
size_t | transmit (uint8_t *package, size_t package_size) |
| directly transmit a package on the link. More...
|
|
size_t | receive (uint8_t *buffer, size_t buffer_size) |
| Read data from the receive buffer. More...
|
|
virtual uint32_t | get_speed ()=0 |
| Get speed of link (bits per second) More...
|
|
bool | is_connected () |
| Does the link have an active connection with a client? More...
|
|
|
virtual size_t | _write (uint8_t *data, size_t data_size)=0 |
| write data to the link/bus. More...
|
|
virtual size_t | _read (uint8_t *buffer, size_t buffer_size)=0 |
| Read bytes and out them in the buffer. More...
|
|
Definition at line 12 of file Link.h.
◆ _read()
virtual size_t aruna::comm::Link::_read |
( |
uint8_t * |
buffer, |
|
|
size_t |
buffer_size |
|
) |
| |
|
privatepure virtual |
◆ _write()
virtual size_t aruna::comm::Link::_write |
( |
uint8_t * |
data, |
|
|
size_t |
data_size |
|
) |
| |
|
privatepure virtual |
◆ get_speed()
virtual uint32_t aruna::comm::Link::get_speed |
( |
| ) |
|
|
pure virtual |
Get speed of link (bits per second)
- Returns
- unsigned int speed in Bytes per second.
Implemented in aruna::driver::UART.
◆ is_connected()
bool aruna::comm::Link::is_connected |
( |
| ) |
|
Does the link have an active connection with a client?
- Returns
- true/false
Definition at line 17 of file Link.cpp.
◆ receive()
size_t aruna::comm::Link::receive |
( |
uint8_t * |
buffer, |
|
|
size_t |
buffer_size |
|
) |
| |
Read data from the receive buffer.
- Parameters
-
buffer | write received data to buffer |
buffer_size | amounts of bytes to read |
- Returns
- amount of bytes received.
Definition at line 13 of file Link.cpp.
14 return _read(buffer, buffer_size);
virtual size_t _read(uint8_t *buffer, size_t buffer_size)=0
Read bytes and out them in the buffer.
◆ transmit()
size_t aruna::comm::Link::transmit |
( |
uint8_t * |
package, |
|
|
size_t |
package_size |
|
) |
| |
directly transmit a package on the link.
- Parameters
-
package | package to be send |
package_size | size of the package |
- Returns
Definition at line 9 of file Link.cpp.
10 return _write(package, package_size);
virtual size_t _write(uint8_t *data, size_t data_size)=0
write data to the link/bus.
◆ startup_error
The documentation for this class was generated from the following files: