MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / device_read

Method device_read

libraries/AP_Scripting/AP_Scripting_SerialDevice.cpp:74–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74ssize_t AP_Scripting_SerialDevice::Port::device_read(uint8_t *buffer, uint16_t count)
75{
76 WITH_SEMAPHORE(sem);
77 if (writebuffer) {
78 return writebuffer->read(buffer, count);
79 }
80 return 0;
81}
82
83uint32_t AP_Scripting_SerialDevice::Port::device_available(void)
84{

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected