PHY Selector#

The RAIL PHY Selector component allows the application to select the PHY configuration for communication. This component is useful for applications that need to switch between different PHY settings to optimize performance or comply with different communication standards. The component provides functions to set and get the selected PHY, ensuring that the application can easily switch PHY configurations as needed.

Key functions include:

Functions#

uint8_t
set_selected_phy(uint16_t new_phy)

Set the PHY the app will use.

uint16_t

Get the currently selected PHY number.

Function Documentation#

set_selected_phy#

uint8_t set_selected_phy (uint16_t new_phy)

Set the PHY the app will use.

Parameters
TypeDirectionArgument NameDescription
uint16_t[in]new_phy

The requested new PHY number.

Returns

  • 1 if the PHY number is valid, otherwise 0.


get_selected_phy#

uint16_t get_selected_phy (void )

Get the currently selected PHY number.

Parameters
TypeDirectionArgument NameDescription
voidN/A

Returns

  • The selected PHY number.