Subversion Repositories tpanel

Rev

Rev 431 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 431 Rev 433
Line 17... Line 17...
17
 */
17
 */
18
 
18
 
19
#ifndef __TBUTTONSTATES_H__
19
#ifndef __TBUTTONSTATES_H__
20
#define __TBUTTONSTATES_H__
20
#define __TBUTTONSTATES_H__
21
 
21
 
-
 
22
#include <cstdint>
22
#include "tsystem.h"
23
#include "tsystem.h"
23
 
24
 
24
class TButtonStates
25
class TButtonStates
25
{
26
{
26
    public:
27
    public:
Line 47... Line 48...
47
 
48
 
48
        uint32_t getID() { return mID; }
49
        uint32_t getID() { return mID; }
49
        BUTTONTYPE getType() { return type; }
50
        BUTTONTYPE getType() { return type; }
50
 
51
 
51
    private:
52
    private:
-
 
53
        void init();
-
 
54
 
52
        uint32_t mID{0};        // The button ID
55
        uint32_t mID{0};        // The button ID
53
        BUTTONTYPE type;        // The type of the button
56
        BUTTONTYPE type;        // The type of the button
54
 
57
 
55
        int ap{1};              // Address port (default: 1)
58
        int ap{1};              // Address port (default: 1)
56
        int ad{0};              // Address channel
59
        int ad{0};              // Address channel