26#ifndef PROTOCORE_HOSTLINK_H
27#define PROTOCORE_HOSTLINK_H
37uint8_t pc_hostlink_fcs(
const char *data,
size_t len);
48size_t pc_hostlink_build(
char *buf,
size_t cap, uint8_t node,
const char *header_code,
const char *text,
64bool pc_hostlink_parse(
const char *buf,
size_t len, HostlinkFrame *out);
67bool pc_hostlink_end_code(
const HostlinkFrame *f, uint8_t *code);
74size_t pc_hostlink_build_read(
char *buf,
size_t cap, uint8_t node, uint16_t address, uint16_t count);
81bool pc_hostlink_read_word(
const HostlinkFrame *f,
size_t index, uint16_t *out);
90size_t pc_hostlink_build_write(
char *buf,
size_t cap, uint8_t node, uint16_t address,
const uint16_t *words,
User-facing configuration for ProtoCore.