pirblaster
0.01
Use the pi as a remote control for your TV, DVD player etc.
Main Page
Files
File List
Globals
Kmod
Kmod.h
Go to the documentation of this file.
1
#include <linux/ioctl.h>
2
/*
3
* chardev.h - the header file with the ioctl definitions.
4
*
5
* The declarations here have to be in a header file, because
6
* they need to be known both to the kernel module
7
* (in MyIrMod.c) and the process calling ioctl (InitCarrier.c)
8
*/
9
10
#define BCM_PASSWORD 0x5A000000
11
#define IO_BASE 0x20000000
12
#define GPIO_CONTROL 0x00200000
13
#define GPIO_CLK 0x00101000
14
#define TIMER_CONTROL 0x00003000
15
#define GPIO_PWM 0x0000C000
16
#define PWM0_MOD_MS 0x00000080
17
#define PWM0_MODE_BAL 0x00000001
18
#define PWMCLK_CNTL 0x00000028
19
#define PWMCLK_DIV 0x00000029
20
#define PWM0_DATA 0x00000005
21
#define PWM0_RANGE 0x00000004
22
#define PWM0_ENABLE 0x00000001
23
#define PWM_CONTROL 0x00000000
24
#define GPFSEL1 0x00000001
25
#define ONE_MHZ_COUNTER 0x00000004
27
#define HwClockFreq 19200
28
#define MaxFrameTime 200000
29
#define BUF_LEN 2000
31
#define DEVICE_NAME "MyIrMod"
32
#define CLASS_NAME "MyIrClass"
33
#define PwmPin 18
35
#ifndef CHARDEV_H
36
#define CHARDEV_H
37
38
39
#define IOC_MAGIC 'k'
40
#define IOCTL_RANGE _IO(IOC_MAGIC,0)
41
#define IOCTL_DIVISOR _IO(IOC_MAGIC,1)
42
#define IOCTL_DUTY _IO(IOC_MAGIC,2)
45
#endif
Generated on Sun Oct 2 2016 22:23:06 for pirblaster by
1.8.10