Numworks Epsilon  1.4.1
Graphing Calculator Operating System
ion.h
Go to the documentation of this file.
1 #ifndef ION_ION_H
2 #define ION_ION_H
3 
4 #include <ion/backlight.h>
5 #include <ion/battery.h>
6 #include <ion/charset.h>
7 #include <ion/console.h>
8 #include <ion/display.h>
9 #include <ion/events.h>
10 #include <ion/keyboard.h>
11 #include <ion/led.h>
12 #include <ion/power.h>
13 #include <ion/storage.h>
14 #include <ion/usb.h>
15 #include <stdint.h>
16 #include <string.h>
17 
18 /* ION is not your regular library. It is a library you link against, but it
19  * will take care of configuring the whole environment for you. In POSIX terms,
20  * ION will implement the "main" function.
21  * Don't worry though, once all its initialization will be performed, ION will
22  * jump to your code at ion_main, which you have to implement yourself. */
23 
24 void ion_main(int argc, char * argv[]);
25 
26 namespace Ion {
27 
28 void msleep(long ms);
29 void usleep(long us);
30 
31 constexpr static int SerialNumberLength = 24;
32 void getSerialNumber(char * buffer);
33 const char * softwareVersion();
34 const char * patchLevel();
35 const char * fccId();
36 
37 // CRC32 : non xor-ed, non reversed, direct, polynomial 4C11DB7
38 // Only accepts whole 32bit values
39 uint32_t crc32(const uint32_t * data, size_t length);
40 
41 // Provides a true random number
43 
44 }
45 
46 #endif
def data
Definition: i18n.py:176
const char * patchLevel()
void msleep(long ms)
Definition: ion.cpp:4
uint32_t random()
Definition: device.cpp:52
unsigned int uint32_t
Definition: stdint.h:6
void getSerialNumber(char *buffer)
Definition: device.cpp:77
const char * fccId()
Definition: fcc_id.cpp:4
void ion_main(int argc, char *argv[])
Definition: main.cpp:4
uint32_t crc32(const uint32_t *data, size_t length)
Definition: device.cpp:37
void usleep(long us)
Definition: device.cpp:31
const char * softwareVersion()
Definition: backlight.h:6