Classes | Macros | Functions | Variables
dynpick_driver.cpp File Reference
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/iofunc.h>
#include <sys/dispatch.h>
#include <sys/mman.h>
#include <sys/neutrino.h>
#include <sys/slog.h>
#include <sys/time.h>
#include <termios.h>
#include <unistd.h>
Include dependency graph for dynpick_driver.cpp:

Go to the source code of this file.

Classes

struct  server_msg_t
 

Macros

#define cfsetspeed(term, baudrate)
 
#define DATA_LENGTH   27
 
#define min(a, b)   ((a) < (b) ? (a) : (b))
 

Functions

int io_read (resmgr_context_t *ctp, io_read_t *msg, RESMGR_OCB_T *ocb)
 
int main (int argc, char **argv)
 
int message_callback (message_context_t *ctp, int type, unsigned flags, void *handle)
 
int ReadCom (int fdc, unsigned short *data)
 
int SetComAttr (int fdc)
 
void wait_t (void)
 

Variables

static char * buffer = (char *) "Hello world\n"
 
static resmgr_connect_funcs_t ConnectFuncs
 
unsigned short force_sensor_data_0 [6]
 
unsigned short force_sensor_data_1 [6]
 
static iofunc_attr_t IoFuncAttr
 
static resmgr_io_funcs_t IoFuncs
 

Macro Definition Documentation

◆ cfsetspeed

#define cfsetspeed (   term,
  baudrate 
)
Value:
cfsetispeed(term, baudrate);\
cfsetospeed(term, baudrate);

Definition at line 59 of file dynpick_driver.cpp.

◆ DATA_LENGTH

#define DATA_LENGTH   27

◆ min

#define min (   a,
  b 
)    ((a) < (b) ? (a) : (b))

Definition at line 187 of file dynpick_driver.cpp.

Function Documentation

◆ io_read()

int io_read ( resmgr_context_t *  ctp,
io_read_t *  msg,
RESMGR_OCB_T *  ocb 
)

Definition at line 384 of file dynpick_driver.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 290 of file dynpick_driver.cpp.

◆ message_callback()

int message_callback ( message_context_t *  ctp,
int  type,
unsigned  flags,
void handle 
)

Definition at line 203 of file dynpick_driver.cpp.

◆ ReadCom()

int ReadCom ( int  fdc,
unsigned short *  data 
)

Definition at line 137 of file dynpick_driver.cpp.

◆ SetComAttr()

int SetComAttr ( int  fdc)

added

Definition at line 63 of file dynpick_driver.cpp.

◆ wait_t()

void wait_t ( void  )

Definition at line 438 of file dynpick_driver.cpp.

Variable Documentation

◆ buffer

char* buffer = (char *) "Hello world\n"
static

Definition at line 190 of file dynpick_driver.cpp.

◆ ConnectFuncs

resmgr_connect_funcs_t ConnectFuncs
static

Definition at line 194 of file dynpick_driver.cpp.

◆ force_sensor_data_0

unsigned short force_sensor_data_0[6]

Definition at line 52 of file dynpick_driver.cpp.

◆ force_sensor_data_1

unsigned short force_sensor_data_1[6]

Definition at line 53 of file dynpick_driver.cpp.

◆ IoFuncAttr

iofunc_attr_t IoFuncAttr
static

Definition at line 196 of file dynpick_driver.cpp.

◆ IoFuncs

resmgr_io_funcs_t IoFuncs
static

Definition at line 195 of file dynpick_driver.cpp.



hironx_ros_bridge
Author(s): Kei Okada , Isaac I.Y. Saito
autogenerated on Mon Feb 28 2022 23:45:15