sbp-4.8.0: SwiftNav's SBP Library
CopyrightCopyright (C) 2015-2021 Swift Navigation Inc.
LicenseMIT
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

SwiftNav.SBP.FileIo

Description

< Messages for using device's onboard flash filesystem functionality. This allows data to be stored persistently in the device's program flash with wear-levelling using a simple filesystem interface. The file system interface (CFS) defines an abstract API for reading directories and for reading and writing files.

Note that some of these messages share the same message type ID for both the host request and the device response. >

Synopsis

Documentation

data MsgFileioReadReq Source #

SBP class for message MSG_FILEIO_READ_REQ (0x00A8).

The file read message reads a certain length (up to 255 bytes) from a given offset into a file, and returns the data in a MSG_FILEIO_READ_RESP message where the message length field indicates how many bytes were successfully read. The sequence number in the request will be returned in the response. If the message is invalid, a followup MSG_PRINT message will print "Invalid fileio read message". A device will only respond to this message when it is received from sender ID 0x42.

Constructors

MsgFileioReadReq 

Fields

data MsgFileioReadResp Source #

SBP class for message MSG_FILEIO_READ_RESP (0x00A3).

The file read message reads a certain length (up to 255 bytes) from a given offset into a file, and returns the data in a message where the message length field indicates how many bytes were successfully read. The sequence number in the response is preserved from the request.

Constructors

MsgFileioReadResp 

Fields

data MsgFileioReadDirReq Source #

SBP class for message MSG_FILEIO_READ_DIR_REQ (0x00A9).

The read directory message lists the files in a directory on the device's onboard flash file system. The offset parameter can be used to skip the first n elements of the file list. Returns a MSG_FILEIO_READ_DIR_RESP message containing the directory listings as a NULL delimited list. The listing is chunked over multiple SBP packets. The sequence number in the request will be returned in the response. If message is invalid, a followup MSG_PRINT message will print "Invalid fileio read message". A device will only respond to this message when it is received from sender ID 0x42.

Constructors

MsgFileioReadDirReq 

Fields

Instances

Instances details
FromJSON MsgFileioReadDirReq Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

ToJSON MsgFileioReadDirReq Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Read MsgFileioReadDirReq Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Show MsgFileioReadDirReq Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Binary MsgFileioReadDirReq Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Eq MsgFileioReadDirReq Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

ToSBP MsgFileioReadDirReq Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

data MsgFileioReadDirResp Source #

SBP class for message MSG_FILEIO_READ_DIR_RESP (0x00AA).

The read directory message lists the files in a directory on the device's onboard flash file system. Message contains the directory listings as a NULL delimited list. The listing is chunked over multiple SBP packets and the end of the list is identified by an packet with no entries. The sequence number in the response is preserved from the request.

Constructors

MsgFileioReadDirResp 

Fields

Instances

Instances details
FromJSON MsgFileioReadDirResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

ToJSON MsgFileioReadDirResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Read MsgFileioReadDirResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Show MsgFileioReadDirResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Binary MsgFileioReadDirResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Eq MsgFileioReadDirResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

ToSBP MsgFileioReadDirResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

data MsgFileioRemove Source #

SBP class for message MSG_FILEIO_REMOVE (0x00AC).

The file remove message deletes a file from the file system. If the message is invalid, a followup MSG_PRINT message will print "Invalid fileio remove message". A device will only process this message when it is received from sender ID 0x42.

Constructors

MsgFileioRemove 

Fields

data MsgFileioWriteReq Source #

SBP class for message MSG_FILEIO_WRITE_REQ (0x00AD).

The file write message writes a certain length (up to 255 bytes) of data to a file at a given offset. Returns a copy of the original MSG_FILEIO_WRITE_RESP message to check integrity of the write. The sequence number in the request will be returned in the response. If message is invalid, a followup MSG_PRINT message will print "Invalid fileio write message". A device will only process this message when it is received from sender ID 0x42.

Constructors

MsgFileioWriteReq 

Fields

data MsgFileioWriteResp Source #

SBP class for message MSG_FILEIO_WRITE_RESP (0x00AB).

The file write message writes a certain length (up to 255 bytes) of data to a file at a given offset. The message is a copy of the original MSG_FILEIO_WRITE_REQ message to check integrity of the write. The sequence number in the response is preserved from the request.

Constructors

MsgFileioWriteResp 

Fields

Instances

Instances details
FromJSON MsgFileioWriteResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

ToJSON MsgFileioWriteResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Read MsgFileioWriteResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Show MsgFileioWriteResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Binary MsgFileioWriteResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Eq MsgFileioWriteResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

ToSBP MsgFileioWriteResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

data MsgFileioConfigReq Source #

SBP class for message MSG_FILEIO_CONFIG_REQ (0x1001).

Requests advice on the optimal configuration for a FileIO transfer. Newer version of FileIO can support greater throughput by supporting a large window of FileIO data that can be in-flight during read or write operations.

Constructors

MsgFileioConfigReq 

Fields

Instances

Instances details
FromJSON MsgFileioConfigReq Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

ToJSON MsgFileioConfigReq Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Read MsgFileioConfigReq Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Show MsgFileioConfigReq Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Binary MsgFileioConfigReq Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Eq MsgFileioConfigReq Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

ToSBP MsgFileioConfigReq Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

data MsgFileioConfigResp Source #

SBP class for message MSG_FILEIO_CONFIG_RESP (0x1002).

The advice on the optimal configuration for a FileIO transfer. Newer version of FileIO can support greater throughput by supporting a large window of FileIO data that can be in-flight during read or write operations.

Constructors

MsgFileioConfigResp 

Fields

Instances

Instances details
FromJSON MsgFileioConfigResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

ToJSON MsgFileioConfigResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Read MsgFileioConfigResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Show MsgFileioConfigResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Binary MsgFileioConfigResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

Eq MsgFileioConfigResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo

ToSBP MsgFileioConfigResp Source # 
Instance details

Defined in SwiftNav.SBP.FileIo