23 EDT_STATUS_MAX_STRESS_MASK=0b111<1
87 ((tm.edt_type & 0b0001) == 0) &&
88 ((tm.edt_type & 0b1110) != 0);
static uint16_t DshotErpsEdtStatus(const DshotErps *derpsp)
return status value
const DshotErps * DshotErpsSetFromFrame(DshotErps *derpsp, uint32_t frame)
initialise from GCR encoded frame
EdtType
ERPS telemetry type.
uint32_t DshotErpsGetRpm(const DshotErps *derpsp)
calculate and return rpm
uint32_t DshotErpsGetEperiod(const DshotErps *derpsp)
return eperiod from mantisse and exponent
static uint8_t DshotErpsEdtTempCentigrade(const DshotErps *derpsp)
return temperature for a temperature telemetry frame
bool DshotErpsCheckCrc4(const DshotErps *derpsp)
check packed validity
static uint16_t DshotErpsEdtStress(const DshotErps *derpsp)
return stress value
static uint32_t DshotErpsGetFrame(const DshotErps *derpsp)
return encoded frame
static EdtType DshotErpsEdtType(const DshotErps *derpsp)
return type of a telemetry frame
const DshotErps * DshotErpsSetFromRpm(DshotErps *derpsp, uint32_t rpm)
initialise from rpm value
_Static_assert(sizeof(DshotEPeriodPacket)==sizeof(uint16_t), "DshotEPeriodPacket size error")
static uint16_t DshotErpsEdtCentiVolts(const DshotErps *derpsp)
return voltage for a voltage telemetry frame
static uint16_t DshotErpsEdtCurrentAmp(const DshotErps *derpsp)
return current intensity for a current telemetry frame
static bool DshotErpsIsEdt(const DshotErps *derpsp)
return true if current frame is a telemetry frame
ERPS complete frame, raw and decoded.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.