blob: c8a54213ae21e29645fd90add17691fdde877fc9 (
plain) (
blame)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/*******************************************************************************
* Copyright (c) 2013 protos software gmbh (http://www.protos.de).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* CONTRIBUTORS:
* Thomas Schuetz (initial contribution)
*
*******************************************************************************/
#ifndef _ETWAKEUPSERVICE_H_
#define _ETWAKEUPSERVICE_H_
#include "etDatatypes.h"
#include "etSystemProtocol.h"
/**
* time definition composed by the number of seconds and the number of nano seconds
*/
typedef struct etTime {
etInt32 seconds;
etInt32 nseconds;
} etTime;
typedef struct etWakeupTarget {
etSystemProtocolConjPort messageServicePort; /** port to send the poll message to the message service */
etTime wakeupTime; /** time for the cyclic wake up call */
} etWakeupTarget;
typedef struct etWakeupService {
etWakeupTarget* targetList; /** array with targets to be called */
etInt16 targetListLength; /** number of targets to be called */
} etWakeupService;
void etWakeupService_execute(etWakeupService* self);
#endif /* _ETWAKEUPSERVICE_H_ */
|