Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions fsw/platform_inc/sbn_error.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#ifndef SBN_ERROR_H
#define SBN_ERROR_H

/* General status codes */
#define SBN_SUCCESS (1u)
#define SBN_ERROR -1
#define SBN_IF_EMPTY -2
#define SBN_NOT_IMPLEMENTED -3
#define SBN_NO_PEER -4
#define SBN_INVALID_VERSION -5
#define SBN_NULL_OUTLET -6

#endif /* SBN_ERROR_H */
10 changes: 2 additions & 8 deletions fsw/platform_inc/sbn_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,7 @@
* sbn_platform_cfg.h instead.
*/

typedef enum
{
SBN_SUCCESS = 0,
SBN_ERROR,
SBN_IF_EMPTY,
SBN_NOT_IMPLEMENTED
} SBN_Status_t;
typedef int32 SBN_Status_t;

typedef enum
{
Expand Down Expand Up @@ -95,7 +89,7 @@ typedef struct

/* most/all scalars should be typedef'd for readability and type checking */
typedef uint32 SBN_MsgSz_t;
typedef uint8 SBN_MsgType_t;
typedef SBN_MsgTypeEnum_t SBN_MsgType_t;
typedef uint8 SBN_ModuleIdx_t;
typedef uint8 SBN_NetIdx_t;
typedef uint16 SBN_PeerIdx_t;
Expand Down
Loading
Loading