libsbp  v2.4.7
file_io.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2018 Swift Navigation Inc.
3  * Contact: Swift Navigation <dev@swiftnav.com>
4  *
5  * This source is subject to the license found in the file 'LICENSE' which must
6  * be be distributed together with this source. All other rights reserved.
7  *
8  * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
9  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
10  * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
11  */
12 
13 /*****************************************************************************
14  * Automatically generated from yaml/swiftnav/sbp/file_io.yaml
15  * with generate.py. Please do not hand edit!
16  *****************************************************************************/
17 
30 #ifndef LIBSBP_FILE_IO_MESSAGES_H
31 #define LIBSBP_FILE_IO_MESSAGES_H
32 
33 #include "common.h"
34 
35 SBP_PACK_START
36 
37 
49 #define SBP_MSG_FILEIO_READ_REQ 0x00A8
50 typedef struct SBP_ATTR_PACKED {
54  char filename[0];
56 
57 
66 #define SBP_MSG_FILEIO_READ_RESP 0x00A3
67 typedef struct SBP_ATTR_PACKED {
69  u8 contents[0];
71 
72 
86 #define SBP_MSG_FILEIO_READ_DIR_REQ 0x00A9
87 typedef struct SBP_ATTR_PACKED {
91  char dirname[0];
93 
94 
104 #define SBP_MSG_FILEIO_READ_DIR_RESP 0x00AA
105 typedef struct SBP_ATTR_PACKED {
107  u8 contents[0];
109 
110 
118 #define SBP_MSG_FILEIO_REMOVE 0x00AC
119 typedef struct SBP_ATTR_PACKED {
120  char filename[0];
122 
123 
135 #define SBP_MSG_FILEIO_WRITE_REQ 0x00AD
136 typedef struct SBP_ATTR_PACKED {
139  char filename[0];
140  u8 data[0];
142 
143 
152 #define SBP_MSG_FILEIO_WRITE_RESP 0x00AB
153 typedef struct SBP_ATTR_PACKED {
156 
157 
160 SBP_PACK_END
161 
162 #endif /* LIBSBP_FILE_IO_MESSAGES_H */
u32 sequence
Read sequence number.
Definition: file_io.h:106
u32 offset
Offset into the file at which to start writing in bytes [bytes].
Definition: file_io.h:138
u32 offset
The offset to skip the first n elements of the file list.
Definition: file_io.h:89
u32 sequence
Write sequence number.
Definition: file_io.h:154
u32 sequence
Read sequence number.
Definition: file_io.h:68
uint8_t u8
Unsigned 8-bit integer.
Definition: common.h:40
u32 sequence
Read sequence number.
Definition: file_io.h:51
u32 sequence
Read sequence number.
Definition: file_io.h:88
u32 offset
File offset [bytes].
Definition: file_io.h:52
u8 chunk_size
Chunk size to read [bytes].
Definition: file_io.h:53
uint32_t u32
Unsigned 32-bit integer.
Definition: common.h:44
u32 sequence
Write sequence number.
Definition: file_io.h:137