VCOM Linux Driver
Advantech Inc.
Loading...
Searching...
No Matches
vc_client_sync.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 "advioctl.h"
#include "advtype.h"
#include "vcom_proto.h"
#include "vcom_proto_cmd.h"
#include "vcom_proto_ioctl.h"
#include "vcom.h"
#include "vc_client_netdown.h"

Macros

#define ADV_THIS   (&vc_sync_ops)
 

Functions

struct vc_opsvc_sync_open (struct vc_attr *attr)
 
struct vc_opsvc_sync_close (struct vc_attr *attr)
 
struct vc_opsvc_sync_init (struct vc_attr *attr)
 
struct vc_opsvc_sync_recv (struct vc_attr *attr, char *buf, int len)
 
char * vc_sync_name (void)
 

Variables

struct vc_ops vc_sync_ops
 

Macro Definition Documentation

◆ ADV_THIS

#define ADV_THIS   (&vc_sync_ops)

Function Documentation

◆ vc_sync_close()

struct vc_ops * vc_sync_close ( struct vc_attr * attr)

◆ vc_sync_init()

struct vc_ops * vc_sync_init ( struct vc_attr * attr)

◆ vc_sync_name()

char * vc_sync_name ( void )

◆ vc_sync_open()

struct vc_ops * vc_sync_open ( struct vc_attr * attr)

◆ vc_sync_recv()

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

Variable Documentation

◆ vc_sync_ops

struct vc_ops vc_sync_ops
Initial value:
= {
.init = vc_sync_init,
}
struct vc_ops *(* recv)(struct vc_attr *, char *buf, int len)
Definition vcom.h:65
struct vc_ops *(* open)(struct vc_attr *)
Definition vcom.h:61
char *(* name)(void)
Definition vcom.h:71
struct vc_ops *(* close)(struct vc_attr *)
Definition vcom.h:62
struct vc_ops * vc_sync_open(struct vc_attr *attr)
Definition vc_client_sync.c:28
struct vc_ops * vc_sync_recv(struct vc_attr *attr, char *buf, int len)
Definition vc_client_sync.c:238
char * vc_sync_name(void)
Definition vc_client_sync.c:285
struct vc_ops * vc_sync_close(struct vc_attr *attr)
Definition vc_client_sync.c:35
struct vc_ops * vc_sync_init(struct vc_attr *attr)
Definition vc_client_sync.c:206