u32 N PHY Calibration Sanity
Define Sign Extension (6 to 8 bit) of x as -(x & 0x20) + (x & 0x1f)
- Clear 2 u16 bitmasks
- Sign Extend the contents of PHY Register 0x1C6
- If the result is greater than 9 or less then -9
- Warn that NB-RSSI offset is too large for core 0, I rail
Set bit 1 << 0 in bitmask 1
- Sign Extend the contents of PHY Register 0x1AC
- If the result is greater than 9 or less then -9
- Warn that NB-RSSI offset is too large for core 0, Q rail
Set bit 1 << 1 in bitmask 1
- Sign Extend the contents of PHY Register 0x1B2
- If the result is greater than 9 or less then -9
- Warn that NB-RSSI offset is too large for core 1, I rail
Set bit 1 << 0 in bitmask 2
- Sign Extend the contents of PHY Register 0x1B8
- If the result is greater than 9 or less then -9
- Warn that NB-RSSI offset is too large for core 1, Q rail
Set bit 1 << 1 in bitmask 2
- Sign Extend the contents of PHY Register 0x1A4
- If the result is greater than 9 or less then -9
- Warn that W1-RSSI offset is too large for core 0, I rail
Set bit 1 << 2 in bitmask 1
- Sign Extend the contents of PHY Register 0x1AA
- If the result is greater than 9 or less then -9
- Warn that W1-RSSI offset is too large for core 0, Q rail
Set bit 1 << 3 in bitmask 1
- Sign Extend the contents of PHY Register 0x1B0
- If the result is greater than 9 or less then -9
- Warn that W1-RSSI offset is too large for core 1, I rail
Set bit 1 << 2 in bitmask 2
- Sign Extend the contents of PHY Register 0x1B6
- If the result is greater than 9 or less then -9
- Warn that W1-RSSI offset is too large for core 1, Q rail
Set bit 1 << 3 in bitmask 2
- Sign Extend the contents of PHY Register 0x1A5
- If the result is greater than 9 or less then -9
- Warn that W2-RSSI offset is too large for core 0, I rail
Set bit 1 << 4 in bitmask 1
- Sign Extend the contents of PHY Register 0x1AB
- If the result is greater than 9 or less then -9
- Warn that W2-RSSI offset is too large for core 0, Q rail
Set bit 1 << 5 in bitmask 1
- Sign Extend the contents of PHY Register 0x1B1
- If the result is greater than 9 or less then -9
- Warn that W2-RSSI offset is too large for core 1, I rail
Set bit 1 << 4 in bitmask 2
- Sign Extend the contents of PHY Register 0x1B7
- If the result is greater than 9 or less then -9
- Warn that W2-RSSI offset is too large for core 1, Q rail
Set bit 1 << 5 in bitmask 2
- If bitmask 1 or bitmask 2 are not zero
- Warn that the chip or board may be broken
Return bitmask 2 << 16 OR bitmask 1