aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/ic_reg_maps/gen_ad9777_regs.py
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/ic_reg_maps/gen_ad9777_regs.py')
-rwxr-xr-xhost/lib/ic_reg_maps/gen_ad9777_regs.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/host/lib/ic_reg_maps/gen_ad9777_regs.py b/host/lib/ic_reg_maps/gen_ad9777_regs.py
index 514283409..b1facfd79 100755
--- a/host/lib/ic_reg_maps/gen_ad9777_regs.py
+++ b/host/lib/ic_reg_maps/gen_ad9777_regs.py
@@ -88,13 +88,13 @@ qdac_ioffset_direction 0xC[7] 0 out_a, out_b
# 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
@@ -102,12 +102,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);
}
"""