20#ifndef PROTOCORE_NEMA_TS2_H
21#define PROTOCORE_NEMA_TS2_H
25#if PROTOCORE_ENABLE_NEMA_TS2
33#define NEMA_TS2_FT_CMD_LOADSWITCH 0
34#define NEMA_TS2_FT_STATUS_LOADSWITCH 128
35#define NEMA_TS2_FT_CMD_MMU 3
36#define NEMA_TS2_FT_DETECTOR 9
40uint16_t protocore_nema_ts2_crc(
const uint8_t *bytes,
size_t len);
46size_t protocore_nema_ts2_build(uint8_t address, uint8_t control, uint8_t frame_type,
const uint8_t *data,
47 size_t data_len, uint8_t *out,
size_t cap);
60proto_bool protocore_nema_ts2_parse(
const uint8_t *frame,
size_t len, NemaTs2Frame *out);
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS