#ifndef ION_ION_H #define ION_ION_H #include #include #include #include #include #include #include #include #include #include #include #include #include /* 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_main, which you have to implement yourself. */ void ion_main(int argc, char * argv[]); namespace Ion { void msleep(long ms); void usleep(long us); extern "C" long millis(); extern "C" long micros(); const char * serialNumber(); const char * softwareVersion(); const char * patchLevel(); const char * fccId(); // 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