Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
dji_serial.cpp File Reference
Include dependency graph for dji_serial.cpp:

Namespaces

namespace  tap
 
namespace  tap::communication
 
namespace  tap::communication::serial
 

Macros

#define READ(data, length)   drivers->uart.read(this->port, data, length)
 

Macro Definition Documentation

◆ READ

#define READ (   data,
  length 
)    drivers->uart.read(this->port, data, length)

Macro that wraps uart read for ease of readability in code.

Parameters
[in]dataByte array where the data should be read into.
[in]lengthThe number of bytes to read.
Returns
The number of bytes read into data.