kopia lustrzana https://github.com/cariboulabs/cariboulite
exmaple
rodzic
b2d43a17ef
commit
9b008ac591
|
@ -1,9 +1,21 @@
|
|||
#include <stdio.h>
|
||||
#include <cariboulite.h>
|
||||
|
||||
static cariboulite_lib_version_st version = {0};
|
||||
static uint32_t serial_number = 0;
|
||||
static int serial_number_len = 0;
|
||||
|
||||
int main ()
|
||||
{
|
||||
cariboulite_init(false, cariboulite_log_level_none);
|
||||
cariboulite_get_lib_version(&version);
|
||||
|
||||
printf("Version: %02d.%02d.%02d\n", version.major_version, version.minor_version, version.revision);
|
||||
|
||||
cariboulite_get_sn(&serial_number, &serial_number_len);
|
||||
|
||||
printf("Serial Number: %08X\n", serial_number);
|
||||
|
||||
cariboulite_close();
|
||||
return 0;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue