summaryrefslogtreecommitdiff
path: root/software
diff options
context:
space:
mode:
Diffstat (limited to 'software')
-rw-r--r--software/hhd70dongle/c1101lib.c2
-rw-r--r--software/hhd70dongle/hhd70dongle.c15
2 files changed, 16 insertions, 1 deletions
diff --git a/software/hhd70dongle/c1101lib.c b/software/hhd70dongle/c1101lib.c
index e5e3edb..57804ca 100644
--- a/software/hhd70dongle/c1101lib.c
+++ b/software/hhd70dongle/c1101lib.c
@@ -108,7 +108,7 @@ void spi_c1101_dump_registers_to_usb(void)
uint8_t debug_sb[6];
spi_cs_enable();
spi_c1101_wait_chip_rdy();
- if (spi_c1101_write_byte_ok_get_status(SPIC1101_ADDR_IOCFG2 | 0x40) < 0)
+ if (spi_c1101_write_byte_ok_get_status(0xC0) < 0)
return;
usb_rawhid_send((uint8_t*)"dump all 46 registers:",255);
for (c=0; c<47; c++)
diff --git a/software/hhd70dongle/hhd70dongle.c b/software/hhd70dongle/hhd70dongle.c
index 46b0305..ffef466 100644
--- a/software/hhd70dongle/hhd70dongle.c
+++ b/software/hhd70dongle/hhd70dongle.c
@@ -103,6 +103,21 @@ int main(void)
usb_rawhid_send((uint8_t*)"c1101 rx bytes:",255);
debug_sprint_int16hex(write_buffer, spi_c1101_read_register(SPIC1101_ADDR_RXBYTES));
usb_rawhid_send(write_buffer,255);
+ usb_rawhid_send((uint8_t*)"c1101 IOCFG2:",255);
+ debug_sprint_int16hex(write_buffer, spi_c1101_read_register(SPIC1101_ADDR_IOCFG2));
+ usb_rawhid_send(write_buffer,255);
+ usb_rawhid_send((uint8_t*)"c1101 IOCFG1:",255);
+ debug_sprint_int16hex(write_buffer, spi_c1101_read_register(SPIC1101_ADDR_IOCFG1));
+ usb_rawhid_send(write_buffer,255);
+ usb_rawhid_send((uint8_t*)"c1101 IOCFG0:",255);
+ debug_sprint_int16hex(write_buffer, spi_c1101_read_register(SPIC1101_ADDR_IOCFG0));
+ usb_rawhid_send(write_buffer,255);
+ usb_rawhid_send((uint8_t*)"c1101 FIFOTHR:",255);
+ debug_sprint_int16hex(write_buffer, spi_c1101_read_register(SPIC1101_ADDR_FIFOTHR));
+ usb_rawhid_send(write_buffer,255);
+ usb_rawhid_send((uint8_t*)"c1101 PKTLEN:",255);
+ debug_sprint_int16hex(write_buffer, spi_c1101_read_register(SPIC1101_ADDR_PKTLEN));
+ usb_rawhid_send(write_buffer,255);
spi_c1101_dump_registers_to_usb();
}
}