Status.msg 855 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Description the status of a module or a device
  2. Header header
  3. string name
  4. int32 id
  5. # -----------------------------------
  6. uint32 state
  7. # State is described by several parts:
  8. # B0: Extra
  9. # B1: Reserved
  10. # B2: Reserved
  11. # B3.L: Working state
  12. # B3.H: Basic State
  13. # ------------------------------------
  14. uint32 UNDEFINED = 0 # Undefined
  15. # ------------------------------------
  16. uint32 BASIC_MASK = 4026531840 # 0xF0000000
  17. uint32 NORMAL = 268435456 # 0x10000000
  18. uint32 OFFLINE = 536870912 # 0x20000000
  19. uint32 DISABLE = 805306368 # 0x30000000
  20. # ------------------------------------
  21. uint32 WORKING_MASK = 251658240 # 0x0F000000
  22. uint32 FREE = 16777216 # 0x01000000
  23. uint32 BUSY = 33554432 # 0x02000000
  24. uint32 WAITING = 50331648 # 0x03000000
  25. # ------------------------------------
  26. uint32 EXTRA_MASK = 255 # 0xFF