Go to the source code of this file.
|
s8 | sbp_register_callback (sbp_state_t *s, u16 msg_type, sbp_msg_callback_t cb, void *context, sbp_msg_callbacks_node_t *node) |
| Register a callback for a message type. More...
|
|
s8 | sbp_remove_callback (sbp_state_t *s, sbp_msg_callbacks_node_t *node) |
| Remove a registered callback. More...
|
|
void | sbp_clear_callbacks (sbp_state_t *s) |
| Clear all registered callbacks. More...
|
|
void | sbp_state_init (sbp_state_t *s) |
| Initialize an sbp_state_t struct before use. More...
|
|
void | sbp_state_set_io_context (sbp_state_t *s, void *context) |
| Set a context to pass to all function pointer calls made by sbp functions This helper function sets a void* context pointer in sbp_state. More...
|
|
s8 | sbp_process (sbp_state_t *s, s32(*read)(u8 *buff, u32 n, void *context)) |
| Read and process SBP messages. More...
|
|
s8 | sbp_process_payload (sbp_state_t *s, u16 sender_id, u16 msg_type, u8 msg_len, u8 payload[]) |
| Directly process a SBP message. More...
|
|
s8 | sbp_send_message (sbp_state_t *s, u16 msg_type, u16 sender_id, u8 len, u8 *payload, s32(*write)(u8 *buff, u32 n, void *context)) |
| Send SBP messages. More...
|
|
#define SBP_PREAMBLE 0x55 |
Definition at line 16 of file sbp.c.