blob: bc45a42af371883349524d1c11a148f99d1590f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/*
* Accelerometers.h
*
* Created on: 19 Mar 2021
* Author: David
*/
#ifndef SRC_ACCELEROMETERS_ACCELEROMETERS_H_
#define SRC_ACCELEROMETERS_ACCELEROMETERS_H_
#include <RepRapFirmware.h>
#if SUPPORT_ACCELEROMETERS
#include <GCodes/GCodeException.h>
#if SUPPORT_CAN_EXPANSION
# include <CanId.h>
#endif
class CanMessageAccelerometerData;
namespace Accelerometers
{
bool HasLocalAccelerometer() noexcept;
unsigned int GetLocalAccelerometerRuns() noexcept;
unsigned int GetLocalAccelerometerDataPoints() noexcept;
GCodeResult ConfigureAccelerometer(GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeException);
GCodeResult StartAccelerometer(GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeException);
void Exit() noexcept;
#if SUPPORT_CAN_EXPANSION
void ProcessReceivedData(CanAddress src, const CanMessageAccelerometerData& msg, size_t msgLen) noexcept;
#endif
}
#endif
#endif /* SRC_ACCELEROMETERS_ACCELEROMETERS_H_ */
|