Skip to content

Commit

Permalink
Add useful axes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alldred committed Nov 13, 2024
1 parent 78baa51 commit e51d25a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bucket/axisutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,15 @@ def val_range(msb_val):
msb_dict = {f"0x{v:0{pad}_x}": val_range(v) for v in msb_vals}

return msb_dict

def enabled():
return {"Enabled": 1, "Disabled": 0}

def disabled():
return {"Disabled": 1, "Enabled": 0}

def read_write():
return {"WRITE": 1, "READ": 0}

def polarity():
return {"Negative": 1, "Positive": 0}

0 comments on commit e51d25a

Please sign in to comment.