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
38
typedef
struct
_InputData
InputData
;
39
typedef
InputData
*
Input
;
40
41
45
Input
Input_Init
( DataHandle configuration );
46
49
void
Input_End
(
Input
input );
50
54
double
Input_Update
(
Input
input );
55
59
bool
Input_HasError
(
Input
input );
60
63
void
Input_Reset
(
Input
input );
64
68
void
Input_SetState
(
Input
input,
enum
SigProcState newProcessingState );
69
70
71
#endif
// INPUT_H
72
Input_Update
double Input_Update(Input input)
Performs single reading and processing of signal measured by given input.
Input_End
void Input_End(Input input)
Deallocates internal data of given input.
Input_Init
Input Input_Init(DataHandle configuration)
Creates and initializes input data structure based on given information.
InputData
struct _InputData InputData
Single input internal data structure.
Definition
input.h:38
Input_SetState
void Input_SetState(Input input, enum SigProcState newProcessingState)
Sets current processing phase/state/mode of given input.
Input
InputData * Input
Opaque reference to input internal data structure.
Definition
input.h:39
Input_HasError
bool Input_HasError(Input input)
Calls underlying signal reading implementation (plugin) to check for errors on given input.
Input_Reset
void Input_Reset(Input input)
Resets signal processing state and possible input device errors.
src
input.h
Generated by
1.13.2