Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: ppCANOpen_Example DISCO-F746NG_rtos_test
Diff: include/canopen_api.h
- Revision:
- 5:22a337cdc0e3
- Parent:
- 4:2034b04c86d2
diff -r 2034b04c86d2 -r 22a337cdc0e3 include/canopen_api.h
--- a/include/canopen_api.h Sat Jan 09 17:15:29 2016 +0000
+++ b/include/canopen_api.h Sat Feb 13 20:22:59 2016 +0000
@@ -29,6 +29,8 @@
#ifndef PPCAN_CANOPEN_API_H
#define PPCAN_CANOPEN_API_H
+#include "stdint.h"
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -36,8 +38,7 @@
/*=========================================================================
* Forward declarations
*=========================================================================
- */
- struct CanOpenHandle;
+ */
struct CanOpenMessage;
/*=========================================================================
@@ -45,10 +46,15 @@
*=========================================================================
*/
- int CanOpenApiInit (CanOpenHandle * hCanOpen);
+ typedef void (* ServiceProviderRxInterruptCallback)(void *pServiceObject);
+ typedef void (* ServiceProviderTickCallback) (void *pServiceObject);
+
+ int CanOpenApiInit (void *object, ServiceProviderRxInterruptCallback rxCallback, ServiceProviderTickCallback tickCallback);
- int CanOpenApiRead (CanOpenHandle * hCanOpen, CanOpenMessage * canOpenMsg);
- int CanOpenApiWrite (CanOpenHandle * hCanOpen, CanOpenMessage * canOpenMsg);
+ int CanOpenApiRead (CanOpenMessage * canOpenMsg);
+ int CanOpenApiWrite (CanOpenMessage * canOpenMsg);
+
+ uint32_t CanOpenApiGetHardwareTime (void);
#ifdef __cplusplus
};