50 tcount = atol(argv[2]);
56 printf(
"Usage: kpc9612p_recv [device [tcount]]\n");
65 printf(
"Failed to open KPC9612P on %s, error %d\n",
device,iretn);
71 for (uint16_t
i=0;
i<tcount; ++
i)
76 printf(
"Waiting: %f\r",86400.*(
currentmjd(0.)-lmjd));
80 if (waited) printf(
"\n");
int32_t kpc9612p_connect(char *dev, kpc9612p_handle *handle, uint8_t flag)
Definition: kpc9612p_lib.cpp:78
int i
Definition: rw_test.cpp:37
int count
Definition: rw_test.cpp:36
struct kpc9612p_frame::@12::@14 part
int iretn
Definition: rw_test.cpp:37
kpc9612p_handle handle
Definition: kpc9612p_recv.cpp:33
int32_t kpc9612p_recvframe(kpc9612p_handle *handle)
Definition: kpc9612p_lib.cpp:111
int32_t kpc9612p_unloadframe(kpc9612p_handle *handle, uint8_t *data, uint16_t size)
Definition: kpc9612p_lib.cpp:192
kpc9612p_frame frame
Definition: kpc9612p_lib.h:91
double currentmjd(double offset)
Current UTC in Modified Julian Days.
Definition: timelib.cpp:65
char device[35]
Definition: kpc9612p_recv.cpp:34
char buf[128]
Definition: rw_test.cpp:40
uint16_t size
Definition: kpc9612p_lib.h:85