#include <udp_board.h>
|
uint16_t | serial_bytes_available (void) override |
|
void | serial_flush () override |
|
void | serial_init (uint32_t baud_rate, uint32_t dev) override |
|
uint8_t | serial_read (void) override |
|
void | serial_write (const uint8_t *src, size_t len) override |
|
void | set_ports (std::string bind_host, uint16_t bind_port, std::string remote_host, uint16_t remote_port) |
|
| UDPBoard (std::string bind_host="localhost", uint16_t bind_port=14525, std::string remote_host="localhost", uint16_t remote_port=14520) |
|
| ~UDPBoard () |
|
virtual bool | baro_present ()=0 |
|
virtual void | baro_read (float *pressure, float *temperature)=0 |
|
virtual void | baro_update ()=0 |
|
virtual void | board_reset (bool bootloader)=0 |
|
virtual void | clock_delay (uint32_t milliseconds)=0 |
|
virtual uint64_t | clock_micros ()=0 |
|
virtual uint32_t | clock_millis ()=0 |
|
virtual bool | diff_pressure_present ()=0 |
|
virtual void | diff_pressure_read (float *diff_pressure, float *temperature)=0 |
|
virtual void | diff_pressure_update ()=0 |
|
virtual BackupData | get_backup_data ()=0 |
|
virtual bool | gnss_has_new_data ()=0 |
|
virtual bool | gnss_present ()=0 |
|
virtual GNSSRaw | gnss_raw_read ()=0 |
|
virtual GNSSData | gnss_read ()=0 |
|
virtual void | gnss_update ()=0 |
|
virtual bool | has_backup_data ()=0 |
|
virtual void | imu_not_responding_error ()=0 |
|
virtual bool | imu_read (float accel[3], float *temperature, float gyro[3], uint64_t *time)=0 |
|
virtual void | init_board ()=0 |
|
virtual void | led0_off ()=0 |
|
virtual void | led0_on ()=0 |
|
virtual void | led0_toggle ()=0 |
|
virtual void | led1_off ()=0 |
|
virtual void | led1_on ()=0 |
|
virtual void | led1_toggle ()=0 |
|
virtual bool | mag_present ()=0 |
|
virtual void | mag_read (float mag[3])=0 |
|
virtual void | mag_update ()=0 |
|
virtual void | memory_init ()=0 |
|
virtual bool | memory_read (void *dest, size_t len)=0 |
|
virtual bool | memory_write (const void *src, size_t len)=0 |
|
virtual bool | new_imu_data ()=0 |
|
virtual uint16_t | num_sensor_errors ()=0 |
|
virtual void | pwm_disable ()=0 |
|
virtual void | pwm_init (uint32_t refresh_rate, uint16_t idle_pwm)=0 |
|
virtual void | pwm_write (uint8_t channel, float value)=0 |
|
virtual void | rc_init (rc_type_t rc_type)=0 |
|
virtual bool | rc_lost ()=0 |
|
virtual float | rc_read (uint8_t channel)=0 |
|
virtual void | sensors_init ()=0 |
|
virtual bool | sonar_present ()=0 |
|
virtual float | sonar_read ()=0 |
|
virtual void | sonar_update ()=0 |
|
|
typedef boost::lock_guard< boost::recursive_mutex > | MutexLock |
|
Definition at line 52 of file udp_board.h.
rosflight_firmware::UDPBoard::UDPBoard |
( |
std::string |
bind_host = "localhost" , |
|
|
uint16_t |
bind_port = 14525 , |
|
|
std::string |
remote_host = "localhost" , |
|
|
uint16_t |
remote_port = 14520 |
|
) |
| |
rosflight_firmware::UDPBoard::~UDPBoard |
( |
| ) |
|
void rosflight_firmware::UDPBoard::async_read |
( |
| ) |
|
|
private |
void rosflight_firmware::UDPBoard::async_read_end |
( |
const boost::system::error_code & |
error, |
|
|
size_t |
bytes_transferred |
|
) |
| |
|
private |
void rosflight_firmware::UDPBoard::async_write |
( |
bool |
check_write_state | ) |
|
|
private |
void rosflight_firmware::UDPBoard::async_write_end |
( |
const boost::system::error_code & |
error, |
|
|
size_t |
bytes_transferred |
|
) |
| |
|
private |
uint16_t rosflight_firmware::UDPBoard::serial_bytes_available |
( |
void |
| ) |
|
|
overridevirtual |
void rosflight_firmware::UDPBoard::serial_flush |
( |
| ) |
|
|
inlineoverridevirtual |
void rosflight_firmware::UDPBoard::serial_init |
( |
uint32_t |
baud_rate, |
|
|
uint32_t |
dev |
|
) |
| |
|
overridevirtual |
uint8_t rosflight_firmware::UDPBoard::serial_read |
( |
void |
| ) |
|
|
overridevirtual |
void rosflight_firmware::UDPBoard::serial_write |
( |
const uint8_t * |
src, |
|
|
size_t |
len |
|
) |
| |
|
overridevirtual |
void rosflight_firmware::UDPBoard::set_ports |
( |
std::string |
bind_host, |
|
|
uint16_t |
bind_port, |
|
|
std::string |
remote_host, |
|
|
uint16_t |
remote_port |
|
) |
| |
boost::asio::ip::udp::endpoint rosflight_firmware::UDPBoard::bind_endpoint_ |
|
private |
std::string rosflight_firmware::UDPBoard::bind_host_ |
|
private |
uint16_t rosflight_firmware::UDPBoard::bind_port_ |
|
private |
boost::asio::io_service rosflight_firmware::UDPBoard::io_service_ |
|
private |
boost::thread rosflight_firmware::UDPBoard::io_thread_ |
|
private |
boost::recursive_mutex rosflight_firmware::UDPBoard::read_mutex_ |
|
private |
std::list<Buffer*> rosflight_firmware::UDPBoard::read_queue_ |
|
private |
boost::asio::ip::udp::endpoint rosflight_firmware::UDPBoard::remote_endpoint_ |
|
private |
std::string rosflight_firmware::UDPBoard::remote_host_ |
|
private |
uint16_t rosflight_firmware::UDPBoard::remote_port_ |
|
private |
boost::asio::ip::udp::socket rosflight_firmware::UDPBoard::socket_ |
|
private |
bool rosflight_firmware::UDPBoard::write_in_progress_ |
|
private |
boost::recursive_mutex rosflight_firmware::UDPBoard::write_mutex_ |
|
private |
std::list<Buffer*> rosflight_firmware::UDPBoard::write_queue_ |
|
private |
The documentation for this class was generated from the following files: