aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/ic_reg_maps/gen_ads62p44_regs.py
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/ic_reg_maps/gen_ads62p44_regs.py')
-rwxr-xr-xhost/lib/ic_reg_maps/gen_ads62p44_regs.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/host/lib/ic_reg_maps/gen_ads62p44_regs.py b/host/lib/ic_reg_maps/gen_ads62p44_regs.py
index df5c0c66c..fd929e555 100755
--- a/host/lib/ic_reg_maps/gen_ads62p44_regs.py
+++ b/host/lib/ic_reg_maps/gen_ads62p44_regs.py
@@ -92,13 +92,13 @@ decimation_filter_bands 29[0:1] 0
# Template for methods in the body of the struct
########################################################################
BODY_TMPL="""\
-boost::uint8_t get_reg(boost::uint8_t addr){
- boost::uint8_t reg = 0;
+uint8_t get_reg(uint8_t addr){
+ uint8_t reg = 0;
switch(addr){
% for addr in sorted(set(map(lambda r: r.get_addr(), regs))):
case ${addr}:
% for reg in filter(lambda r: r.get_addr() == addr, regs):
- reg |= (boost::uint8_t(${reg.get_name()}) & ${reg.get_mask()}) << ${reg.get_shift()};
+ reg |= (uint8_t(${reg.get_name()}) & ${reg.get_mask()}) << ${reg.get_shift()};
% endfor
break;
% endfor
@@ -106,12 +106,12 @@ boost::uint8_t get_reg(boost::uint8_t addr){
return reg;
}
-boost::uint16_t get_write_reg(boost::uint8_t addr){
- return (boost::uint16_t(addr) << 8) | get_reg(addr);
+uint16_t get_write_reg(uint8_t addr){
+ return (uint16_t(addr) << 8) | get_reg(addr);
}
-boost::uint16_t get_read_reg(boost::uint8_t addr){
- return (boost::uint16_t(addr) << 8) | (1 << 7);
+uint16_t get_read_reg(uint8_t addr){
+ return (uint16_t(addr) << 8) | (1 << 7);
}
"""