LP PHY Set RC Cap (u8 rc_cap)
- Bitwise mask the parameter "rc_cap" with 0x1F, right shift by 1, and save as "tmp"
Write the maximum of 0x80 and (rc_cap - 4) to Radio Register 0x3A
- If the PHY rev is 1
- If the current channel equals 14
Set wide to japan_wide_filter (probably 1)
- Otherwise
- Set wide to 0
- If wide is zero
- Add 5 to tmp
- Set tmp to the minimum of 0XF and tmp
- If the current channel equals 14
Or tmp with 0x80 and write that value to Radio Register 0x4F
Calculate rc_cap ANDed with 0x1f, right shifted by 2 and ORed with 0x80. Write that value to Radio Register 0x4067