Subversion Repositories HomeAutomation

Rev

Rev 1532 | Details | Compare with Previous | Last modification | View Log | SVN | RSS feed

Rev Author Line No. Line
1503 myhrman 1
#ifndef ACT_PROTECTEDOUTPUT
2
#define ACT_PROTECTEDOUTPUT
3
 
4
/*-----------------------------------------------------------------------------
5
 * Includes
6
 *---------------------------------------------------------------------------*/
7
 
8
/* system files */
9
#include <avr/io.h>
10
#include <avr/interrupt.h>
11
#include <stdio.h>
12
/* lib files */
13
#include <config.h>
14
#include <bios.h>
15
#include <drivers/can/stdcan.h>
16
#include <drivers/timer/timer.h>
17
#include <drivers/mcu/gpio.h>
18
 
19
//to use PCINT lib. uncomment the line below
20
#include <drivers/mcu/pcint.h>
21
 
22
 
1535 myhrman 23
#if act_protectedOutput_EEPROM_ENABLED == 1
1532 myhrman 24
    typedef struct {
25
        ///TODO: Define EEPROM variables needed by the module
26
#if act_protectedOutput_CH_COUNT >= 1
27
        uint8_t ch0;
28
#endif
29
#if act_protectedOutput_CH_COUNT >= 2
30
        uint8_t ch1;
31
#endif
32
#if act_protectedOutput_CH_COUNT >= 3
33
        uint8_t ch2;
34
#endif
35
#if act_protectedOutput_CH_COUNT >= 4
36
        uint8_t ch3;
37
#endif
38
    } act_protectedOutput_Data_t;
39
#endif
40
 
41
 
1503 myhrman 42
/*-----------------------------------------------------------------------------
43
 * Exported Functions
44
 *---------------------------------------------------------------------------*/
45
 
46
void act_protectedOutput_Init(void);
47
void act_protectedOutput_Process(void);
48
void act_protectedOutput_HandleMessage(StdCan_Msg_t *rxMsg);
49
void act_protectedOutput_List(uint8_t ModuleSequenceNumber);
50
 
51
 
1532 myhrman 52
 
1503 myhrman 53
#endif // ACT_PROTECTEDOUTPUT