Rev 1075 | Rev 1081 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1075 | Rev 1077 | ||
|---|---|---|---|
| Line 40... | Line 40... | ||
| 40 | StdCan_Set_direction(txMsg.Header, DIRECTIONFLAG_FROM_OWNER); |
40 | StdCan_Set_direction(txMsg.Header, DIRECTIONFLAG_FROM_OWNER); |
| 41 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_ACT_DIMMER230; |
41 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_ACT_DIMMER230; |
| 42 | txMsg.Header.ModuleId = act_dimmer230_ID; |
42 | txMsg.Header.ModuleId = act_dimmer230_ID; |
| 43 | txMsg.Header.Command = CAN_MODULE_CMD_DIMMER230_NETINFO; |
43 | txMsg.Header.Command = CAN_MODULE_CMD_DIMMER230_NETINFO; |
| 44 | txMsg.Length = 1; |
44 | txMsg.Length = 1; |
| 45 | txMsg.Data[0] = ((netConnected&0x1)<<7 | (frequency&0x3)<< |
45 | txMsg.Data[0] = ((netConnected&0x1)<<7 | (frequency&0x3)<<5); |
| 46 | StdCan_Put(&txMsg); |
46 | StdCan_Put(&txMsg); |
| 47 | } |
47 | } |
| 48 | 48 | ||
| 49 | ISR (TIMER1_COMPA_vect) |
49 | ISR (TIMER1_COMPA_vect) |
| 50 | { |
50 | { |