VCOM Linux Driver
Advantech Inc.
Loading...
Searching...
No Matches
vc_client_idle.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/mman.h>
#include <errno.h>
#include <limits.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/tcp.h>
#include "advioctl.h"
#include "advtype.h"
#include "vcom_proto.h"
#include "vcom_proto_ioctl.h"
#include "vcom.h"
#include "vc_client_netdown.h"
#include "vc_client_common.h"

Macros

#define ADV_THIS   (&vc_idle_ops)
 

Functions

struct vc_opsvc_idle_open (struct vc_attr *attr)
 
struct vc_opsvc_idle_close (struct vc_attr *attr)
 
struct vc_opsvc_idle_poll (struct vc_attr *attr)
 
struct vc_opsvc_idle_recv (struct vc_attr *attr, char *buf, int len)
 
struct vc_opsvc_idle_init (struct vc_attr *attr)
 
char * vc_idle_name (void)
 

Variables

struct vc_ops vc_idle_ops
 

Macro Definition Documentation

◆ ADV_THIS

#define ADV_THIS   (&vc_idle_ops)

Function Documentation

◆ vc_idle_close()

struct vc_ops * vc_idle_close ( struct vc_attr * attr)

◆ vc_idle_init()

struct vc_ops * vc_idle_init ( struct vc_attr * attr)

◆ vc_idle_name()

char * vc_idle_name ( void )

◆ vc_idle_open()

struct vc_ops * vc_idle_open ( struct vc_attr * attr)

◆ vc_idle_poll()

struct vc_ops * vc_idle_poll ( struct vc_attr * attr)

◆ vc_idle_recv()

struct vc_ops * vc_idle_recv ( struct vc_attr * attr,
char * buf,
int len )

Variable Documentation

◆ vc_idle_ops

struct vc_ops vc_idle_ops
Initial value:
= {
.open = vc_idle_open,
}
struct vc_ops *(* recv)(struct vc_attr *, char *buf, int len)
Definition vcom.h:65
struct vc_ops *(* poll)(struct vc_attr *)
Definition vcom.h:66
char *(* name)(void)
Definition vcom.h:71
struct vc_ops *(* init)(struct vc_attr *)
Definition vcom.h:67
struct vc_ops *(* close)(struct vc_attr *)
Definition vcom.h:62
struct vc_ops * vc_idle_recv(struct vc_attr *attr, char *buf, int len)
Definition vc_client_idle.c:65
char * vc_idle_name(void)
Definition vc_client_idle.c:104
struct vc_ops * vc_idle_poll(struct vc_attr *attr)
Definition vc_client_idle.c:47
struct vc_ops * vc_idle_close(struct vc_attr *attr)
Definition vc_client_idle.c:40
struct vc_ops * vc_idle_open(struct vc_attr *attr)
Definition vc_client_idle.c:30
struct vc_ops * vc_idle_init(struct vc_attr *attr)
Definition vc_client_idle.c:76