#include <Commander-IO.hpp>
|
int | available () override |
| Available bytes in the channel. More...
|
|
int | read () override |
| Read one byte form the channel. More...
|
|
int | peek () override |
| Peek the firtst byte from the channel. More...
|
|
void | flush () override |
| Flush the channel. More...
|
|
size_t | write (uint8_t b) override |
| Write one byte to the channel. More...
|
|
size_t | write (const uint8_t *buffer, size_t size) override |
|
Definition at line 60 of file Commander-IO.hpp.
◆ available()
int commanderPipeChannel::available |
( |
| ) |
|
|
override |
Available bytes in the channel.
- Returns
- The available bytes in the channel.
Definition at line 38 of file Commander-IO.cpp.
◆ flush()
void commanderPipeChannel::flush |
( |
| ) |
|
|
override |
◆ peek()
int commanderPipeChannel::peek |
( |
| ) |
|
|
override |
Peek the firtst byte from the channel.
- Returns
- Read and return one byte form the channel. The byte will NOT be removed from the channel.
Definition at line 76 of file Commander-IO.cpp.
◆ read()
int commanderPipeChannel::read |
( |
| ) |
|
|
override |
Read one byte form the channel.
- Returns
- Read and return one byte form the channel. The byte will be removed from the channel.
Definition at line 48 of file Commander-IO.cpp.
◆ write() [1/2]
size_t commanderPipeChannel::write |
( |
const uint8_t * |
buffer, |
|
|
size_t |
size |
|
) |
| |
|
override |
◆ write() [2/2]
size_t commanderPipeChannel::write |
( |
uint8_t |
b | ) |
|
|
override |
Write one byte to the channel.
- Parameters
-
b | The value that has to be written to the channel. |
- Returns
- The number of bytes that has been successfully written to the channel. Because it is the base class, it returns 0.
Definition at line 86 of file Commander-IO.cpp.
◆ commanderPipeChannelUT
friend class commanderPipeChannelUT |
|
friend |
◆ buffer
◆ readPointer
uint32_t commanderPipeChannel::readPointer = 0 |
|
private |
◆ writePointer
uint32_t commanderPipeChannel::writePointer = 0 |
|
private |