Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cytherm.c File Reference
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/usb.h>

Go to the source code of this file.

Data Structures

struct  usb_cytherm
 

Macros

#define DRIVER_VERSION   "v1.0"
 
#define DRIVER_AUTHOR   "Erik Rigtorp"
 
#define DRIVER_DESC   "Cypress USB Thermometer driver"
 
#define USB_SKEL_VENDOR_ID   0x04b4
 
#define USB_SKEL_PRODUCT_ID   0x0002
 
#define PING   0x00
 
#define READ_ROM   0x01 /* Reads form ROM, value = address */
 
#define READ_RAM   0x02 /* Reads form RAM, value = address */
 
#define WRITE_RAM   0x03 /* Write to RAM, value = address, index = data */
 
#define READ_PORT   0x04 /* Reads from port, value = address */
 
#define WRITE_PORT   0x05 /* Write to port, value = address, index = data */
 
#define BRIGHTNESS   0x2c /* RAM location for brightness value */
 
#define BRIGHTNESS_SEM   0x2b /* RAM location for brightness semaphore */
 
#define TEMP   0x33 /* RAM location for temperature */
 
#define SIGN   0x34 /* RAM location for temperature sign */
 
#define BUTTON   0x7a
 

Functions

 MODULE_DEVICE_TABLE (usb, id_table)
 
 module_usb_driver (cytherm_driver)
 
 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define BRIGHTNESS   0x2c /* RAM location for brightness value */

Definition at line 84 of file cytherm.c.

#define BRIGHTNESS_SEM   0x2b /* RAM location for brightness semaphore */

Definition at line 85 of file cytherm.c.

#define BUTTON   0x7a

Definition at line 184 of file cytherm.c.

#define DRIVER_AUTHOR   "Erik Rigtorp"

Definition at line 25 of file cytherm.c.

#define DRIVER_DESC   "Cypress USB Thermometer driver"

Definition at line 26 of file cytherm.c.

#define DRIVER_VERSION   "v1.0"

Definition at line 24 of file cytherm.c.

#define PING   0x00

Definition at line 61 of file cytherm.c.

#define READ_PORT   0x04 /* Reads from port, value = address */

Definition at line 65 of file cytherm.c.

#define READ_RAM   0x02 /* Reads form RAM, value = address */

Definition at line 63 of file cytherm.c.

#define READ_ROM   0x01 /* Reads form ROM, value = address */

Definition at line 62 of file cytherm.c.

#define SIGN   0x34 /* RAM location for temperature sign */

Definition at line 138 of file cytherm.c.

#define TEMP   0x33 /* RAM location for temperature */

Definition at line 137 of file cytherm.c.

#define USB_SKEL_PRODUCT_ID   0x0002

Definition at line 29 of file cytherm.c.

#define USB_SKEL_VENDOR_ID   0x04b4

Definition at line 28 of file cytherm.c.

#define WRITE_PORT   0x05 /* Write to port, value = address, index = data */

Definition at line 66 of file cytherm.c.

#define WRITE_RAM   0x03 /* Write to RAM, value = address, index = data */

Definition at line 64 of file cytherm.c.

Function Documentation

MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( usb  ,
id_table   
)
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( cytherm_driver  )