NiboRoboLib 3.6 - NIBO burger 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 
42 #ifndef NIBOBURGER_BGX1_H_
43 #define NIBOBURGER_BGX1_H_
44 
45 #include <stdint.h>
46 #include <avr/pgmspace.h>
47 
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51 
57 uint8_t bgx1_init();
58 
59 
63 void bgx1_reset();
64 
68 uint16_t bgx1_getVersion();
69 
74 uint8_t bgx1_getStatus();
75 
79 void bgx1_setStatus(uint8_t);
80 
86 void bgx1_move(uint8_t x, uint8_t y);
87 
92 void bgx1_mode(uint8_t mode);
93 
98 void bgx1_fillAll(uint8_t pattern);
99 
104 void bgx1_print(const char * text);
105 
110 void bgx1_print_P(const char * text);
111 
117 uint8_t bgx1_textWidth(const char * text);
118 
124 uint8_t bgx1_textWidth_P(const char * text);
125 
130 void bgx1_selectFont(uint8_t font);
131 
136 void bgx1_hLine(uint8_t length);
137 
142 void bgx1_vLine(uint8_t length);
143 
149 void bgx1_box(uint8_t width, uint8_t height);
150 
155 void bgx1_drawBitmap(uint8_t width, uint8_t height, const uint8_t bitmap[]);
156 
161 void bgx1_drawBitmap_P(uint8_t width, uint8_t height, PGM_P bitmap);
162 
168 void bgx1_lineTo(uint8_t x, uint8_t y);
169 
173 void bgx1_termClear();
174 
180 void bgx1_termGoto(uint8_t col, uint8_t row);
181 
186 void bgx1_termScroll(int8_t lines);
187 
192 void bgx1_termPrint(const char * text);
193 
198 void bgx1_termPrint_P(PGM_P text);
199 
200 
204 extern uint8_t bgx1_DDR;
205 
209 extern uint8_t bgx1_PORT;
210 
214 extern uint8_t bgx1_PIN;
215 
220 void bgx1_syncPort();
221 
225 uint16_t bgx1_getAnalog(uint8_t index);
226 
227 
231 extern uint8_t bgx1_Leds;
232 
236 extern uint8_t bgx1_Keys;
237 
242 void bgx1_syncInterface();
243 
248 void bgx1_setIllumination(uint16_t illu);
249 
250 
251 
252 
253 #ifdef __cplusplus
254 } // extern "C"
255 #endif
256 
257 #endif // NIBOBURGER_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