Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
act200l-sir.c File Reference
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <net/irda/irda.h>
#include "sir-dev.h"

Go to the source code of this file.

Macros

#define ACT200L_REG0   0x00
 
#define ACT200L_TXEN   0x01 /* Enable transmitter */
 
#define ACT200L_RXEN   0x02 /* Enable receiver */
 
#define ACT200L_REG1   0x10
 
#define ACT200L_LODB   0x01 /* Load new baud rate count value */
 
#define ACT200L_WIDE   0x04 /* Expand the maximum allowable pulse */
 
#define ACT200L_REG4   0x40
 
#define ACT200L_OP0   0x01 /* Enable LED1C output */
 
#define ACT200L_OP1   0x02 /* Enable LED2C output */
 
#define ACT200L_BLKR   0x04
 
#define ACT200L_REG5   0x50
 
#define ACT200L_RWIDL   0x01 /* fixed 1.6us pulse mode */
 
#define ACT200L_REG6   0x60
 
#define ACT200L_RS0   0x01 /* receive threshold bit 0 */
 
#define ACT200L_RS1   0x02 /* receive threshold bit 1 */
 
#define ACT200L_REG7   0x70
 
#define ACT200L_ENPOS   0x04 /* Ignore the falling edge */
 
#define ACT200L_REG8   0x80
 
#define ACT200L_REG9   0x90
 
#define ACT200L_2400   0x5f
 
#define ACT200L_9600   0x17
 
#define ACT200L_19200   0x0b
 
#define ACT200L_38400   0x05
 
#define ACT200L_57600   0x03
 
#define ACT200L_115200   0x01
 
#define ACT200L_REG13   0xd0
 
#define ACT200L_SHDW   0x01 /* Enable access to shadow registers */
 
#define ACT200L_REG15   0xf0
 
#define ACT200L_REG21   0x50
 
#define ACT200L_EXCK   0x02 /* Disable clock output driver */
 
#define ACT200L_OSCL   0x04 /* oscillator in low power, medium accuracy mode */
 
#define ACT200L_STATE_WAIT1_RESET   (SIRDEV_STATE_DONGLE_RESET+1)
 
#define ACT200L_STATE_WAIT2_RESET   (SIRDEV_STATE_DONGLE_RESET+2)
 

Functions

 MODULE_AUTHOR ("SHIMIZU Takuya <[email protected]net.ne.jp>")
 
 MODULE_DESCRIPTION ("ACTiSYS ACT-IR200L dongle driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("irda-dongle-10")
 
 module_init (act200l_sir_init)
 
 module_exit (act200l_sir_cleanup)
 

Macro Definition Documentation

#define ACT200L_115200   0x01

Definition at line 72 of file act200l-sir.c.

#define ACT200L_19200   0x0b

Definition at line 69 of file act200l-sir.c.

#define ACT200L_2400   0x5f

Definition at line 67 of file act200l-sir.c.

#define ACT200L_38400   0x05

Definition at line 70 of file act200l-sir.c.

#define ACT200L_57600   0x03

Definition at line 71 of file act200l-sir.c.

#define ACT200L_9600   0x17

Definition at line 68 of file act200l-sir.c.

#define ACT200L_BLKR   0x04

Definition at line 48 of file act200l-sir.c.

#define ACT200L_ENPOS   0x04 /* Ignore the falling edge */

Definition at line 61 of file act200l-sir.c.

#define ACT200L_EXCK   0x02 /* Disable clock output driver */

Definition at line 83 of file act200l-sir.c.

#define ACT200L_LODB   0x01 /* Load new baud rate count value */

Definition at line 41 of file act200l-sir.c.

#define ACT200L_OP0   0x01 /* Enable LED1C output */

Definition at line 46 of file act200l-sir.c.

#define ACT200L_OP1   0x02 /* Enable LED2C output */

Definition at line 47 of file act200l-sir.c.

#define ACT200L_OSCL   0x04 /* oscillator in low power, medium accuracy mode */

Definition at line 84 of file act200l-sir.c.

#define ACT200L_REG0   0x00

Definition at line 35 of file act200l-sir.c.

#define ACT200L_REG1   0x10

Definition at line 40 of file act200l-sir.c.

#define ACT200L_REG13   0xd0

Definition at line 75 of file act200l-sir.c.

#define ACT200L_REG15   0xf0

Definition at line 79 of file act200l-sir.c.

#define ACT200L_REG21   0x50

Definition at line 82 of file act200l-sir.c.

#define ACT200L_REG4   0x40

Definition at line 45 of file act200l-sir.c.

#define ACT200L_REG5   0x50

Definition at line 51 of file act200l-sir.c.

#define ACT200L_REG6   0x60

Definition at line 55 of file act200l-sir.c.

#define ACT200L_REG7   0x70

Definition at line 60 of file act200l-sir.c.

#define ACT200L_REG8   0x80

Definition at line 64 of file act200l-sir.c.

#define ACT200L_REG9   0x90

Definition at line 65 of file act200l-sir.c.

#define ACT200L_RS0   0x01 /* receive threshold bit 0 */

Definition at line 56 of file act200l-sir.c.

#define ACT200L_RS1   0x02 /* receive threshold bit 1 */

Definition at line 57 of file act200l-sir.c.

#define ACT200L_RWIDL   0x01 /* fixed 1.6us pulse mode */

Definition at line 52 of file act200l-sir.c.

#define ACT200L_RXEN   0x02 /* Enable receiver */

Definition at line 37 of file act200l-sir.c.

#define ACT200L_SHDW   0x01 /* Enable access to shadow registers */

Definition at line 76 of file act200l-sir.c.

#define ACT200L_STATE_WAIT1_RESET   (SIRDEV_STATE_DONGLE_RESET+1)

Definition at line 195 of file act200l-sir.c.

#define ACT200L_STATE_WAIT2_RESET   (SIRDEV_STATE_DONGLE_RESET+2)

Definition at line 196 of file act200l-sir.c.

#define ACT200L_TXEN   0x01 /* Enable transmitter */

Definition at line 36 of file act200l-sir.c.

#define ACT200L_WIDE   0x04 /* Expand the maximum allowable pulse */

Definition at line 42 of file act200l-sir.c.

Function Documentation

MODULE_ALIAS ( "irda-dongle-10"  )
MODULE_AUTHOR ( "SHIMIZU Takuya <[email protected]net.ne.jp>"  )
MODULE_DESCRIPTION ( "ACTiSYS ACT-IR200L dongle driver )
module_exit ( act200l_sir_cleanup  )
module_init ( act200l_sir_init  )
MODULE_LICENSE ( "GPL"  )