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

Go to the source code of this file.

Data Structures

struct  picolcd_pending
 
struct  picolcd_data
 

Macros

#define PICOLCD_NAME   "PicoLCD (graphic)"
 
#define REPORT_ERROR_CODE   0x10 /* LCD: IN[16] */
 
#define ERR_SUCCESS   0x00
 
#define ERR_PARAMETER_MISSING   0x01
 
#define ERR_DATA_MISSING   0x02
 
#define ERR_BLOCK_READ_ONLY   0x03
 
#define ERR_BLOCK_NOT_ERASABLE   0x04
 
#define ERR_BLOCK_TOO_BIG   0x05
 
#define ERR_SECTION_OVERFLOW   0x06
 
#define ERR_INVALID_CMD_LEN   0x07
 
#define ERR_INVALID_DATA_LEN   0x08
 
#define REPORT_KEY_STATE   0x11 /* LCD: IN[2] */
 
#define REPORT_IR_DATA   0x21 /* LCD: IN[63] */
 
#define REPORT_EE_DATA   0x32 /* LCD: IN[63] */
 
#define REPORT_MEMORY   0x41 /* LCD: IN[63] */
 
#define REPORT_LED_STATE   0x81 /* LCD: OUT[1] */
 
#define REPORT_BRIGHTNESS   0x91 /* LCD: OUT[1] */
 
#define REPORT_CONTRAST   0x92 /* LCD: OUT[1] */
 
#define REPORT_RESET   0x93 /* LCD: OUT[2] */
 
#define REPORT_LCD_CMD   0x94 /* LCD: OUT[63] */
 
#define REPORT_LCD_DATA   0x95 /* LCD: OUT[63] */
 
#define REPORT_LCD_CMD_DATA   0x96 /* LCD: OUT[63] */
 
#define REPORT_EE_READ   0xa3 /* LCD: OUT[63] */
 
#define REPORT_EE_WRITE   0xa4 /* LCD: OUT[63] */
 
#define REPORT_ERASE_MEMORY   0xb2 /* LCD: OUT[2] */
 
#define REPORT_READ_MEMORY   0xb3 /* LCD: OUT[3] */
 
#define REPORT_WRITE_MEMORY   0xb4 /* LCD: OUT[63] */
 
#define REPORT_SPLASH_RESTART   0xc1 /* LCD: OUT[1] */
 
#define REPORT_EXIT_KEYBOARD   0xef /* LCD: OUT[2] */
 
#define REPORT_VERSION   0xf1 /* LCD: IN[2],OUT[1] Bootloader: IN[2],OUT[1] */
 
#define REPORT_BL_ERASE_MEMORY   0xf2 /* Bootloader: IN[36],OUT[4] */
 
#define REPORT_BL_READ_MEMORY   0xf3 /* Bootloader: IN[36],OUT[4] */
 
#define REPORT_BL_WRITE_MEMORY   0xf4 /* Bootloader: IN[36],OUT[36] */
 
#define REPORT_DEVID   0xf5 /* LCD: IN[5], OUT[1] Bootloader: IN[5],OUT[1] */
 
#define REPORT_SPLASH_SIZE   0xf6 /* LCD: IN[4], OUT[1] */
 
#define REPORT_HOOK_VERSION   0xf7 /* LCD: IN[2], OUT[1] */
 
#define REPORT_EXIT_FLASHER   0xff /* Bootloader: OUT[2] */
 
#define PICOLCD_KEYS   17
 
#define PICOLCD_BOOTLOADER   1
 
#define PICOLCD_FAILED   2
 
#define PICOLCD_CIR_SHUN   4
 
#define picolcd_in_report(id, dev)   picolcd_report(id, dev, HID_INPUT_REPORT)
 
#define picolcd_out_report(id, dev)   picolcd_report(id, dev, HID_OUTPUT_REPORT)
 
#define picolcd_fbinfo(d)   NULL
 

Functions

struct hid_reportpicolcd_report (int id, struct hid_device *hdev, int dir)
 
int picolcd_reset (struct hid_device *hdev)
 
struct picolcd_pendingpicolcd_send_and_wait (struct hid_device *hdev, int report_id, const u8 *raw_data, int size)
 

Macro Definition Documentation

#define ERR_BLOCK_NOT_ERASABLE   0x04

Definition at line 28 of file hid-picolcd.h.

#define ERR_BLOCK_READ_ONLY   0x03

Definition at line 27 of file hid-picolcd.h.

#define ERR_BLOCK_TOO_BIG   0x05

Definition at line 29 of file hid-picolcd.h.

#define ERR_DATA_MISSING   0x02

Definition at line 26 of file hid-picolcd.h.

#define ERR_INVALID_CMD_LEN   0x07

Definition at line 31 of file hid-picolcd.h.

#define ERR_INVALID_DATA_LEN   0x08

Definition at line 32 of file hid-picolcd.h.

#define ERR_PARAMETER_MISSING   0x01

Definition at line 25 of file hid-picolcd.h.

#define ERR_SECTION_OVERFLOW   0x06

Definition at line 30 of file hid-picolcd.h.

#define ERR_SUCCESS   0x00

Definition at line 24 of file hid-picolcd.h.

#define PICOLCD_BOOTLOADER   1

Definition at line 117 of file hid-picolcd.h.

#define PICOLCD_CIR_SHUN   4

Definition at line 119 of file hid-picolcd.h.

#define PICOLCD_FAILED   2

Definition at line 118 of file hid-picolcd.h.

#define picolcd_fbinfo (   d)    NULL

Definition at line 207 of file hid-picolcd.h.

#define picolcd_in_report (   id,
  dev 
)    picolcd_report(id, dev, HID_INPUT_REPORT)

Definition at line 137 of file hid-picolcd.h.

#define PICOLCD_KEYS   17

Definition at line 71 of file hid-picolcd.h.

#define PICOLCD_NAME   "PicoLCD (graphic)"

Definition at line 20 of file hid-picolcd.h.

#define picolcd_out_report (   id,
  dev 
)    picolcd_report(id, dev, HID_OUTPUT_REPORT)

Definition at line 138 of file hid-picolcd.h.

#define REPORT_BL_ERASE_MEMORY   0xf2 /* Bootloader: IN[36],OUT[4] */

Definition at line 52 of file hid-picolcd.h.

#define REPORT_BL_READ_MEMORY   0xf3 /* Bootloader: IN[36],OUT[4] */

Definition at line 53 of file hid-picolcd.h.

#define REPORT_BL_WRITE_MEMORY   0xf4 /* Bootloader: IN[36],OUT[36] */

Definition at line 54 of file hid-picolcd.h.

#define REPORT_BRIGHTNESS   0x91 /* LCD: OUT[1] */

Definition at line 38 of file hid-picolcd.h.

#define REPORT_CONTRAST   0x92 /* LCD: OUT[1] */

Definition at line 39 of file hid-picolcd.h.

#define REPORT_DEVID   0xf5 /* LCD: IN[5], OUT[1] Bootloader: IN[5],OUT[1] */

Definition at line 55 of file hid-picolcd.h.

#define REPORT_EE_DATA   0x32 /* LCD: IN[63] */

Definition at line 35 of file hid-picolcd.h.

#define REPORT_EE_READ   0xa3 /* LCD: OUT[63] */

Definition at line 44 of file hid-picolcd.h.

#define REPORT_EE_WRITE   0xa4 /* LCD: OUT[63] */

Definition at line 45 of file hid-picolcd.h.

#define REPORT_ERASE_MEMORY   0xb2 /* LCD: OUT[2] */

Definition at line 46 of file hid-picolcd.h.

#define REPORT_ERROR_CODE   0x10 /* LCD: IN[16] */

Definition at line 23 of file hid-picolcd.h.

#define REPORT_EXIT_FLASHER   0xff /* Bootloader: OUT[2] */

Definition at line 58 of file hid-picolcd.h.

#define REPORT_EXIT_KEYBOARD   0xef /* LCD: OUT[2] */

Definition at line 50 of file hid-picolcd.h.

#define REPORT_HOOK_VERSION   0xf7 /* LCD: IN[2], OUT[1] */

Definition at line 57 of file hid-picolcd.h.

#define REPORT_IR_DATA   0x21 /* LCD: IN[63] */

Definition at line 34 of file hid-picolcd.h.

#define REPORT_KEY_STATE   0x11 /* LCD: IN[2] */

Definition at line 33 of file hid-picolcd.h.

#define REPORT_LCD_CMD   0x94 /* LCD: OUT[63] */

Definition at line 41 of file hid-picolcd.h.

#define REPORT_LCD_CMD_DATA   0x96 /* LCD: OUT[63] */

Definition at line 43 of file hid-picolcd.h.

#define REPORT_LCD_DATA   0x95 /* LCD: OUT[63] */

Definition at line 42 of file hid-picolcd.h.

#define REPORT_LED_STATE   0x81 /* LCD: OUT[1] */

Definition at line 37 of file hid-picolcd.h.

#define REPORT_MEMORY   0x41 /* LCD: IN[63] */

Definition at line 36 of file hid-picolcd.h.

#define REPORT_READ_MEMORY   0xb3 /* LCD: OUT[3] */

Definition at line 47 of file hid-picolcd.h.

#define REPORT_RESET   0x93 /* LCD: OUT[2] */

Definition at line 40 of file hid-picolcd.h.

#define REPORT_SPLASH_RESTART   0xc1 /* LCD: OUT[1] */

Definition at line 49 of file hid-picolcd.h.

#define REPORT_SPLASH_SIZE   0xf6 /* LCD: IN[4], OUT[1] */

Definition at line 56 of file hid-picolcd.h.

#define REPORT_VERSION   0xf1 /* LCD: IN[2],OUT[1] Bootloader: IN[2],OUT[1] */

Definition at line 51 of file hid-picolcd.h.

#define REPORT_WRITE_MEMORY   0xb4 /* LCD: OUT[63] */

Definition at line 48 of file hid-picolcd.h.

Function Documentation

struct hid_report* picolcd_report ( int  id,
struct hid_device hdev,
int  dir 
)
read

Definition at line 64 of file hid-picolcd_core.c.

int picolcd_reset ( struct hid_device hdev)

Definition at line 227 of file hid-picolcd_core.c.

struct picolcd_pending* picolcd_send_and_wait ( struct hid_device hdev,
int  report_id,
const u8 raw_data,
int  size 
)
read

Definition at line 79 of file hid-picolcd_core.c.