DecodeCrankTorque.h 916 B

123456789101112131415161718192021222324252627
  1. /*
  2. This software is subject to the license described in the License.txt file
  3. included with this software distribution. You may not use this file except in compliance
  4. with this license.
  5. Copyright (c) Dynastream Innovations Inc. 2014
  6. All rights reserved.
  7. */
  8. #if !defined (DECODE_CRANKTORQUE_H)
  9. #define DECODE_CRANKTORQUE_H
  10. #define CT_TIME_QUANTIZATION (2048) // Timer ticks per second
  11. #include "PowerDecoder.h"
  12. void DecodeCrankTorque_Init(double dRecordInterval_, double dTimeBase_, double dReSyncInterval_, PowerRecordReceiver powerRecordReceiverPtr_);
  13. void DecodeCrankTorque_End(void);
  14. void DecodeCrankTorque_Message(double dTime_, unsigned char messagePayload_[]);
  15. void DecodeCrankTorque_Resync(double dTime_, unsigned char messagePayload_[]);
  16. void DecodeCrankTorque(double dTime_, unsigned char messagePayload_[]);
  17. void RecordCrankTorque(void);
  18. void RecordCrankTorque_Resync(double dLastRecordTime);
  19. #endif