00001
00002
00003
00004
00005 #ifndef _ALT_BPP_IO_H
00006 #define _ALT_BPP_IO_H
00007
00008 struct bpp_pins {
00009 uint8_t output_reg_pins;
00010 uint8_t input_reg_pins;
00011 };
00012
00013 struct bpp_switches {
00014 int32_t xend;
00015 int32_t yend;
00016 };
00017
00018 struct bpp_delta {
00019 int32_t x;
00020 int32_t y;
00021 };
00022
00023 #define BPPIOC ('b' << 8)
00024 #define BPPIOC_SETOUTPINS (BPPIOC | 3)
00025 #define BPPIOC_GETOUTPINS (BPPIOC | 4)
00026 #define BPPIOC_STEP (BPPIOC | 7)
00027 #define BPPIOC_GETSWITCHES (BPPIOC | 8)
00028 #define BPPIOC_GETREGS (BPPIOC | 9)
00029 #define BPPIOC_SETRAWDATA (BPPIOC | 13)
00030 #define BPPIOC_GETRAWDATA (BPPIOC | 14)
00031
00032 #endif