1
0
Fork 0

cxp upconn fw: correct p3 word

This commit is contained in:
morgan 2024-08-28 12:39:18 +08:00
parent d55bd81137
commit f5eb196726
1 changed files with 5 additions and 4 deletions

View File

@ -17,9 +17,10 @@ pub fn crc_test() {
csr::cxp::crc_data_write(*a);
crc = csr::cxp::crc_value_read();
println!("input = {:#04x}", *a);
println!("CRC NOT(val.reverse) = {:#010x}", !crc.reverse_bits());
// println!("CRC NOT(val.reverse) = {:#010x}", !crc.reverse_bits());
// since the input bit are reversed when entering the crc engine, the output char need to be reversed to cancel out on the receiver side
println!("CRC CXP = {:#010x}", crc);
// println!("CRC CXP = {:#010x}", crc);
println!("CRC processed = {:#010x}", csr::cxp::crc_processed_read())
}
}
}
@ -73,8 +74,8 @@ pub fn tx_test(timer: &mut GlobalTimer) {
0b0011111001 | 0b1100000110 => {
println!("K28.1 idling...")
}
0b0011101010 => {
println!("D28.5 END idle")
0b1010101010 => {
println!("D21.5 END idle")
}
_ => {
println!("encoded = {:#012b}", arr[i])