new retval for permission errors

This commit is contained in:
Robin Müller 2022-08-31 13:26:44 +02:00
parent 80e8511a43
commit 0de7b66218
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
2 changed files with 16 additions and 15 deletions

View File

@ -28,11 +28,11 @@ struct LocalEntityCfg {
struct RemoteEntityCfg {
EntityId remoteId;
size_t maxFileSegmentLen;
bool closureRequested;
bool crcOnTransmission;
TransmissionModes defaultTransmissionMode;
ChecksumType defaultChecksum;
size_t maxFileSegmentLen = 2048;
bool closureRequested = false;
bool crcOnTransmission = false;
TransmissionModes defaultTransmissionMode = TransmissionModes::UNACKNOWLEDGED;
ChecksumType defaultChecksum = ChecksumType::NULL_CHECKSUM;
const uint8_t version = CFDP_VERSION_2;
};

View File

@ -47,20 +47,21 @@ class HasFileSystemIF {
//! [EXPORT] : Invalid parameters like file name or repository path
static constexpr ReturnValue_t INVALID_PARAMETERS = MAKE_RETURN_CODE(5);
static constexpr ReturnValue_t FILE_DOES_NOT_EXIST = MAKE_RETURN_CODE(7);
static constexpr ReturnValue_t FILE_ALREADY_EXISTS = MAKE_RETURN_CODE(8);
static constexpr ReturnValue_t NOT_A_FILE = MAKE_RETURN_CODE(9);
static constexpr ReturnValue_t FILE_LOCKED = MAKE_RETURN_CODE(10);
static constexpr ReturnValue_t FILE_DOES_NOT_EXIST = MAKE_RETURN_CODE(10);
static constexpr ReturnValue_t FILE_ALREADY_EXISTS = MAKE_RETURN_CODE(11);
static constexpr ReturnValue_t NOT_A_FILE = MAKE_RETURN_CODE(12);
static constexpr ReturnValue_t FILE_LOCKED = MAKE_RETURN_CODE(13);
static constexpr ReturnValue_t PERMISSION_DENIED = MAKE_RETURN_CODE(14);
static constexpr ReturnValue_t DIRECTORY_DOES_NOT_EXIST = MAKE_RETURN_CODE(15);
static constexpr ReturnValue_t DIRECTORY_ALREADY_EXISTS = MAKE_RETURN_CODE(16);
static constexpr ReturnValue_t NOT_A_DIRECTORY = MAKE_RETURN_CODE(17);
static constexpr ReturnValue_t DIRECTORY_NOT_EMPTY = MAKE_RETURN_CODE(18);
static constexpr ReturnValue_t DIRECTORY_DOES_NOT_EXIST = MAKE_RETURN_CODE(21);
static constexpr ReturnValue_t DIRECTORY_ALREADY_EXISTS = MAKE_RETURN_CODE(22);
static constexpr ReturnValue_t NOT_A_DIRECTORY = MAKE_RETURN_CODE(23);
static constexpr ReturnValue_t DIRECTORY_NOT_EMPTY = MAKE_RETURN_CODE(24);
//! [EXPORT] : P1: Sequence number missing
static constexpr ReturnValue_t SEQUENCE_PACKET_MISSING_WRITE = MAKE_RETURN_CODE(15);
static constexpr ReturnValue_t SEQUENCE_PACKET_MISSING_WRITE = MAKE_RETURN_CODE(30);
//! [EXPORT] : P1: Sequence number missing
static constexpr ReturnValue_t SEQUENCE_PACKET_MISSING_READ = MAKE_RETURN_CODE(16);
static constexpr ReturnValue_t SEQUENCE_PACKET_MISSING_READ = MAKE_RETURN_CODE(31);
virtual ~HasFileSystemIF() = default;