RobotSystem-Lite
Loading...
Searching...
No Matches
input.h
Go to the documentation of this file.
1
2// //
3// Copyright (c) 2016-2025 Leonardo Consoni <leonardojc@protonmail.com> //
4// //
5// This file is part of RobotSystem-Lite. //
6// //
7// RobotSystem-Lite is free software: you can redistribute it and/or modify //
8// it under the terms of the GNU Lesser General Public License as published //
9// by the Free Software Foundation, either version 3 of the License, or //
10// (at your option) any later version. //
11// //
12// RobotSystem-Lite is distributed in the hope that it will be useful, //
13// but WITHOUT ANY WARRANTY; without even the implied warranty of //
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
15// GNU Lesser General Public License for more details. //
16// //
17// You should have received a copy of the GNU Lesser General Public License //
18// along with RobotSystem-Lite. If not, see <http://www.gnu.org/licenses/>. //
19// //
21
22
27
28#ifndef INPUT_H
29#define INPUT_H
30
31
32#include "signal_processing/signal_processing.h"
33#include "data_io/interface/data_io.h"
34
35#include <stdbool.h>
36
37
38typedef struct _InputData InputData;
39typedef InputData* Input;
40
41
45Input Input_Init( DataHandle configuration );
46
49void Input_End( Input input );
50
54double Input_Update( Input input );
55
59bool Input_HasError( Input input );
60
63void Input_Reset( Input input );
64
68void Input_SetState( Input input, enum SigProcState newProcessingState );
69
70
71#endif // INPUT_H
72
double Input_Update(Input input)
Performs single reading and processing of signal measured by given input.
void Input_End(Input input)
Deallocates internal data of given input.
Input Input_Init(DataHandle configuration)
Creates and initializes input data structure based on given information.
struct _InputData InputData
Single input internal data structure.
Definition input.h:38
void Input_SetState(Input input, enum SigProcState newProcessingState)
Sets current processing phase/state/mode of given input.
InputData * Input
Opaque reference to input internal data structure.
Definition input.h:39
bool Input_HasError(Input input)
Calls underlying signal reading implementation (plugin) to check for errors on given input.
void Input_Reset(Input input)
Resets signal processing state and possible input device errors.