JL1111 TSW PHY driver header file. More...
Go to the source code of this file.
Data Structures | |
| struct | jl1111_config_t |
| JL1111 PHY configuration structure. More... | |
Macros | |
| #define | JL1111_ADDR (0U) |
| Default PHY address for JL1111. More... | |
| #define | JL1111_ID1 (0x937CU) |
| JL1111 PHY ID register 1 value (OUI MSB) More... | |
| #define | JL1111_ID2 (0x10U) |
| JL1111 PHY ID register 2 value (OUI LSB) More... | |
Functions | |
| void | jl1111_reset (TSW_Type *ptr, uint8_t port) |
| Reset JL1111 PHY chip. More... | |
| void | jl1111_basic_mode_default_config (TSW_Type *ptr, jl1111_config_t *config) |
| Set default configuration for JL1111 PHY basic mode. More... | |
| bool | jl1111_basic_mode_init (TSW_Type *ptr, uint8_t port, jl1111_config_t *config) |
| Initialize JL1111 PHY chip in basic mode. More... | |
| void | jl1111_get_phy_status (TSW_Type *ptr, uint8_t port, tsw_phy_status_t *status) |
| Get JL1111 PHY status. More... | |
JL1111 TSW PHY driver header file.
This file provides the API definitions for the JL1111 TSW PHY chip driver. The JL1111 is a single-port 10/100-Mbps Ethernet physical layer transceiver for Time-Sensitive Networking (TSW) applications.
| #define JL1111_ADDR (0U) |
Default PHY address for JL1111.
| #define JL1111_ID1 (0x937CU) |
JL1111 PHY ID register 1 value (OUI MSB)
| #define JL1111_ID2 (0x10U) |
JL1111 PHY ID register 2 value (OUI LSB)
| void jl1111_basic_mode_default_config | ( | TSW_Type * | ptr, |
| jl1111_config_t * | config | ||
| ) |
Set default configuration for JL1111 PHY basic mode.
| [in] | ptr | Pointer to the TSW peripheral base address |
| [out] | config | Pointer to the configuration structure to be initialized |
This function initializes the configuration structure with default values:
| bool jl1111_basic_mode_init | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| jl1111_config_t * | config | ||
| ) |
Initialize JL1111 PHY chip in basic mode.
| [in] | ptr | Pointer to the TSW peripheral base address |
| [in] | port | Port number |
| [in] | config | Pointer to the PHY configuration structure |
| true | Initialization completed successfully |
| false | Initialization failed (PHY ID check failed) |
This function performs the following operations:
| void jl1111_get_phy_status | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| tsw_phy_status_t * | status | ||
| ) |
Get JL1111 PHY status.
| [in] | ptr | Pointer to the TSW peripheral base address |
| [in] | port | Port number |
| [out] | status | Pointer to the status structure to store PHY status |
This function reads the PHY status register and extracts:
| void jl1111_reset | ( | TSW_Type * | ptr, |
| uint8_t | port | ||
| ) |
Reset JL1111 PHY chip.
| [in] | ptr | Pointer to the TSW peripheral base address |
| [in] | port | Port number |
This function performs a software reset on the JL1111 PHY chip.