6663b6c9
adorian
projet complet av...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#ifndef ION_ION_H
#define ION_ION_H
#include <ion/backlight.h>
#include <ion/battery.h>
#include <ion/charset.h>
#include <ion/console.h>
#include <ion/display.h>
#include <ion/events.h>
#include <ion/keyboard.h>
#include <ion/led.h>
#include <ion/power.h>
#include <ion/usb.h>
#include <stdint.h>
#include <string.h>
/* ION is not your regular library. It is a library you link against, but it
* will take care of configuring the whole environment for you. In POSIX terms,
* ION will implement the "main" function.
* Don't worry though, once all its initialization will be performed, ION will
* jump to your code at ion_app, which you have to implement yourself. */
void ion_app();
namespace Ion {
void msleep(long ms);
void usleep(long us);
const char * serialNumber();
const char * softwareVersion();
const char * patchLevel();
const char * fccId();
/* CAUTION: This is a complete reset! */
void reset();
// CRC32 : non xor-ed, non reversed, direct, polynomial 4C11DB7
// Only accepts whole 32bit values
uint32_t crc32(const uint32_t * data, size_t length);
// Provides a true random number
uint32_t random();
}
#endif
|