21 #ifndef TARGETETHCONTROLLER_H
22 #define TARGETETHCONTROLLER_H
24 #include "TargetController.h"
28 class FrameworkManager;
50 uint16_t port, uint8_t priority = 0);
54 bool IsConnected()
const;
56 std::string GetAxisName(
unsigned int axisId)
const;
58 std::string GetButtonName(
unsigned int axisId)
const;
61 bool IsControllerActionSupported(ControllerAction action)
const;
63 bool IsDataFrameReady();
70 bool ControllerInitialization();
73 uint16_t readBits(uint8_t offsetInBits, uint8_t valueSizeInBits,
char *buffer,
75 uint8_t getByteOrNull(
char *buffer,
int byte,
size_t bufferSize);
76 uint32_t charBufferToUint32(
char *buffer,
size_t bufferSize);
81 std::string *axisName =
nullptr;
82 std::string *buttonName =
nullptr;
84 char *dataFrameBuffer;
85 char *receiveFrameBuffer;
86 size_t receiveCurrentPosition;
92 #endif // TARGETCONTROLLER_H
namespace of the flair Framework
Definition: Ahrs.h:19
Class encapsulating a TCP socket.
Definition: TcpSocket.h:25
Base Class for target side remote controls.
Definition: TargetController.h:49
Definition: TargetEthController.h:47
Class defining a matrix.
Definition: Matrix.h:31
Class encapsulating a UDP socket. It assumes packets are coming from only one distant host on a given...
Definition: UdpSocket.h:31