LP PHY Save Restore Dig Filt State ( bool save, u16 *coefs1 )
- Create a 9-element u16 array named addr and initialize with 0x4C1, 0x4C2, 0x4C3, 0x4C4, 0x4C5, 0x4C6, 0x4C7, 0x4C8, and 0x4CF
- Create a 9-element u16 array named coefs2 and initialize with 0xDE5E, 0xE832, 0xE331, 0x4D26, 0x0026, 0x1420, 0x0020, 0xFE08, and 0x0008
- If save
- Loop 9 times with loop index j
Read PHY Register addr[j] and store in coefs1[j]
- Set coefs3 to coefs2
- Loop 9 times with loop index j
- Otherwise
- Set coefs3 to coefs1
- Loop 9 times with loop index j
Write coefs3[j] to PHY Register addr[j]