github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/ardupilotmega/enum_mav_ftp_opcode.go (about)

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll,dupl,gocritic
     3  package ardupilotmega
     4  
     5  import (
     6  	"github.com/bluenviron/gomavlib/v2/pkg/dialects/common"
     7  )
     8  
     9  // MAV FTP opcodes: https://mavlink.io/en/services/ftp.html
    10  type MAV_FTP_OPCODE = common.MAV_FTP_OPCODE
    11  
    12  const (
    13  	// None. Ignored, always ACKed
    14  	MAV_FTP_OPCODE_NONE MAV_FTP_OPCODE = common.MAV_FTP_OPCODE_NONE
    15  	// TerminateSession: Terminates open Read session
    16  	MAV_FTP_OPCODE_TERMINATESESSION MAV_FTP_OPCODE = common.MAV_FTP_OPCODE_TERMINATESESSION
    17  	// ResetSessions: Terminates all open read sessions
    18  	MAV_FTP_OPCODE_RESETSESSION MAV_FTP_OPCODE = common.MAV_FTP_OPCODE_RESETSESSION
    19  	// ListDirectory. List files and directories in path from offset
    20  	MAV_FTP_OPCODE_LISTDIRECTORY MAV_FTP_OPCODE = common.MAV_FTP_OPCODE_LISTDIRECTORY
    21  	// OpenFileRO: Opens file at path for reading, returns session
    22  	MAV_FTP_OPCODE_OPENFILERO MAV_FTP_OPCODE = common.MAV_FTP_OPCODE_OPENFILERO
    23  	// ReadFile: Reads size bytes from offset in session
    24  	MAV_FTP_OPCODE_READFILE MAV_FTP_OPCODE = common.MAV_FTP_OPCODE_READFILE
    25  	// CreateFile: Creates file at path for writing, returns session
    26  	MAV_FTP_OPCODE_CREATEFILE MAV_FTP_OPCODE = common.MAV_FTP_OPCODE_CREATEFILE
    27  	// WriteFile: Writes size bytes to offset in session
    28  	MAV_FTP_OPCODE_WRITEFILE MAV_FTP_OPCODE = common.MAV_FTP_OPCODE_WRITEFILE
    29  	// RemoveFile: Remove file at path
    30  	MAV_FTP_OPCODE_REMOVEFILE MAV_FTP_OPCODE = common.MAV_FTP_OPCODE_REMOVEFILE
    31  	// CreateDirectory: Creates directory at path
    32  	MAV_FTP_OPCODE_CREATEDIRECTORY MAV_FTP_OPCODE = common.MAV_FTP_OPCODE_CREATEDIRECTORY
    33  	// RemoveDirectory: Removes directory at path. The directory must be empty.
    34  	MAV_FTP_OPCODE_REMOVEDIRECTORY MAV_FTP_OPCODE = common.MAV_FTP_OPCODE_REMOVEDIRECTORY
    35  	// OpenFileWO: Opens file at path for writing, returns session
    36  	MAV_FTP_OPCODE_OPENFILEWO MAV_FTP_OPCODE = common.MAV_FTP_OPCODE_OPENFILEWO
    37  	// TruncateFile: Truncate file at path to offset length
    38  	MAV_FTP_OPCODE_TRUNCATEFILE MAV_FTP_OPCODE = common.MAV_FTP_OPCODE_TRUNCATEFILE
    39  	// Rename: Rename path1 to path2
    40  	MAV_FTP_OPCODE_RENAME MAV_FTP_OPCODE = common.MAV_FTP_OPCODE_RENAME
    41  	// CalcFileCRC32: Calculate CRC32 for file at path
    42  	MAV_FTP_OPCODE_CALCFILECRC MAV_FTP_OPCODE = common.MAV_FTP_OPCODE_CALCFILECRC
    43  	// BurstReadFile: Burst download session file
    44  	MAV_FTP_OPCODE_BURSTREADFILE MAV_FTP_OPCODE = common.MAV_FTP_OPCODE_BURSTREADFILE
    45  	// ACK: ACK response
    46  	MAV_FTP_OPCODE_ACK MAV_FTP_OPCODE = common.MAV_FTP_OPCODE_ACK
    47  	// NAK: NAK response
    48  	MAV_FTP_OPCODE_NAK MAV_FTP_OPCODE = common.MAV_FTP_OPCODE_NAK
    49  )