46 count = atol(argv[2]);
52 printf(
"Usage: kpc9612p_send [device [count]]\n");
59 printf(
"Failed to open KPC9612P on %s, error %d\n",
device,iretn);
75 printf(
"Failed to send frame, error %d\r",iretn);
81 COSMOS_USLEEP(2000000);
int32_t kpc9612p_connect(char *dev, kpc9612p_handle *handle, uint8_t flag)
Definition: kpc9612p_lib.cpp:78
size_t count
Definition: kpc9612p_send.cpp:37
int i
Definition: rw_test.cpp:37
int iretn
Definition: rw_test.cpp:37
kpc9612p_frame frame
Definition: kpc9612p_lib.h:91
uint8_t message[300]
Definition: kpc9612p_send.cpp:36
cssl_t * serial
Definition: kpc9612p_lib.h:90
char device[35]
Definition: kpc9612p_send.cpp:34
uint16_t size
Definition: kpc9612p_lib.h:85
int32_t cssl_putslip(cssl_t *serial, uint8_t *buf, size_t size)
Definition: cssl_lib.cpp:586
kpc9612p_handle handle
Definition: kpc9612p_send.cpp:33