NiboRoboLib 3.1 - NIBObee Library
bgx1.h
gehe zur Dokumentation dieser Datei
1 /* BSD-License:
2 
3 Copyright (c) 2010 by Nils Springob, nicai-systems, Germany
4 
5 All rights reserved.
6 
7 Redistribution and use in source and binary forms, with or without modification,
8 are permitted provided that the following conditions are met:
9 
10  * Redistributions of source code must retain the above copyright notice,
11  this list of conditions and the following disclaimer.
12  * Redistributions in binary form must reproduce the above copyright notice,
13  this list of conditions and the following disclaimer in the documentation
14  and/or other materials provided with the distribution.
15  * Neither the name nicai-systems nor the names of its contributors may be
16  used to endorse or promote products derived from this software without
17  specific prior written permission.
18 
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
23 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 
31 */
32 
40 #ifndef NIBOBEE_BGX1_H_
41 #define NIBOBEE_BGX1_H_
42 
43 #include <stdint.h>
44 #include <avr/pgmspace.h>
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49 
55 uint8_t bgx1_init();
56 
57 
61 void bgx1_reset();
62 
66 uint16_t bgx1_getVersion();
67 
72 uint8_t bgx1_getStatus();
73 
77 void bgx1_setStatus(uint8_t);
78 
84 void bgx1_move(uint8_t x, uint8_t y);
85 
90 void bgx1_mode(uint8_t mode);
91 
96 void bgx1_fillAll(uint8_t pattern);
97 
102 void bgx1_print(const char * text);
103 
108 void bgx1_print_P(const char * text);
109 
115 uint8_t bgx1_textWidth(const char * text);
116 
122 uint8_t bgx1_textWidth_P(const char * text);
123 
128 void bgx1_selectFont(uint8_t font);
129 
134 void bgx1_hLine(uint8_t length);
135 
140 void bgx1_vLine(uint8_t length);
141 
147 void bgx1_box(uint8_t width, uint8_t height);
148 
153 void bgx1_drawBitmap(uint8_t width, uint8_t height, const uint8_t bitmap[]);
154 
159 void bgx1_drawBitmap_P(uint8_t width, uint8_t height, PGM_P bitmap);
160 
166 void bgx1_lineTo(uint8_t x, uint8_t y);
167 
171 void bgx1_termClear();
172 
178 void bgx1_termGoto(uint8_t col, uint8_t row);
179 
184 void bgx1_termScroll(int8_t lines);
185 
190 void bgx1_termPrint(const char * text);
191 
196 void bgx1_termPrint_P(PGM_P text);
197 
198 
202 extern uint8_t bgx1_DDR;
203 
207 extern uint8_t bgx1_PORT;
208 
212 extern uint8_t bgx1_PIN;
213 
218 void bgx1_syncPort();
219 
223 uint16_t bgx1_getAnalog(uint8_t index);
224 
225 
229 extern uint8_t bgx1_Leds;
230 
234 extern uint8_t bgx1_Keys;
235 
240 void bgx1_syncInterface();
241 
246 void bgx1_setIllumination(uint16_t illu);
247 
248 
249 
250 
251 #ifdef __cplusplus
252 } // extern "C"
253 #endif
254 
255 #endif // NIBO_BGX1_H_
void bgx1_setIllumination(uint16_t illu)
void bgx1_mode(uint8_t mode)
uint8_t bgx1_Leds
void bgx1_reset()
void bgx1_lineTo(uint8_t x, uint8_t y)
uint8_t bgx1_textWidth_P(const char *text)
uint8_t bgx1_textWidth(const char *text)
void bgx1_termPrint_P(PGM_P text)
uint8_t bgx1_init()
void bgx1_termPrint(const char *text)
void bgx1_termGoto(uint8_t col, uint8_t row)
uint8_t bgx1_getStatus()
void bgx1_termScroll(int8_t lines)
uint16_t bgx1_getVersion()
void bgx1_print(const char *text)
void bgx1_box(uint8_t width, uint8_t height)
void bgx1_termClear()
uint8_t bgx1_DDR
uint8_t bgx1_Keys
void bgx1_hLine(uint8_t length)
void bgx1_syncPort()
uint8_t bgx1_PIN
void bgx1_setStatus(uint8_t)
void bgx1_drawBitmap(uint8_t width, uint8_t height, const uint8_t bitmap[])
void bgx1_selectFont(uint8_t font)
void bgx1_drawBitmap_P(uint8_t width, uint8_t height, PGM_P bitmap)
uint16_t bgx1_getAnalog(uint8_t index)
void bgx1_fillAll(uint8_t pattern)
void bgx1_vLine(uint8_t length)
void bgx1_syncInterface()
void bgx1_print_P(const char *text)
void bgx1_move(uint8_t x, uint8_t y)
uint8_t bgx1_PORT