iCub-main
ftInfo.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  * Author: Luca Tricerri
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef _FTINFO_H_
10 #define _FTINFO_H_
11 
12 #include <string>
13 
14 #include "EoAnalogSensors.h"
15 
16 class FtInfo
17 {
18  public:
19  uint8_t ftAcquisitionRate{0};
21  eOas_ft_mode_t useCalibration{eoas_ft_mode_calibrated};
22  eObrd_type_t board{eobrd_unknown};
23  int port{0};
24  int address{0};
25  int majorProtocol{0};
26  int minorProtocol{0};
27  int majorFirmware{0};
28  int minorFirmware{0};
29  int buildFirmware{0};
30  std::string frameName{""};
31 
32  bool toEomn(eOas_ft_sensordescriptor_t& out) const;
33 };
34 
35 bool operator==(const FtInfo& right, const FtInfo& left);
36 bool operator!=(const FtInfo& right, const FtInfo& left);
37 
38 #endif // include-guard
Definition: ftInfo.h:17
int buildFirmware
Definition: ftInfo.h:29
eOas_ft_mode_t useCalibration
Definition: ftInfo.h:21
uint8_t ftAcquisitionRate
Definition: ftInfo.h:19
eObrd_type_t board
Definition: ftInfo.h:22
int majorFirmware
Definition: ftInfo.h:27
std::string frameName
Definition: ftInfo.h:30
uint32_t temperatureAcquisitionRate
Definition: ftInfo.h:20
int majorProtocol
Definition: ftInfo.h:25
int minorFirmware
Definition: ftInfo.h:28
int minorProtocol
Definition: ftInfo.h:26
int port
Definition: ftInfo.h:23
int address
Definition: ftInfo.h:24
bool toEomn(eOas_ft_sensordescriptor_t &out) const
Definition: ftInfo.cpp:14
bool operator!=(const FtInfo &right, const FtInfo &left)
Definition: ftInfo.cpp:74
bool operator==(const FtInfo &right, const FtInfo &left)
Definition: ftInfo.cpp:45
out
Definition: sine.m:8