MCPcopy Create free account
hub / github.com/ArduPilot/ArduRemoteID / comm_send_buffer

Function comm_send_buffer

RemoteIDModule/mavlink.cpp:21–28  ·  view source on GitHub ↗

send a buffer out a MAVLink channel */

Source from the content-addressed store, hash-verified

19 send a buffer out a MAVLink channel
20 */
21void comm_send_buffer(mavlink_channel_t chan, const uint8_t *buf, uint8_t len)
22{
23 if (chan >= MAVLINK_COMM_NUM_BUFFERS || serial_ports[uint8_t(chan)] == nullptr) {
24 return;
25 }
26 auto &serial = *serial_ports[uint8_t(chan)];
27 serial.write(buf, len);
28}
29
30/*
31 abstraction for MAVLink on a serial port

Callers

nothing calls this directly

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected