Subversion Repositories HomeAutomation

Rev

Rev 587 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 587 Rev 588
Line 23... Line 23...
23
#define CAN_CHANNEL     0x0aUL
23
#define CAN_CHANNEL     0x0aUL
24
 
24
 
25
typedef struct {
25
typedef struct {
26
    uint16_t    channel;
26
    uint16_t    channel;
27
    uint16_t    value;
27
    uint16_t    value;
28
    char        name[9];
-
 
29
 
28
 
-
 
29
#if CHANNEL_ENABLE_NAME
-
 
30
    char        name[9];
-
 
31
#endif
-
 
32
 
-
 
33
#if CHANNEL_ENABLE_TYPE
30
    uint16_t    type_k;
34
    uint16_t    type_k;
31
    uint16_t    type_m;
35
    uint16_t    type_m;
32
 
36
 
-
 
37
#   if CHANNEL_ENABLE_TYPE_NAME
33
    char        type[5];
38
    char        type[5];
-
 
39
#   endif
-
 
40
#endif
34
 
41
 
35
} Channel_Info_t;
42
} Channel_Info_t;
36
 
43
 
37
uint8_t Channel_Init( void );
44
uint8_t Channel_Init( void );
38
 
45
 
39
uint8_t Channel_HandleMsg( Can_Message_t *msg );
46
uint8_t Channel_HandleMsg( Can_Message_t *msg );
40
void Channel_Bind( uint8_t id, uint8_t channel );
47
void Channel_Bind( uint8_t id, uint8_t channel );
-
 
48
 
41
uint16_t Channel_GetValue( uint8_t id );
49
uint16_t Channel_GetValue( uint8_t id );
-
 
50
uint8_t Channel_SetValue( uint8_t id, uint16_t value );
42
 
51
 
43
void Channel_Callback_Value( uint8_t id, uint16_t value );
52
void Channel_Callback_Value( uint8_t id, uint16_t value );
44
 
53
 
45
#endif
54
#endif