![]() |
RoveComm C++ 3.0.0
Welcome to the RoveComm C++ repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of RoveComm C++. The RoveComm C++ project is the RoveComm interface for high level systems and should not be used for microcontrollers.
|
The RoveComm namespace contains all of the functionality for the RoveComm library. This includes the packet structure and the functions for packing and unpacking data. More...
Classes | |
| struct | RoveCommPacket |
| The RoveCommPacket struct is used to store data in a packet format for transmission over a network. This struct is used to store the data ID, data count, data type, and the data itself. The data is stored in a vector of the specified data type. More... | |
| struct | CallbackHandle |
| Identifies one callback registered with a node's On(), so Clear() can remove that callback without touching any other callback for the same data ID. A default-constructed handle is empty and Clear() ignores it. More... | |
| class | RoveCommTCP |
| The RoveCommTCP class is used to send and receive data over a TCP connection. More... | |
| class | RoveCommUDP |
| The RoveCommUDP class is used to send and receive data over a UDP connection. More... | |
Typedefs | |
| template<manifest::ManifestEntry Entry> | |
| using | EntryType = typename manifest::Helpers::RoveCommToCType<Entry.DATA_TYPE>::c_type |
Functions | |
| template<typename T> | |
| std::vector< uint8_t > | PackPacket (const RoveCommPacket< T > &stPacket) |
| Create a RoveCommData structure from a RoveCommPacket structure. | |
| template std::vector< uint8_t > | PackPacket< uint8_t > (const RoveCommPacket< uint8_t > &stPacket) |
| template std::vector< uint8_t > | PackPacket< uint16_t > (const RoveCommPacket< uint16_t > &stPacket) |
| template std::vector< uint8_t > | PackPacket< uint32_t > (const RoveCommPacket< uint32_t > &stPacket) |
| template std::vector< uint8_t > | PackPacket< int8_t > (const RoveCommPacket< int8_t > &stPacket) |
| template std::vector< uint8_t > | PackPacket< int16_t > (const RoveCommPacket< int16_t > &stPacket) |
| template std::vector< uint8_t > | PackPacket< int32_t > (const RoveCommPacket< int32_t > &stPacket) |
| template std::vector< uint8_t > | PackPacket< float > (const RoveCommPacket< float > &stPacket) |
| template std::vector< uint8_t > | PackPacket< double > (const RoveCommPacket< double > &stPacket) |
| template std::vector< uint8_t > | PackPacket< char > (const RoveCommPacket< char > &stPacket) |
| template<typename T> | |
| RoveCommPacket< T > | UnpackData (std::span< const uint8_t > spBytes) |
| Create a RoveCommPacket structure from a RoveCommData structure. | |
| template RoveCommPacket< uint8_t > | UnpackData< uint8_t > (std::span< const uint8_t >) |
| template RoveCommPacket< uint16_t > | UnpackData< uint16_t > (std::span< const uint8_t >) |
| template RoveCommPacket< uint32_t > | UnpackData< uint32_t > (std::span< const uint8_t >) |
| template RoveCommPacket< int8_t > | UnpackData< int8_t > (std::span< const uint8_t >) |
| template RoveCommPacket< int16_t > | UnpackData< int16_t > (std::span< const uint8_t >) |
| template RoveCommPacket< int32_t > | UnpackData< int32_t > (std::span< const uint8_t >) |
| template RoveCommPacket< float > | UnpackData< float > (std::span< const uint8_t >) |
| template RoveCommPacket< double > | UnpackData< double > (std::span< const uint8_t >) |
| template RoveCommPacket< char > | UnpackData< char > (std::span< const uint8_t >) |
| template<manifest::ManifestEntry Entry> | |
| RoveCommPacket< EntryType< Entry > > | CreatePacket () |
| template<manifest::ManifestEntry Entry, manifest::RoveCommType... Args> | |
| RoveCommPacket< EntryType< Entry > > | CreatePacket (Args... args) |
| template<manifest::ManifestEntry Entry> | |
| RoveCommPacket< EntryType< Entry > > | CreatePacket (std::span< const EntryType< Entry > > spData) |
| template<manifest::ManifestEntry Entry> | |
| RoveCommPacket< EntryType< Entry > > | CreatePacket (std::initializer_list< EntryType< Entry > > ilData) |
Variables | |
| const int | ROVECOMM_ETHERNET_UDP_MAX_SUBSCRIBERS = 10 |
| const int | ROVECOMM_PACKET_MAX_DATA_SIZE = 65535 / 3 |
| const int | ROVECOMM_PACKET_HEADER_SIZE = 6 |
| const int | ROVECOMM_VERSION = 3 |
| const int | ROVECOMM_THREAD_MAX_IPS = 120 |
The RoveComm namespace contains all of the functionality for the RoveComm library. This includes the packet structure and the functions for packing and unpacking data.
| using rovecomm::EntryType = typename manifest::Helpers::RoveCommToCType<Entry.DATA_TYPE>::c_type |
| RoveCommPacket< EntryType< Entry > > rovecomm::CreatePacket | ( | ) |

| RoveCommPacket< EntryType< Entry > > rovecomm::CreatePacket | ( | Args... | args | ) |
| RoveCommPacket< EntryType< Entry > > rovecomm::CreatePacket | ( | std::initializer_list< EntryType< Entry > > | ilData | ) |
| RoveCommPacket< EntryType< Entry > > rovecomm::CreatePacket | ( | std::span< const EntryType< Entry > > | spData | ) |
| std::vector< uint8_t > rovecomm::PackPacket | ( | const RoveCommPacket< T > & | stPacket | ) |
Create a RoveCommData structure from a RoveCommPacket structure.
| T | - The type of data that is to be sent or received. This can be any of the types defined in the manifest. |
| stPacket | - The packet to be packed into a RoveCommData structure. |


| template std::vector< uint8_t > rovecomm::PackPacket< char > | ( | const RoveCommPacket< char > & | stPacket | ) |
| template std::vector< uint8_t > rovecomm::PackPacket< double > | ( | const RoveCommPacket< double > & | stPacket | ) |
| template std::vector< uint8_t > rovecomm::PackPacket< float > | ( | const RoveCommPacket< float > & | stPacket | ) |
| template std::vector< uint8_t > rovecomm::PackPacket< int16_t > | ( | const RoveCommPacket< int16_t > & | stPacket | ) |
| template std::vector< uint8_t > rovecomm::PackPacket< int32_t > | ( | const RoveCommPacket< int32_t > & | stPacket | ) |
| template std::vector< uint8_t > rovecomm::PackPacket< int8_t > | ( | const RoveCommPacket< int8_t > & | stPacket | ) |
| template std::vector< uint8_t > rovecomm::PackPacket< uint16_t > | ( | const RoveCommPacket< uint16_t > & | stPacket | ) |
| template std::vector< uint8_t > rovecomm::PackPacket< uint32_t > | ( | const RoveCommPacket< uint32_t > & | stPacket | ) |
| template std::vector< uint8_t > rovecomm::PackPacket< uint8_t > | ( | const RoveCommPacket< uint8_t > & | stPacket | ) |
| RoveCommPacket< T > rovecomm::UnpackData | ( | std::span< const uint8_t > | spBytes | ) |
Create a RoveCommPacket structure from a RoveCommData structure.
| T | - The type of data that is to be sent or received. This can be any of the types defined in the manifest. |
| spBytes | - The data to be unpacked into a RoveCommPacket structure. |


| template RoveCommPacket< char > rovecomm::UnpackData< char > | ( | std::span< const uint8_t > | ) |
| template RoveCommPacket< double > rovecomm::UnpackData< double > | ( | std::span< const uint8_t > | ) |
| template RoveCommPacket< float > rovecomm::UnpackData< float > | ( | std::span< const uint8_t > | ) |

| template RoveCommPacket< int16_t > rovecomm::UnpackData< int16_t > | ( | std::span< const uint8_t > | ) |
| template RoveCommPacket< int32_t > rovecomm::UnpackData< int32_t > | ( | std::span< const uint8_t > | ) |
| template RoveCommPacket< int8_t > rovecomm::UnpackData< int8_t > | ( | std::span< const uint8_t > | ) |
| template RoveCommPacket< uint16_t > rovecomm::UnpackData< uint16_t > | ( | std::span< const uint8_t > | ) |
| template RoveCommPacket< uint32_t > rovecomm::UnpackData< uint32_t > | ( | std::span< const uint8_t > | ) |

| template RoveCommPacket< uint8_t > rovecomm::UnpackData< uint8_t > | ( | std::span< const uint8_t > | ) |
| const int rovecomm::ROVECOMM_ETHERNET_UDP_MAX_SUBSCRIBERS = 10 |
| const int rovecomm::ROVECOMM_PACKET_HEADER_SIZE = 6 |
| const int rovecomm::ROVECOMM_PACKET_MAX_DATA_SIZE = 65535 / 3 |
| const int rovecomm::ROVECOMM_THREAD_MAX_IPS = 120 |
| const int rovecomm::ROVECOMM_VERSION = 3 |