pull/146/head
David Michaeli 2023-09-27 13:22:49 +00:00
rodzic b2d43a17ef
commit 9b008ac591
1 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -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;
}