CANopenADI
CANopenNode on Analog Devices Inc. MAX32xxx microcontrollers
Loading...
Searching...
No Matches
CO_application.h
Go to the documentation of this file.
1
25#ifndef CO_APPLICATION_H
26#define CO_APPLICATION_H
27
28#include "CANopen.h"
29
30
49 uint8_t *nodeId,
50 uint32_t *errInfo);
51
52
59
60
65
66
82void app_programAsync(CO_t *co, uint32_t timer1usDiff);
83
84
94void app_programRt(CO_t *co, uint32_t timer1usDiff);
95
96
103void app_peripheralRead(CO_t *co, uint32_t timer1usDiff);
104
105
112void app_peripheralWrite(CO_t *co, uint32_t timer1usDiff);
113
114
115#endif /* CO_APPLICATION_H */
void app_peripheralRead(CO_t *co, uint32_t timer1usDiff)
Function is called in the beginning of the realtime thread.
void app_programAsync(CO_t *co, uint32_t timer1usDiff)
Function is called cyclically from main().
void app_programRt(CO_t *co, uint32_t timer1usDiff)
Function is called cyclically from realtime thread at constant intervals.
CO_ReturnError_t app_programStart(uint16_t *bitRate, uint8_t *nodeId, uint32_t *errInfo)
Application interface, similar to Arduino, extended to CANopen and additional, realtime thread.
void app_communicationReset(CO_t *co)
Function is called after CANopen communication reset.
void app_peripheralWrite(CO_t *co, uint32_t timer1usDiff)
Function is called in the end of the realtime thread.
void app_programEnd()
Function is called just before program ends.
unsigned int uint16_t
unsigned long int uint32_t
unsigned char uint8_t
CO_ReturnError_t