![]() |
RZT Flexible Software Package Documentation
Release v2.3.0
|
|
Interface for Ethernet Selector functions.
The Ethernet Selector module (r_ether_selector) provides an API for standard Ethernet Selector communications applications that use the Ethernet Subsystem peripheral.
The Ethernet Selector interface supports the following features:
Data Structures | |
struct | ether_selector_cfg_t |
struct | ether_selector_api_t |
struct | ether_selector_instance_t |
Typedefs | |
typedef void | ether_selector_ctrl_t |
Enumerations | |
enum | ether_selector_phylink_polarity_t |
enum | ether_selector_interface_t |
enum | ether_selector_speed_t |
enum | ether_selector_duplex_t |
enum | ether_selector_ref_clock_t |
struct ether_selector_cfg_t |
Configuration parameters.
Data Fields | ||
---|---|---|
uint8_t | channel | Channel number. |
ether_selector_phylink_polarity_t | phylink | PHY link signal polarity. |
ether_selector_interface_t | interface | Interface mode. |
ether_selector_speed_t | speed | Interface speed. |
ether_selector_duplex_t | duplex | Interface duplex. |
ether_selector_ref_clock_t | ref_clock | Interface REF_CLK. |
void const * | p_extend | Placeholder for user extension. |
struct ether_selector_api_t |
Functions implemented at the HAL layer will follow this API.
Data Fields | |
fsp_err_t(* | open )(ether_selector_ctrl_t *const p_api_ctrl, ether_selector_cfg_t const *const p_cfg) |
fsp_err_t(* | close )(ether_selector_ctrl_t *const p_api_ctrl) |
fsp_err_t(* | converterSet )(ether_selector_ctrl_t *const p_api_ctrl, ether_selector_speed_t speed, ether_selector_duplex_t duplex) |
fsp_err_t(* ether_selector_api_t::open) (ether_selector_ctrl_t *const p_api_ctrl, ether_selector_cfg_t const *const p_cfg) |
Open driver. Set Ethernet mode such as Ethernet MAC or Ethernet Switch or EtherCAT for each port.
[in] | p_api_ctrl | Pointer to control structure. |
[in] | p_cfg | Pointer to selector configuration structure. |
fsp_err_t(* ether_selector_api_t::close) (ether_selector_ctrl_t *const p_api_ctrl) |
Close driver.
[in] | p_api_ctrl | Pointer to control structure. |
fsp_err_t(* ether_selector_api_t::converterSet) (ether_selector_ctrl_t *const p_api_ctrl, ether_selector_speed_t speed, ether_selector_duplex_t duplex) |
Set the Converter speed and duplex in runtime.
[in] | p_api_ctrl | Pointer to control structure. |
[in] | speed | Converter speed. |
[in] | duplex | Converter duplex mode. |
struct ether_selector_instance_t |
This structure encompasses everything that is needed to use an instance of this interface.
Data Fields | ||
---|---|---|
ether_selector_ctrl_t * | p_ctrl | Pointer to the control structure for this instance. |
ether_selector_cfg_t const * | p_cfg | Pointer to the configuration structure for this instance. |
ether_selector_api_t const * | p_api | Pointer to the API structure for this instance. |
typedef void ether_selector_ctrl_t |
Control block. Allocate an instance specific control block to pass into the API calls.