// Language target is C, C++ compilers: don't mangle us
#ifdef __cplusplus
extern"C"{
#endif
/*!
*\file
*/
#include<stdbool.h>
#include"ESCVelocityProtocol.h"
#include"LegacyESCDefines.h"
/*!
*Legacy(gen-1)definitionfortheSTATUS_Apacket
*/
typedefstruct
{
uint8_tmode;//!< ESC operating mode. The lower four bits indicate the operational mode of the ESC, in accordance with the ESCOperatingModes enumeration. The upper 3 bits are used for debugging and should be ignored for general use.
uint16_tcommand;//!< ESC operational command - value depends on 'mode' available in this packet. If the ESC is disabled, data reads 0x0000. If the ESC is in open-loop PWM mode, this value is the PWM command in units of 1us, in the range 1000us to 2000us. If the ESC is in closed-loop RPM mode, this value is the RPM command in units of 1RPM
uint16_trpm;//!< Motor speed
}ESC_LegacyStatusA_t;
//! Create the ESC_LegacyStatusA packet from parameters