summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/busp/busp_capteurs.h
blob: 87f1aaee4ad20298bfb042526a9072950ffa3578 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef busp_capteurs_h
#define busp_capteurs_h
// busp_capteurs.h
// buzz - Programme du robot Efrei Robotique I1-I2 2003
// Copyright (C) 2003 Nicolas Schodet

class BuspCapteurs
{
  public:
    static const unsigned char m_irqMask = 0x04;
  private:
    static const int m_address = 2;
    unsigned char m_capteurs;
  public:
    // Constructeur.
    BuspCapteurs ();
    // Destructeur.
    ~BuspCapteurs ();
    // Traite une interruption.
    void irq (void);
    // Sort les informations.
    void dump (void);
};

#endif // busp_capteurs_h