Go to the source code of this file.
Functions | |
u32 | dummy_read (u8 *buff, u32 n, void *context) |
u32 | dummy_read_single_byte (u8 *buff, u32 n, void *context) |
void | dummy_reset () |
u32 | dummy_write (u8 *buff, u32 n, void *context) |
u32 | dummy_write_single_byte (u8 *buff, u32 n, void *context) |
void | logging_callback (u16 sender_id, u8 len, u8 msg[], void *context) |
void | logging_reset () |
void | printy_callback (u16 sender_id, u8 len, u8 msg[], void *context) |
END_TEST Suite * | sbp_suite (void) |
START_TEST (test_sbp_process) | |
END_TEST | START_TEST (test_sbp_send_message) |
END_TEST | START_TEST (test_callbacks) |
void | test_callback (u16 sender_id, u8 len, u8 msg[], void *context) |
void | test_callback2 (u16 sender_id, u8 len, u8 msg[], void *context) |
Variables | |
u8 | dummy_buff [1024] |
int | DUMMY_MEMORY_FOR_CALLBACKS = 0xdeadbeef |
int | DUMMY_MEMORY_FOR_IO = 0xdead0000 |
u32 | dummy_rd = 0 |
u32 | dummy_wr = 0 |
void * | last_context |
void * | last_io_context |
u8 | last_len |
u8 | last_msg [256] |
u16 | last_sender_id |
u32 | n_callbacks_logged |
u32 dummy_read | ( | u8 * | buff, |
u32 | n, | ||
void * | context | ||
) |
Definition at line 31 of file check_sbp.c.
u32 dummy_read_single_byte | ( | u8 * | buff, |
u32 | n, | ||
void * | context | ||
) |
Definition at line 40 of file check_sbp.c.
void dummy_reset | ( | ) |
Definition at line 16 of file check_sbp.c.
u32 dummy_write | ( | u8 * | buff, |
u32 | n, | ||
void * | context | ||
) |
Definition at line 22 of file check_sbp.c.
u32 dummy_write_single_byte | ( | u8 * | buff, |
u32 | n, | ||
void * | context | ||
) |
Definition at line 49 of file check_sbp.c.
void logging_callback | ( | u16 | sender_id, |
u8 | len, | ||
u8 | msg[], | ||
void * | context | ||
) |
Definition at line 83 of file check_sbp.c.
void logging_reset | ( | ) |
Definition at line 76 of file check_sbp.c.
void printy_callback | ( | u16 | sender_id, |
u8 | len, | ||
u8 | msg[], | ||
void * | context | ||
) |
Definition at line 58 of file check_sbp.c.
END_TEST Suite* sbp_suite | ( | void | ) |
Definition at line 419 of file check_sbp.c.
START_TEST | ( | test_sbp_process | ) |
Definition at line 111 of file check_sbp.c.
END_TEST START_TEST | ( | test_sbp_send_message | ) |
Definition at line 296 of file check_sbp.c.
END_TEST START_TEST | ( | test_callbacks | ) |
Definition at line 337 of file check_sbp.c.
void test_callback | ( | u16 | sender_id, |
u8 | len, | ||
u8 | msg[], | ||
void * | context | ||
) |
Definition at line 94 of file check_sbp.c.
void test_callback2 | ( | u16 | sender_id, |
u8 | len, | ||
u8 | msg[], | ||
void * | context | ||
) |
Definition at line 102 of file check_sbp.c.
u8 dummy_buff[1024] |
Definition at line 13 of file check_sbp.c.
int DUMMY_MEMORY_FOR_CALLBACKS = 0xdeadbeef |
Definition at line 8 of file check_sbp.c.
int DUMMY_MEMORY_FOR_IO = 0xdead0000 |
Definition at line 9 of file check_sbp.c.
Definition at line 12 of file check_sbp.c.
Definition at line 11 of file check_sbp.c.
void* last_context |
Definition at line 73 of file check_sbp.c.
void* last_io_context |
Definition at line 14 of file check_sbp.c.
Definition at line 71 of file check_sbp.c.
Definition at line 72 of file check_sbp.c.
Definition at line 70 of file check_sbp.c.
Definition at line 69 of file check_sbp.c.