39 #define MAC_ADDRESS_LENGTH 6
#define MAC_ADDRESS_LENGTH
MAC address length in bytes.
struct rl_status status
Current status of RocketLogger.
int64_t sec
Seconds in UNIX time (UTC)
int is_low_current(int index)
void get_mac_addr(uint8_t mac_address[MAC_ADDRESS_LENGTH])
int write_status(struct rl_status *status)
int is_current(int index)
int read_file_value(char filename[])
#define NUM_CHANNELS
Maximum number of RocketLogger channels.
int count_channels(int channels[NUM_CHANNELS])
void create_time_stamp(struct time_stamp *time_real, struct time_stamp *time_monotonic)
int read_status(struct rl_status *status)
void sig_handler(int signo)
int ceil_div(int n, int d)