APM:Libraries
|
#include <UDPDevice.h>
Public Member Functions | |
UDPDevice (const char *ip, uint16_t port, bool bcast, bool input) | |
virtual | ~UDPDevice () |
virtual bool | open () override |
virtual bool | close () override |
virtual void | set_blocking (bool blocking) override |
virtual void | set_speed (uint32_t speed) override |
virtual ssize_t | write (const uint8_t *buf, uint16_t n) override |
virtual ssize_t | read (uint8_t *buf, uint16_t n) override |
Public Member Functions inherited from SerialDevice | |
virtual | ~SerialDevice () |
virtual AP_HAL::UARTDriver::flow_control | get_flow_control (void) |
virtual void | set_flow_control (AP_HAL::UARTDriver::flow_control flow_control_setting) |
Private Attributes | |
SocketAPM | socket {true} |
const char * | _ip |
uint16_t | _port |
bool | _bcast |
bool | _input |
bool | _connected = false |
Definition at line 6 of file UDPDevice.h.
UDPDevice::UDPDevice | ( | const char * | ip, |
uint16_t | port, | ||
bool | bcast, | ||
bool | input | ||
) |
Definition at line 9 of file UDPDevice.cpp.
|
virtual |
Definition at line 17 of file UDPDevice.cpp.
|
overridevirtual |
Implements SerialDevice.
Definition at line 63 of file UDPDevice.cpp.
|
overridevirtual |
Implements SerialDevice.
Definition at line 48 of file UDPDevice.cpp.
|
overridevirtual |
Implements SerialDevice.
Definition at line 36 of file UDPDevice.cpp.
|
overridevirtual |
Implements SerialDevice.
Definition at line 68 of file UDPDevice.cpp.
|
overridevirtual |
Implements SerialDevice.
Definition at line 73 of file UDPDevice.cpp.
|
overridevirtual |
Implements SerialDevice.
Definition at line 21 of file UDPDevice.cpp.
|
private |
Definition at line 21 of file UDPDevice.h.
Referenced by open().
|
private |
Definition at line 23 of file UDPDevice.h.
|
private |
Definition at line 22 of file UDPDevice.h.
|
private |
Definition at line 19 of file UDPDevice.h.
|
private |
Definition at line 20 of file UDPDevice.h.
|
private |
Definition at line 18 of file UDPDevice.h.
Referenced by open(), read(), set_blocking(), and write().