RobotSystem-Lite
Loading...
Searching...
No Matches
output.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
29#ifndef OUTPUT_H
30#define OUTPUT_H
31
32
33#include "data_io/interface/data_io.h"
34
35#include <stdbool.h>
36
37typedef struct _OutputData OutputData;
39
40
44Output Output_Init( DataHandle configuration );
45
48void Output_End( Output output );
49
53bool Output_Enable( Output output );
54
57void Output_Disable( Output output );
58
62bool Output_HasError( Output output );
63
66void Output_Reset( Output output );
67
71void Output_Update( Output output, double value );
72
73
74#endif // OUTPUT_H
bool Output_HasError(Output output)
Calls underlying signal output implementation to check for errors on given output.
bool Output_Enable(Output output)
Allows hardware/virtual device of given output to output signal.
void Output_Reset(Output output)
Calls underlying signal output implementation to reset possible device errors.
void Output_End(Output output)
Deallocates internal data of given output.
void Output_Update(Output output, double value)
Writes specified value to given output ouput device.
Output Output_Init(DataHandle configuration)
Creates and initializes output data structure based on given information.
OutputData * Output
Opaque reference to output internal data structure.
Definition output.h:38
void Output_Disable(Output output)
Prevents hardware/virtual device of given output from outputing signal.
struct _OutputData OutputData
Single output internal data structure.
Definition output.h:37