Skip to content
Merged
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
24 changes: 12 additions & 12 deletions Fw/Types/Types.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ module Fw {
type PolyType

@ Serialization status
enum SerialStatus {
enum SerialStatus : U8 {
OK, @< Serialization operation succeeded
FORMAT_ERROR @< Data was the wrong format (e.g. wrong packet type)
NO_ROOM_LEFT @< No room left in the buffer to serialize data
}

@ Deserialization status
enum DeserialStatus {
enum DeserialStatus : U8 {
OK = 0
BUFFER_EMPTY = 3 @< Deserialization buffer was empty when trying to read data
FORMAT_ERROR = 4 @< Deserialization data had incorrect values (unexpected data types)
Expand All @@ -23,62 +23,62 @@ module Fw {
}

@ Enabled and disabled states
enum Enabled {
enum Enabled : U8 {
DISABLED @< Disabled state
ENABLED @< Enabled state
}

@ On and off states
enum On {
enum On : U8 {
OFF @< Off state
ON @< On state
}

@ Logic states
enum Logic {
enum Logic : U8 {
LOW @< Logic low state
HIGH @< Logic high state
}

@ Open and closed states
enum Open {
enum Open : U8 {
CLOSED @< Closed state
OPEN @< Open state
}

@ Direction states
enum Direction {
enum Direction : U8 {
IN @< In direction
OUT @< Out direction
INOUT @< In/Out direction
}

@ Active and inactive states
enum Active {
enum Active : U8 {
INACTIVE @< Inactive state
ACTIVE @< Active state
}

@ Health states
enum Health {
enum Health : U8 {
HEALTHY @< Healthy state
SICK @< Sick state
FAILED @< Failed state
}

@ Success/Failure
enum Success {
enum Success : U8 {
FAILURE @< Representing failure
SUCCESS @< Representing success
}

@ Wait or don't wait for something
enum Wait {
enum Wait : U8 {
WAIT @< Wait for something
NO_WAIT @< Don't wait for something
}

enum Completed {
enum Completed : U8 {
COMPLETED @< Completed successfully
CANCELED @< Canceled before completion
FAILED @< Failed to complete
Expand Down
Loading