diff options
Diffstat (limited to 'test/pbdrv/cmd.h')
-rw-r--r-- | test/pbdrv/cmd.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/pbdrv/cmd.h b/test/pbdrv/cmd.h new file mode 100644 index 0000000..52bee37 --- /dev/null +++ b/test/pbdrv/cmd.h @@ -0,0 +1,32 @@ +#pragma once + +#include "pb-types.h" + +static const pb_cmd_req_read_t expected_req_read = { + .propid = 0, +}; + +static const pb_cmd_res_read_t expected_res_read = { + .propid = 0, + .value = (uint8_t[]) { 0x00, }, + ._value_size = 1, +}; + +static const pb_cmd_req_write_t expected_req_write = { + .propid = 0, + .value = (uint8_t[]) { 0x00, }, + ._value_size = 1, +}; + +static const pb_cmd_req_state_t expected_req_state = { + .state = PB_GS_PLAYING, +}; + +static const pb_cmd_res_state_t expected_res_state = { + .state = PB_GS_IDLE, +}; + +static const pb_cmd_req_set_state_t expected_req_set_state ={ + .state = PB_GS_PLAYING, +}; + |