class
#include <pros/link.hpp>
Link
Base classes
- class Device
Constructors, destructors, conversion operators
- Link(const std::uint8_t port, const std::string link_id, link_type_e_t type, bool ov = true) explicit
- Initializes a link on a radio port, with an indicated type.
Public functions
- bool connected()
- Checks if a radio link on a port is active or not.
- std::uint32_t raw_receivable_size()
- Returns the bytes of data number of without protocol available to be read.
- std::uint32_t transmit_raw(void* data, std::uint16_t data_size)
- Returns the bytes of data available in transmission buffer.
- std::uint32_t receive_raw(void* dest, std::uint16_t data_size)
- Receive raw serial data through vexlink.
- std::uint32_t transmit(void* data, std::uint16_t data_size)
- Send packeted message through vexlink, with a checksum and start byte.
- std::uint32_t receive(void* dest, std::uint16_t data_size)
- Receive packeted message through vexlink, with a checksum and start byte.
- std::uint32_t clear_receive_buf()
- Clear the receive buffer of the link, and discarding the data.