Alex exoskeleton
ALEX SoftwareDocumentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
application.h
Go to the documentation of this file.
1 
29 #include <errno.h>
30 #include <fcntl.h>
31 #include <linux/reboot.h>
32 #include <net/if.h>
33 #include <pthread.h>
34 #include <sched.h>
35 #include <signal.h>
36 #include <stdint.h>
37 #include <stdio.h>
38 #include <stdlib.h>
39 #include <string.h>
40 #include <sys/epoll.h>
41 #include <sys/reboot.h>
42 #include <sys/time.h>
43 #include <termios.h>
44 #include <unistd.h>
45 
46 #include "CANopen.h"
47 #include "CO_Linux_tasks.h"
48 #include "CO_OD_storage.h"
49 #include "CO_command.h"
50 #include "CO_time.h"
51 #include "stdio.h"
52 
53 /*Non canopenNode + Socket libraries*/
54 #include "ExoRobot.h"
55 #include "ExoTestMachine.h"
56 
57 #ifndef CO_APPLICATION_H
58 #define CO_APPLICATION_H
59 
60 #define NSEC_PER_SEC (1000000000) /* The number of nanoseconds per second. */
61 #define NSEC_PER_MSEC (1000000) /* The number of nanoseconds per millisecond. */
62 #define TMR_TASK_INTERVAL_NS (1000000) /* Interval of taskTmr in nanoseconds */
63 #define TMR_TASK_OVERFLOW_US (5000) /* Overflow detect limit for taskTmr in microseconds */
64 #define INCREMENT_1MS(var) (var++) /* Increment 1ms variable in taskTmr */
65 #define NODEID (100)
66 #define CANMESSAGELENGTH (100)
67 
70 void app_programStart(void);
71 
75 void app_communicationReset(void);
76 
80 void app_programEnd(void);
81 
87 void app_programAsync(uint16_t timer1msDiff);
88 
94 void app_programControlLoop(void);
95 
96 #endif /*APP_H*/
void app_programEnd(void)
Definition: application.cpp:28
void app_programAsync(uint16_t timer1msDiff)
Definition: application.cpp:32
unsigned short uint16_t
Definition: CO_command.h:35
void app_programControlLoop(void)
Definition: application.cpp:35
void app_communicationReset(void)
Definition: application.cpp:25
void app_programStart(void)
Definition: application.cpp:19