37 #ifndef _KPC9612PLIB_H 38 #define _KPC9612PLIB_H 1 49 #define KPC9612P_MTU 254 50 #define KPC9612P_PAYLOAD_SIZE KPC9612P_MTU 53 #define KPC9612P_FULL_SIZE (KPC9612P_PAYLOAD_SIZE+19) 54 #define AX25_FLAG 0x7E 55 #define AX25_NOLAYER3 0xF0 58 #define KPC9612P_BAUD 19200 59 #define KPC9612P_BITS 8 60 #define KPC9612P_PARITY 0 61 #define KPC9612P_STOPBITS 1 char destination_address[7]
Definition: kpc9612p_lib.h:74
int32_t kpc9612p_sendframe(kpc9612p_handle *handle)
Definition: kpc9612p_lib.cpp:130
uint16_t kpc9612p_calc_fcs(uint8_t *data, uint16_t length)
Definition: kpc9612p_lib.cpp:67
#define KPC9612P_FULL_SIZE
Definition: kpc9612p_lib.h:53
uint8_t flag
Definition: kpc9612p_lib.h:73
int32_t kpc9612p_exitkiss(kpc9612p_handle *handle)
Definition: kpc9612p_lib.cpp:220
struct kpc9612p_frame::@12::@14 part
char source_address[7]
Definition: kpc9612p_lib.h:75
struct kpc9612p_frame::@12::@14::@15::@17 header
#define KPC9612P_PAYLOAD_SIZE
Definition: kpc9612p_lib.h:50
int32_t kpc9612p_entercmd(kpc9612p_handle *handle)
Definition: kpc9612p_lib.cpp:237
int32_t kpc9612p_connect(char *dev, kpc9612p_handle *handle, uint8_t flag)
Definition: kpc9612p_lib.cpp:78
Simple Serial library header file.
uint8_t preamble[17]
Definition: kpc9612p_lib.h:79
int32_t kpc9612p_unloadframe(kpc9612p_handle *handle, uint8_t *data, uint16_t size)
Definition: kpc9612p_lib.cpp:192
Definition: kpc9612p_lib.h:63
kpc9612p_frame frame
Definition: kpc9612p_lib.h:91
Headers and definitions common to all COSMOS.
cssl_t * serial
Definition: kpc9612p_lib.h:90
uint8_t payload[254+2]
Definition: kpc9612p_lib.h:81
gige_handle * handle
Definition: kpc9612p_recv.cpp:33
uint8_t flag
Definition: kpc9612p_lib.h:92
png_uint_32 length
Definition: png.c:2173
int32_t kpc9612p_recvframe(kpc9612p_handle *handle)
Definition: kpc9612p_lib.cpp:111
int32_t kpc9612p_enterkiss(kpc9612p_handle *handle)
Definition: kpc9612p_lib.cpp:230
uint8_t protocol_id
Definition: kpc9612p_lib.h:77
int32_t kpc9612p_loadframe(kpc9612p_handle *handle, uint8_t *data, uint16_t size)
Definition: kpc9612p_lib.cpp:140
int32_t kpc9612p_disconnect(kpc9612p_handle *handle)
Definition: kpc9612p_lib.cpp:103
uint16_t size
Definition: kpc9612p_lib.h:85
uint8_t full[(254+19)]
Definition: kpc9612p_lib.h:83
Definition: kpc9612p_lib.h:88
Definition: cssl_lib.h:34
uint8_t control
Definition: kpc9612p_lib.h:76