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

浏览该文件的源代码.

结构体

struct  rt_serial_bypass_func
 
struct  rt_serial_bypass_head
 
struct  rt_serial_bypass
 

宏定义

#define RT_BYPASS_LEVEL_MAX   4
 
#define RT_BYPASS_LEVEL_1   0
 
#define RT_BYPASS_LEVEL_2   1
 
#define RT_BYPASS_LEVEL_3   2
 
#define RT_BYPASS_LEVEL_4   3
 
#define RT_BYPASS_MAX_LEVEL   4
 
#define RT_BYPASS_PROTECT_LEVEL_1   10
 
#define RT_BYPASS_PROTECT_LEVEL_2   11
 
#define RT_BYPASS_PROTECT_LEVEL_3   12
 
#define RT_BYPASS_PROTECT_LEVEL_4   13
 

类型定义

typedef rt_err_t(* bypass_function_t) (struct rt_serial_device *serial, char buf, void *data)
 

函数

int serial_bypass_list (int argc, char **argv)
 
void rt_bypass_work_straight (struct rt_serial_device *serial)
 
void rt_bypass_putchar (struct rt_serial_device *serial, rt_uint8_t ch)
 
rt_size_t rt_bypass_getchar (struct rt_serial_device *serial, rt_uint8_t *ch)
 
rt_err_t rt_bypass_upper_unregister (struct rt_serial_device *serial, rt_uint8_t level)
 
rt_err_t rt_bypass_lower_unregister (struct rt_serial_device *serial, rt_uint8_t level)
 
rt_err_t rt_bypass_upper_register (struct rt_serial_device *serial, const char *name, rt_uint8_t level, bypass_function_t func, void *data)
 
rt_err_t rt_bypass_lower_register (struct rt_serial_device *serial, const char *name, rt_uint8_t level, bypass_function_t func, void *data)
 

宏定义说明

◆ RT_BYPASS_LEVEL_MAX

#define RT_BYPASS_LEVEL_MAX   4

在文件 serial_bypass.h18 行定义.

◆ RT_BYPASS_LEVEL_1

#define RT_BYPASS_LEVEL_1   0

在文件 serial_bypass.h19 行定义.

◆ RT_BYPASS_LEVEL_2

#define RT_BYPASS_LEVEL_2   1

在文件 serial_bypass.h20 行定义.

◆ RT_BYPASS_LEVEL_3

#define RT_BYPASS_LEVEL_3   2

在文件 serial_bypass.h21 行定义.

◆ RT_BYPASS_LEVEL_4

#define RT_BYPASS_LEVEL_4   3

在文件 serial_bypass.h22 行定义.

◆ RT_BYPASS_MAX_LEVEL

#define RT_BYPASS_MAX_LEVEL   4

在文件 serial_bypass.h23 行定义.

◆ RT_BYPASS_PROTECT_LEVEL_1

#define RT_BYPASS_PROTECT_LEVEL_1   10

在文件 serial_bypass.h26 行定义.

◆ RT_BYPASS_PROTECT_LEVEL_2

#define RT_BYPASS_PROTECT_LEVEL_2   11

在文件 serial_bypass.h27 行定义.

◆ RT_BYPASS_PROTECT_LEVEL_3

#define RT_BYPASS_PROTECT_LEVEL_3   12

在文件 serial_bypass.h28 行定义.

◆ RT_BYPASS_PROTECT_LEVEL_4

#define RT_BYPASS_PROTECT_LEVEL_4   13

在文件 serial_bypass.h29 行定义.

类型定义说明

◆ bypass_function_t

typedef rt_err_t(* bypass_function_t) (struct rt_serial_device *serial, char buf, void *data)

在文件 serial_bypass.h16 行定义.

函数说明

◆ serial_bypass_list()

int serial_bypass_list ( int argc,
char ** argv )

◆ rt_bypass_work_straight()

void rt_bypass_work_straight ( struct rt_serial_device * serial)

◆ rt_bypass_putchar()

void rt_bypass_putchar ( struct rt_serial_device * serial,
rt_uint8_t ch )

◆ rt_bypass_getchar()

rt_size_t rt_bypass_getchar ( struct rt_serial_device * serial,
rt_uint8_t * ch )

◆ rt_bypass_upper_unregister()

rt_err_t rt_bypass_upper_unregister ( struct rt_serial_device * serial,
rt_uint8_t level )

◆ rt_bypass_lower_unregister()

rt_err_t rt_bypass_lower_unregister ( struct rt_serial_device * serial,
rt_uint8_t level )

◆ rt_bypass_upper_register()

rt_err_t rt_bypass_upper_register ( struct rt_serial_device * serial,
const char * name,
rt_uint8_t level,
bypass_function_t func,
void * data )

◆ rt_bypass_lower_register()

rt_err_t rt_bypass_lower_register ( struct rt_serial_device * serial,
const char * name,
rt_uint8_t level,
bypass_function_t func,
void * data )