libkovan  1
The kovan standard library
digital.h
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright 2012 KISS Institute for Practical Robotics *
3  * *
4  * This file is part of libkovan. *
5  * *
6  * libkovan is free software: you can redistribute it and/or modify *
7  * it under the terms of the GNU General Public License as published by *
8  * the Free Software Foundation, either version 2 of the License, or *
9  * (at your option) any later version. *
10  * *
11  * libkovan is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with libkovan. Check the LICENSE file in the project root. *
18  * If not, see <http://www.gnu.org/licenses/>. *
19  **************************************************************************/
20 
29 #ifndef _DIGITAL_H_
30 #define _DIGITAL_H_
31 
32 #include "export.h"
33 #include "vtable.h"
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
42 VF EXPORT_SYM int digital(int port);
43 
48 VF EXPORT_SYM void set_digital_value(int port, int value);
49 
55 VF EXPORT_SYM int get_digital_value(int port);
56 
62 VF EXPORT_SYM void set_digital_output(int port, int out);
63 
64 VF EXPORT_SYM int get_digital_output(int port);
65 
66 VF EXPORT_SYM int get_digital_pullup(int port);
67 
68 VF EXPORT_SYM void set_digital_pullup(int port, int pullup);
69 
70 VFL
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif
VF EXPORT_SYM int get_digital_output(int port)
VF EXPORT_SYM void set_digital_pullup(int port, int pullup)
VF EXPORT_SYM void set_digital_value(int port, int value)
VF EXPORT_SYM void set_digital_output(int port, int out)
VF EXPORT_SYM int get_digital_pullup(int port)
#define VF
Definition: vtable.h:10
#define VFL
Definition: vtable.h:11
VF EXPORT_SYM int get_digital_value(int port)
#define EXPORT_SYM
Definition: export.h:7
VF EXPORT_SYM int digital(int port)