RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
phye.h 文件参考
#include <rtthread.h>
#include <drivers/ofw.h>
+ phye.h 的引用(Include)关系图:

浏览该文件的源代码.

结构体

struct  rt_phye
 
struct  rt_phye_ops
 

枚举

enum  rt_phye_mode {
  RT_PHYE_MODE_INVALID , RT_PHYE_MODE_USB_HOST , RT_PHYE_MODE_USB_HOST_LS , RT_PHYE_MODE_USB_HOST_FS ,
  RT_PHYE_MODE_USB_HOST_HS , RT_PHYE_MODE_USB_HOST_SS , RT_PHYE_MODE_USB_DEVICE , RT_PHYE_MODE_USB_DEVICE_LS ,
  RT_PHYE_MODE_USB_DEVICE_FS , RT_PHYE_MODE_USB_DEVICE_HS , RT_PHYE_MODE_USB_DEVICE_SS , RT_PHYE_MODE_USB_OTG ,
  RT_PHYE_MODE_UFS_HS_A , RT_PHYE_MODE_UFS_HS_B , RT_PHYE_MODE_PCIE , RT_PHYE_MODE_ETHERNET ,
  RT_PHYE_MODE_MIPI_DPHY , RT_PHYE_MODE_SATA , RT_PHYE_MODE_LVDS , RT_PHYE_MODE_DP ,
  RT_PHYE_MODE_MAX , RT_PHYE_MODE_PCIE_RC = RT_PHYE_MODE_MAX , RT_PHYE_MODE_PCIE_EP , RT_PHYE_MODE_PCIE_BIFURCATION
}
 

函数

rt_err_t rt_phye_register (struct rt_phye *phye)
 
rt_err_t rt_phye_unregister (struct rt_phye *phye)
 
rt_err_t rt_phye_init (struct rt_phye *phye)
 
rt_err_t rt_phye_exit (struct rt_phye *phye)
 
rt_err_t rt_phye_reset (struct rt_phye *phye)
 
rt_err_t rt_phye_power_on (struct rt_phye *phye)
 
rt_err_t rt_phye_power_off (struct rt_phye *phye)
 
rt_err_t rt_phye_set_mode (struct rt_phye *phye, enum rt_phye_mode mode, int submode)
 
rt_inline rt_err_t rt_phye_set_mode_simple (struct rt_phye *phye, enum rt_phye_mode mode)
 
struct rt_phyert_phye_get_by_index (struct rt_device *dev, int index)
 
struct rt_phyert_phye_get_by_name (struct rt_device *dev, const char *id)
 
void rt_phye_put (struct rt_phye *phye)
 

枚举类型说明

◆ rt_phye_mode

枚举值
RT_PHYE_MODE_INVALID  
RT_PHYE_MODE_USB_HOST  
RT_PHYE_MODE_USB_HOST_LS  
RT_PHYE_MODE_USB_HOST_FS  
RT_PHYE_MODE_USB_HOST_HS  
RT_PHYE_MODE_USB_HOST_SS  
RT_PHYE_MODE_USB_DEVICE  
RT_PHYE_MODE_USB_DEVICE_LS  
RT_PHYE_MODE_USB_DEVICE_FS  
RT_PHYE_MODE_USB_DEVICE_HS  
RT_PHYE_MODE_USB_DEVICE_SS  
RT_PHYE_MODE_USB_OTG  
RT_PHYE_MODE_UFS_HS_A  
RT_PHYE_MODE_UFS_HS_B  
RT_PHYE_MODE_PCIE  
RT_PHYE_MODE_ETHERNET  
RT_PHYE_MODE_MIPI_DPHY  
RT_PHYE_MODE_SATA  
RT_PHYE_MODE_LVDS  
RT_PHYE_MODE_DP  
RT_PHYE_MODE_MAX  
RT_PHYE_MODE_PCIE_RC RT_PHYE_MODE_MAX 
RT_PHYE_MODE_PCIE_EP  
RT_PHYE_MODE_PCIE_BIFURCATION  

在文件 phye.h17 行定义.

18{
39
41
42 /* PCIe */
46};
@ RT_PHYE_MODE_DP
定义 phye.h:38
@ RT_PHYE_MODE_MIPI_DPHY
定义 phye.h:35
@ RT_PHYE_MODE_USB_HOST
定义 phye.h:20
@ RT_PHYE_MODE_PCIE_EP
定义 phye.h:44
@ RT_PHYE_MODE_USB_DEVICE_LS
定义 phye.h:26
@ RT_PHYE_MODE_USB_OTG
定义 phye.h:30
@ RT_PHYE_MODE_USB_HOST_FS
定义 phye.h:22
@ RT_PHYE_MODE_PCIE_BIFURCATION
定义 phye.h:45
@ RT_PHYE_MODE_UFS_HS_A
定义 phye.h:31
@ RT_PHYE_MODE_SATA
定义 phye.h:36
@ RT_PHYE_MODE_INVALID
定义 phye.h:19
@ RT_PHYE_MODE_USB_DEVICE_HS
定义 phye.h:28
@ RT_PHYE_MODE_USB_DEVICE
定义 phye.h:25
@ RT_PHYE_MODE_USB_DEVICE_FS
定义 phye.h:27
@ RT_PHYE_MODE_PCIE
定义 phye.h:33
@ RT_PHYE_MODE_USB_DEVICE_SS
定义 phye.h:29
@ RT_PHYE_MODE_PCIE_RC
定义 phye.h:43
@ RT_PHYE_MODE_MAX
定义 phye.h:40
@ RT_PHYE_MODE_USB_HOST_LS
定义 phye.h:21
@ RT_PHYE_MODE_USB_HOST_HS
定义 phye.h:23
@ RT_PHYE_MODE_ETHERNET
定义 phye.h:34
@ RT_PHYE_MODE_UFS_HS_B
定义 phye.h:32
@ RT_PHYE_MODE_LVDS
定义 phye.h:37
@ RT_PHYE_MODE_USB_HOST_SS
定义 phye.h:24

函数说明

◆ rt_phye_register()

rt_err_t rt_phye_register ( struct rt_phye * phye)

◆ rt_phye_unregister()

rt_err_t rt_phye_unregister ( struct rt_phye * phye)

◆ rt_phye_init()

rt_err_t rt_phye_init ( struct rt_phye * phye)

◆ rt_phye_exit()

rt_err_t rt_phye_exit ( struct rt_phye * phye)

◆ rt_phye_reset()

rt_err_t rt_phye_reset ( struct rt_phye * phye)

◆ rt_phye_power_on()

rt_err_t rt_phye_power_on ( struct rt_phye * phye)

◆ rt_phye_power_off()

rt_err_t rt_phye_power_off ( struct rt_phye * phye)

◆ rt_phye_set_mode()

rt_err_t rt_phye_set_mode ( struct rt_phye * phye,
enum rt_phye_mode mode,
int submode )
+ 这是这个函数的调用关系图:

◆ rt_phye_set_mode_simple()

rt_inline rt_err_t rt_phye_set_mode_simple ( struct rt_phye * phye,
enum rt_phye_mode mode )

在文件 phye.h82 行定义.

83{
84 return rt_phye_set_mode(phye, mode, RT_PHYE_MODE_INVALID);
85}
rt_err_t rt_phye_set_mode(struct rt_phye *phye, enum rt_phye_mode mode, int submode)

引用了 RT_PHYE_MODE_INVALID , 以及 rt_phye_set_mode().

+ 函数调用图:

◆ rt_phye_get_by_index()

struct rt_phye * rt_phye_get_by_index ( struct rt_device * dev,
int index )

◆ rt_phye_get_by_name()

struct rt_phye * rt_phye_get_by_name ( struct rt_device * dev,
const char * id )

◆ rt_phye_put()

void rt_phye_put ( struct rt_phye * phye)