parent
be8ba29b42
commit
73e69940ba
|
@ -58,11 +58,6 @@
|
|||
#define MsgGetSig1(msg) (((msg) >> (1 * 4)) & 0xfff)
|
||||
#define MsgGetCrc(msg) MsgGetNibble(msg, 7)
|
||||
|
||||
|
||||
sent_channel::sent_channel() {
|
||||
state = SENT_STATE_CALIB;
|
||||
}
|
||||
|
||||
void sent_channel::restart(void)
|
||||
{
|
||||
state = SENT_STATE_CALIB;
|
||||
|
|
|
@ -36,17 +36,14 @@ struct sent_channel_stat {
|
|||
};
|
||||
|
||||
class sent_channel {
|
||||
public:
|
||||
sent_channel();
|
||||
|
||||
private:
|
||||
SENT_STATE_enum state = SENT_STATE_CALIB;
|
||||
|
||||
/* Unit interval in timer clocks - adjusted on SYNC */
|
||||
uint32_t tickPerUnit;
|
||||
uint32_t pulseCounter;
|
||||
uint32_t tickPerUnit = 0;
|
||||
uint32_t pulseCounter = 0;
|
||||
/* pulses skipped in init state while waiting for SYNC */
|
||||
uint32_t initStatePulseCounter;
|
||||
uint32_t initStatePulseCounter = 0;
|
||||
|
||||
/* fast channel shift register*/
|
||||
uint32_t rxReg;
|
||||
|
|
Loading…
Reference in New Issue