libnjb 2.2.6
|
#include <stdlib.h>
#include <string.h>
#include "libnjb.h"
#include "njbtime.h"
#include "njb_error.h"
#include "defs.h"
#include "base.h"
#include "byteorder.h"
Functions | |
njb_time_t * | time_unpack (void *data) |
njb_time_t * | time_unpack3 (void *data) |
void * | time_pack (njb_time_t *time) |
void * | time_pack3 (njb_time_t *time) |
Variables | |
int | __sub_depth |
This file deals with the time structures used by the internal clock of the devices.
void* time_pack | ( | njb_time_t * | time | ) |
Packs a libnjb time structure to the raw format used by the NJB1
time | the libnjb time structure to pack |
References njb_time_struct::day, from_16bit_to_njb1_bytes(), njb_time_struct::hours, njb_time_struct::minutes, njb_time_struct::month, njb_time_struct::seconds, njb_time_struct::weekday, and njb_time_struct::year.
void* time_pack3 | ( | njb_time_t * | time | ) |
Packs a libnjb time structure to the raw format used by the series 3 devices.
time | the libnjb time structure to pack |
References njb_time_struct::day, njb_time_struct::hours, njb_time_struct::minutes, njb_time_struct::month, njb_time_struct::seconds, njb_time_struct::weekday, and njb_time_struct::year.
njb_time_t* time_unpack | ( | void * | data | ) |
Unpacks a raw NJB1 time structure into libnjb representation.
data | raw memory representing a NJB1 timestamp |
References njb_time_struct::day, njb_time_struct::hours, njb_time_struct::minutes, njb_time_struct::month, njb1_bytes_to_16bit(), njb_time_struct::seconds, njb_time_struct::weekday, and njb_time_struct::year.
njb_time_t* time_unpack3 | ( | void * | data | ) |
Unpacks a raw series 3 time structure into libnjb representation.
data | raw memory representing a series 3 timestamp |
References njb_time_struct::day, njb_time_struct::hours, njb_time_struct::minutes, njb_time_struct::month, njb_time_struct::seconds, njb_time_struct::weekday, and njb_time_struct::year.
int __sub_depth |
The current subroutine depth for all of libnjb (global)