Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
yealink.h File Reference

Go to the source code of this file.

Data Structures

struct  yld_ctl_packet
 

Macros

#define LCD_LINE1_OFFSET   0
 
#define LCD_LINE1_SIZE   17
 
#define LCD_LINE2_OFFSET   LCD_LINE1_OFFSET + LCD_LINE1_SIZE
 
#define LCD_LINE2_SIZE   9
 
#define LCD_LINE3_OFFSET   LCD_LINE2_OFFSET + LCD_LINE2_SIZE
 
#define LCD_LINE3_SIZE   12
 
#define LCD_LINE4_OFFSET   LCD_LINE3_OFFSET + LCD_LINE3_SIZE
 
#define USB_PKT_LEN   sizeof(struct yld_ctl_packet)
 
#define CMD_INIT   0x8e
 
#define CMD_KEYPRESS   0x80
 
#define CMD_SCANCODE   0x81
 
#define CMD_LCD   0x04
 
#define CMD_LED   0x05
 
#define CMD_RING_VOLUME   0x11
 
#define CMD_RING_NOTE   0x02
 
#define CMD_RINGTONE   0x03
 
#define CMD_DIALTONE   0x09
 

Functions

struct yld_ctl_packet __attribute__ ((packed))
 

Variables

u8 cmd
 
u8 size
 
u16 offset
 
u8 data [11]
 
s8 sum
 

Macro Definition Documentation

#define CMD_DIALTONE   0x09

Definition at line 120 of file yealink.h.

#define CMD_INIT   0x8e

Definition at line 47 of file yealink.h.

#define CMD_KEYPRESS   0x80

Definition at line 57 of file yealink.h.

#define CMD_LCD   0x04

Definition at line 75 of file yealink.h.

#define CMD_LED   0x05

Definition at line 84 of file yealink.h.

#define CMD_RING_NOTE   0x02

Definition at line 102 of file yealink.h.

#define CMD_RING_VOLUME   0x11

Definition at line 93 of file yealink.h.

#define CMD_RINGTONE   0x03

Definition at line 111 of file yealink.h.

#define CMD_SCANCODE   0x81

Definition at line 66 of file yealink.h.

#define LCD_LINE1_OFFSET   0
#define LCD_LINE1_SIZE   17
#define LCD_LINE2_OFFSET   LCD_LINE1_OFFSET + LCD_LINE1_SIZE
#define LCD_LINE2_SIZE   9
#define LCD_LINE3_OFFSET   LCD_LINE2_OFFSET + LCD_LINE2_SIZE
#define LCD_LINE3_SIZE   12
#define LCD_LINE4_OFFSET   LCD_LINE3_OFFSET + LCD_LINE3_SIZE
#define USB_PKT_LEN   sizeof(struct yld_ctl_packet)

Definition at line 36 of file yealink.h.

Function Documentation

struct yld_ctl_packet __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

Variable Documentation

Definition at line 35 of file yealink.h.

u8 data[11]

Definition at line 38 of file yealink.h.

Definition at line 37 of file yealink.h.

u8 size

Definition at line 36 of file yealink.h.

Definition at line 39 of file yealink.h.