4#ifndef PROTOCORE_SIGFOX_H
5#define PROTOCORE_SIGFOX_H
46 uint16_t (*build_uplink)(uint8_t *,
const uint8_t *, uint8_t,
char *, uint16_t);
PROTO_ENUM_PACKED
Application protocol spoken on a listener port or connection slot.
#define PROTOCORE_NS_LAYOUT(T,...)
Pin every dispatch slot of a table that is nothing but function pointers.
#define PROTOCORE_NS
Storage for a dispatch table. The const is load bearing.
protocore_sigfox_result protocore_sigfox_parse_response(uint8_t *work, const char *buf, uint16_t len)
Classify a modem reply (scans buf for "OK" / "ERROR").
@ SIGFOX_ERROR
the modem reported an error
@ SIGFOX_OK
the modem accepted / completed the command
@ SIGFOX_PENDING
nothing conclusive yet (echo / partial); keep reading
PROTOCORE_NS SigfoxNs Sigfox PROTOCORE_UNUSED
Module namespace.
uint16_t protocore_sigfox_build_uplink(uint8_t *work, const uint8_t *payload, uint8_t len, char *out, uint16_t cap)
Format an AT$SF=<hex>\r\n uplink command for payload into out (a .
enum PROTO_ENUM_PACKED protocore_sigfox_result
Classification of a Sigfox modem response line.
Dispatch table. Addressed by offset, so the layout is asserted below.
uint16_t(* build_uplink)(uint8_t *, const uint8_t *, uint8_t, char *, uint16_t)
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
#define PROTOCORE_END_DECLS