summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/busp/busp_ir.h
diff options
context:
space:
mode:
Diffstat (limited to '2003/i/buzz/src/busp/busp_ir.h')
-rw-r--r--2003/i/buzz/src/busp/busp_ir.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/2003/i/buzz/src/busp/busp_ir.h b/2003/i/buzz/src/busp/busp_ir.h
new file mode 100644
index 0000000..1269215
--- /dev/null
+++ b/2003/i/buzz/src/busp/busp_ir.h
@@ -0,0 +1,25 @@
+#ifndef busp_ir_h
+#define busp_ir_h
+// busp_ir.h
+// buzz - Programme du robot Efrei Robotique I1-I2 2003
+// Copyright (C) 2003 Nicolas Schodet
+
+class BuspIr
+{
+ public:
+ static const unsigned char m_irqMask = 0x10;
+ private:
+ static const int m_address = 3;
+ unsigned char m_irmap[256];
+ public:
+ // Constructeur.
+ BuspIr ();
+ // Destructeur.
+ ~BuspIr ();
+ // Traite une interruption.
+ void irq (void);
+ // Sort la carte Infra-rouge.
+ void dump (void);
+};
+
+#endif // busp_ir_h