#include "common.h"
Go to the source code of this file.
Classes | |
struct | sbp_msg_callbacks_node |
struct | sbp_state_t |
Defines | |
#define | SBP_CALLBACK_ERROR -1 |
#define | SBP_CRC_ERROR -2 |
#define | SBP_NULL_ERROR -4 |
#define | SBP_OK 0 |
#define | SBP_OK_CALLBACK_EXECUTED 1 |
#define | SBP_OK_CALLBACK_UNDEFINED 2 |
#define | SBP_SEND_ERROR -3 |
Typedefs | |
typedef void(* | sbp_msg_callback_t )(u16 sender_id, u8 len, u8 msg[], void *context) |
typedef struct sbp_msg_callbacks_node | sbp_msg_callbacks_node_t |
Functions | |
void | sbp_clear_callbacks (sbp_state_t *s) |
sbp_msg_callbacks_node_t * | sbp_find_callback (sbp_state_t *s, u16 msg_type) |
s8 | sbp_process (sbp_state_t *s, u32(*read)(u8 *buff, u32 n, void *context)) |
s8 | sbp_register_callback (sbp_state_t *s, u16 msg_type, sbp_msg_callback_t cb, void *context, sbp_msg_callbacks_node_t *node) |
s8 | sbp_send_message (sbp_state_t *s, u16 msg_type, u16 sender_id, u8 len, u8 *payload, u32(*write)(u8 *buff, u32 n, void *context)) |
void | sbp_state_init (sbp_state_t *s) |
void | sbp_state_set_io_context (sbp_state_t *s, void *context) |