summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/busp/busp_capteurs.h
blob: 0189f648fb0a7f819e07b3420504364325b831ad (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
26
27
#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 = 0x11;
  private:
    static const int m_address = 10;
    int m_capteurs;
  public:
    // Constructeur.
    BuspCapteurs ();
    // Destructeur.
    ~BuspCapteurs ();
    // Traite une interruption.
    void irq (void);
    // Sort les informations.
    void dump (void);
    // R�cup�re les infos capteurs.
    int get (void) { return m_capteurs; }
};

#endif // busp_capteurs_h