Skip to content

config variables description (structure format, bitmasks...)#20

Open
m-kozlowski wants to merge 3 commits intoAsmageddon:masterfrom
m-kozlowski:docs_variables
Open

config variables description (structure format, bitmasks...)#20
m-kozlowski wants to merge 3 commits intoAsmageddon:masterfrom
m-kozlowski:docs_variables

Conversation

@m-kozlowski
Copy link

No description provided.

@Asmageddon
Copy link
Owner

What exactly is this? Is it based on the AI outputs you've posted previously, or is it something you have worked with and verified to be correct?

@m-kozlowski
Copy link
Author

AI outputs you've posted previously

Did I? o_O

But yes, this time it's been worked out with quite significant use of Claude, but wisely. He quite accurately sorted out the variable descriptors from globals table. And it served as an input to cobble together pretty cool (but ugly) variable dumper;)

  0x1B5 var=0x01D3 @0x08007EC0 +0x02FCC  fl=0x0007[         ACT|VIS|EDT]  def=     4.0  [4.0 .. 20.0 step 0.2] [cmH2O]  →0x00F4 "Min Pressure"
  0x1B6 var=0x01D4 @0x08007EDC +0x02FE8  fl=0x0007[         ACT|VIS|EDT]  def=     4.0  [4.0 .. 20.0 step 0.2] [cmH2O]  →0x00F4 "Start Pressure"
  0x1B7 var=0x01D5 @0x08007EF8 +0x03004  fl=0x0006[             VIS|EDT]  def=     4.0  [4.0 .. 25.0 step 0.2] [cmH2O]  →0x0135 "Min EPAP"
  0x1B8 var=0x01D6 @0x08007F14 +0x03020  fl=0x0006[             VIS|EDT]  def=    25.0  [4.0 .. 25.0 step 0.2] [cmH2O]  →0x0135 "Max IPAP"
  0x1B9 var=0x01D7 @0x08007F30 +0x0303C  fl=0x0006[             VIS|EDT]  def=     4.0  [0.0 .. 10.0 step 0.2] [cmH2O]  →0x0135 "PS"
  0x1BA var=0x01D8 @0x08007F4C +0x03058  fl=0x0006[             VIS|EDT]  def=     4.0  [4.0 .. 25.0 step 0.2] [cmH2O]  →0x0135 "Start EPAP"
  0x1BB var=0x01D9 @0x08007F68 +0x03074  fl=0x0006[             VIS|EDT]  def=     4.0  [2.0 .. 25.0 step 0.2] [cmH2O]  →0x0115 "EPAP"
  0x1BC var=0x01DA @0x08007F84 +0x03090  fl=0x0006[             VIS|EDT]  def=     4.0  [2.0 .. 25.0 step 0.2] [cmH2O]  →0x0115 "Start EPAP"
  0x1BD var=0x01DB @0x08007FA0 +0x030AC  fl=0x0006[             VIS|EDT]  def=     300  [150 .. 900 step 50] [ms]  →0x0115 "Rise Time"
  0x1BE var=0x01DC @0x08007FBC +0x030C8  fl=0x0006[             VIS|EDT]  def=     0.3  [0.1 .. 4.0 step 0.1] [s]  →0x0114 "Ti Min"
  0x1BF var=0x01DD @0x08007FD8 +0x030E4  fl=0x0006[             VIS|EDT]  def=     2.0  [0.3 .. 4.0 step 0.1] [s]  →0x0114 "Ti Max"
  0x1C0 var=0x01DE @0x08007FF4 +0x03100  fl=0x0006[             VIS|EDT]  def=    10.0  [5.0 .. 50.0 step 1.0] [bpm]  →0x0114 "Resp. Rate"
  0x1C1 var=0x01DF @0x08008010 +0x0311C  fl=0x0006[             VIS|EDT]  def=     2.0  [0.3 .. 4.0 step 0.1] [s]  →0x0114 "Ti"
  0x1C2 var=0x01E0 @0x0800802C +0x03138  fl=0x0006[             VIS|EDT]  def=     5.0  [4.0 .. 15.0 step 0.2] [cmH2O]  →0x0136 "EPAP"
  0x1C3 var=0x01E1 @0x08008048 +0x03154  fl=0x0006[             VIS|EDT]  def=     3.0  [0.0 .. 6.0 step 0.2] [cmH2O]  →0x0136 "Min PS"
  0x1C4 var=0x01E2 @0x08008064 +0x03170  fl=0x0006[             VIS|EDT]  def=    15.0  [5.0 .. 20.0 step 0.2] [cmH2O]  →0x0136 "Max PS"
  0x1C5 var=0x01E3 @0x08008080 +0x0318C  fl=0x0006[             VIS|EDT]  def=     4.0  [4.0 .. 15.0 step 0.2] [cmH2O]  →0x0136 "Start EPAP"
  0x1C6 var=0x01E4 @0x0800809C +0x031A8  fl=0x0006[             VIS|EDT]  def=    15.0  [4.0 .. 15.0 step 0.2] [cmH2O]  →0x0127 "Max EPAP"
  0x1C7 var=0x01E5 @0x080080B8 +0x031C4  fl=0x0006[             VIS|EDT]  def=     4.0  [4.0 .. 15.0 step 0.2] [cmH2O]  →0x0127 "Min EPAP"
  0x1C8 var=0x01E6 @0x080080D4 +0x031E0  fl=0x0006[             VIS|EDT]  def=     3.0  [0.0 .. 6.0 step 0.2] [cmH2O]  →0x0127 "Min PS"
  0x1C9 var=0x01E7 @0x080080F0 +0x031FC  fl=0x0006[             VIS|EDT]  def=    15.0  [5.0 .. 20.0 step 0.2] [cmH2O]  →0x0127 "Max PS"
  0x1CA var=0x01E8 @0x0800810C +0x03218  fl=0x0006[             VIS|EDT]  def=     4.0  [4.0 .. 15.0 step 0.2] [cmH2O]  →0x0127 "Start EPAP"
  0x1CB var=0x01E9 @0x08008128 +0x03234  fl=0x0006[             VIS|EDT]  def=     4.0  [2.0 .. 25.0 step 0.2] [cmH2O]  →0x0128 "EPAP"
  0x1CC var=0x01EA @0x08008144 +0x03250  fl=0x0006[             VIS|EDT]  def=     2.0  [0.0 .. 20.0 step 0.2] [cmH2O]  →0x0128 "Min PS"
  0x1CD var=0x01EB @0x08008160 +0x0326C  fl=0x0006[             VIS|EDT]  def=    15.0  [0.0 .. 28.0 step 0.2] [cmH2O]  →0x0128 "Max PS"
  0x1CE var=0x01EC @0x0800817C +0x03288  fl=0x0006[             VIS|EDT]  def=    15.0  [8.0 .. 30.0 step 1.0] [bpm]  →0x0128 "Target Pt Rate"
  0x1CF var=0x01ED @0x08008198 +0x032A4  fl=0x0006[             VIS|EDT]  def=     5.2  [1.0 .. 30.0 step 0.1] [L/min]  →0x0128 "Target Va"
  0x1D0 var=0x01EE @0x080081B4 +0x032C0  fl=0x0006[             VIS|EDT]  def=     4.0  [2.0 .. 25.0 step 0.2] [cmH2O]  →0x0128 "Start EPAP"
  0x1D1 var=0x01EF @0x080081D0 +0x032DC  fl=0x0005[             ACT|EDT]  def=      10  [5 .. 45 step 5] [min.]  →0x0168 "Ramp Time"

@m-kozlowski
Copy link
Author

Rationale here is that understanding how firmware handles variable descriptors (when something is visible, where the text labels come from or how to construct entries that are either enum or float range...) should make it possible to reuse existing GUI framework to add extra settings in menu instead of reimplementing it using low level emWin functions.

Updated descriptions for variable descriptor tables and corrected types.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants