N PHY Set RF Sequence (u8 cmd, u8 *events, u8 *delays, u8 length)
If PHY Revision >= 3
- Set end to 0x1F
- Otherwise
- Set end to 0x0F
if phyhang_avoid is not zero
Call N PHY Stay In Carrier Search with argument 1 (enable)
Set offset1 to cmd << 4
- Write an N PHY Table with ID 7, length, offset1, width 8, and data from events
- Increment offset1 by 0x80 and save as offset2
- Write an N PHY Table with ID 7, length, offset2, width 8, and data from delays
- Loop from len to 15 (inclusive) with index i
- Write an N PHY Table with ID 7, length 1, offset of offset1 + i, width 8, and data from end
- Write an N PHY Table with ID 7, length 1, offset of offset2 + i, width 8, and data 1
If phyhang_avoid is not zero
Call N PHY Stay in Carrier Search with argument 0 (disable)