Defines | Enumerations | Functions

barcode.c File Reference

#include <stdio.h>
#include <unistd.h>
#include <sercom.h>
#include <string.h>
#include <pthread.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <termios.h>
#include "barcode.h"
Include dependency graph for barcode.c:

Defines

#define EBTEST

Enumerations

enum  commandes {
  AIM_OFF, AIM_ON, BEEP, CMD_ACK,
  CMD_NAK, LED_OFF, LED_ON, PARAM_DEFAULTS,
  PARAM_REQUEST, PARAM_SEND, REQUEST_REVISION, SCAN_DISABLE,
  SCAN_ENABLE, SLEEP, START_DECODE, STOP_DECODE,
  WAKEUP, CUSTOM_DEFAULTS
}

Functions

unsigned char getOpcode (commandes command)
int send_command (commandes command, unsigned char *data, int dataLength)
void count_checksum (unsigned char *message, int length)
int barcode_sercom_init (char *tty, void(*sighandler)(int))
int barcode_read (unsigned char *buff, int size)
int barcode_write (unsigned char *buff, int size)
int main (void)

Define Documentation

#define EBTEST

Enumeration Type Documentation

enum commandes
Enumerator:
AIM_OFF 
AIM_ON 
BEEP 
CMD_ACK 
CMD_NAK 
LED_OFF 
LED_ON 
PARAM_DEFAULTS 
PARAM_REQUEST 
PARAM_SEND 
REQUEST_REVISION 
SCAN_DISABLE 
SCAN_ENABLE 
SLEEP 
START_DECODE 
STOP_DECODE 
WAKEUP 
CUSTOM_DEFAULTS 

Function Documentation

int barcode_read ( unsigned char *  buff,
int  size 
)

Here is the caller graph for this function:

int barcode_sercom_init ( char *  tty,
void(*)(int)  sighandler 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int barcode_write ( unsigned char *  buff,
int  size 
)

Here is the caller graph for this function:

void count_checksum ( unsigned char *  message,
int  length 
)

Here is the caller graph for this function:

unsigned char getOpcode ( commandes  command  ) 

Here is the caller graph for this function:

int main ( void   ) 
Examples:
gd_scan.c, and testmap.c.

Here is the call graph for this function:

int send_command ( commandes  command,
unsigned char *  data,
int  dataLength 
)

Here is the call graph for this function:

Here is the caller graph for this function: