diff --git a/software/scripts/axiom_i2c.func b/software/scripts/axiom_i2c.func index 0469fa7b..691f8899 100644 --- a/software/scripts/axiom_i2c.func +++ b/software/scripts/axiom_i2c.func @@ -23,7 +23,7 @@ axiom_i2c_set() { } axiom_i2c_bit_get() { - val=`i2c_get $1 $2` + val=`axiom_i2c_get $1 $2` msk=`bit_msk $3` bit=$(( (val & msk) >> $3 )) printf "%d" $bit @@ -31,33 +31,33 @@ axiom_i2c_bit_get() { } axiom_i2c_bit_set() { - val=`i2c_get $1 $2` + val=`axiom_i2c_get $1 $2` msk=`bit_msk $3` val=$(( val | msk )) - i2c_set $1 $2 $val + axiom_i2c_set $1 $2 $val } axiom_i2c_bit_clr() { - val=`i2c_get $1 $2` + val=`axiom_i2c_get $1 $2` msk=`bit_msk $3` val=$(( val & ~msk )) - i2c_set $1 $2 $val + axiom_i2c_set $1 $2 $val } axiom_i2c_map() { - val=`i2c_get $1 $2` + val=`axiom_i2c_get $1 $2` val=`bit_map $val $3 $4 $5` - i2c_set $1 $2 $val + axiom_i2c_set $1 $2 $val } axiom_i2c_bit() { [ -n "$4" ] && \ - i2c_map $1 $2 $3 $3 $4 || - i2c_bit_get $1 $2 $3 + axiom_i2c_map $1 $2 $3 $3 $4 || + axiom_i2c_bit_get $1 $2 $3 } axiom_i2c_mbv() { - val=`i2c_get $1 $2` + val=`axiom_i2c_get $1 $2` msk=`bit_msk $3 $4` val=$(( (val & msk) >> $3 )) printf "%d" $val diff --git a/software/scripts/axiom_i2c0.func b/software/scripts/axiom_i2c0.func index 5ef185c7..b37d072e 100644 --- a/software/scripts/axiom_i2c0.func +++ b/software/scripts/axiom_i2c0.func @@ -18,7 +18,7 @@ axiom_i2c0_setw() { axiom_i2c0_bit_get() { - val=`i2c0_get $1 $2` + val=`axiom_i2c0_get $1 $2` msk=`bit_msk $3` bit=$(( (val & msk) >> $3 )) printf "%d" $bit @@ -26,33 +26,33 @@ axiom_i2c0_bit_get() { } axiom_i2c0_bit_set() { - val=`i2c0_get $1 $2` + val=`axiom_i2c0_get $1 $2` msk=`bit_msk $3` val=$(( val | msk )) - i2c0_set $1 $2 $val + axiom_i2c0_set $1 $2 $val } axiom_i2c0_bit_clr() { - val=`i2c0_get $1 $2` + val=`axiom_i2c0_get $1 $2` msk=`bit_msk $3` val=$(( val & ~msk )) - i2c0_set $1 $2 $val + axiom_i2c0_set $1 $2 $val } axiom_i2c0_map() { - val=`i2c0_get $1 $2` + val=`axiom_i2c0_get $1 $2` val=`bit_map $val $3 $4 $5` - i2c0_set $1 $2 $val + axiom_i2c0_set $1 $2 $val } axiom_i2c0_bit() { [ -n "$4" ] && \ - i2c0_map $1 $2 $3 $3 $4 || - i2c0_bit_get $1 $2 $3 + axiom_i2c0_map $1 $2 $3 $3 $4 || + axiom_i2c0_bit_get $1 $2 $3 } axiom_i2c0_mbv() { - val=`i2c0_get $1 $2` + val=`axiom_i2c0_get $1 $2` msk=`bit_msk $3 $4` val=$(( (val & msk) >> $3 )) printf "%d" $val diff --git a/software/scripts/axiom_i2c1.func b/software/scripts/axiom_i2c1.func index f0e622a8..df14a51b 100644 --- a/software/scripts/axiom_i2c1.func +++ b/software/scripts/axiom_i2c1.func @@ -17,7 +17,7 @@ axiom_i2c1_setw() { } axiom_i2c1_bit_get() { - val=`i2c1_get $1 $2` + val=`axiom_i2c1_get $1 $2` msk=`bit_msk $3` bit=$(( (val & msk) >> $3 )) printf "%d" $bit @@ -25,33 +25,33 @@ axiom_i2c1_bit_get() { } axiom_i2c1_bit_set() { - val=`i2c1_get $1 $2` + val=`axiom_i2c1_get $1 $2` msk=`bit_msk $3` val=$(( val | msk )) - i2c1_set $1 $2 $val + axiom_i2c1_set $1 $2 $val } axiom_i2c1_bit_clr() { - val=`i2c1_get $1 $2` + val=`axiom_i2c1_get $1 $2` msk=`bit_msk $3` val=$(( val & ~msk )) - i2c1_set $1 $2 $val + axiom_i2c1_set $1 $2 $val } axiom_i2c1_map() { - val=`i2c1_get $1 $2` + val=`axiom_i2c1_get $1 $2` val=`bit_map $val $3 $4 $5` - i2c1_set $1 $2 $val + axiom_i2c1_set $1 $2 $val } axiom_i2c1_bit() { [ -n "$4" ] && \ - i2c1_map $1 $2 $3 $3 $4 || - i2c1_bit_get $1 $2 $3 + axiom_i2c1_map $1 $2 $3 $3 $4 || + axiom_i2c1_bit_get $1 $2 $3 } axiom_i2c1_mbv() { - val=`i2c1_get $1 $2` + val=`axiom_i2c1_get $1 $2` msk=`bit_msk $3 $4` val=$(( (val & msk) >> $3 )) printf "%d" $val diff --git a/software/scripts/axiom_i2c2.func b/software/scripts/axiom_i2c2.func index d07305e9..3f6ae5e6 100644 --- a/software/scripts/axiom_i2c2.func +++ b/software/scripts/axiom_i2c2.func @@ -9,7 +9,7 @@ axiom_i2c2_set() { } axiom_i2c2_bit_get() { - local val=`i2c2_get $1 $2` + local val=`axiom_i2c2_get $1 $2` local msk=`bit_msk $3` local bit=$(( (val & msk) >> $3 )) printf "%d" $bit @@ -17,33 +17,33 @@ axiom_i2c2_bit_get() { } axiom_i2c2_bit_set() { - local val=`i2c2_get $1 $2` + local val=`axiom i2c2_get $1 $2` local msk=`bit_msk $3` val=$(( val | msk )) - i2c2_set $1 $2 $val + axiom_i2c2_set $1 $2 $val } axiom_i2c2_bit_clr() { - local val=`i2c2_get $1 $2` + local val=`axiom_i2c2_get $1 $2` local msk=`bit_msk $3` val=$(( val & ~msk )) - i2c2_set $1 $2 $val + axiom_i2c2_set $1 $2 $val } axiom_i2c2_map() { - local val=`i2c2_get $1 $2` + local val=`axiom_i2c2_get $1 $2` val=`bit_map $val $3 $4 $5` - i2c2_set $1 $2 $val + axiom_i2c2_set $1 $2 $val } axiom_i2c2_bit() { [ -n "$4" ] && \ - i2c2_map $1 $2 $3 $3 $4 || - i2c2_bit_get $1 $2 $3 + axiom_i2c2_map $1 $2 $3 $3 $4 || + axiom_i2c2_bit_get $1 $2 $3 } axiom_i2c2_mbv() { - local val=`i2c2_get $1 $2` + local val=`axiom_i2c2_get $1 $2` local msk=`bit_msk $3 $4` val=$(( (val & msk) >> $3 )) printf "%d" $val