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.
Fork of mbed by
Diff: CAN.h
- Revision:
- 85:024bf7f99721
- Parent:
- 69:4a7918f48478
diff -r 0b3ab51c8877 -r 024bf7f99721 CAN.h
--- a/CAN.h Mon May 19 18:14:09 2014 +0100
+++ b/CAN.h Wed Jun 11 15:14:05 2014 +0100
@@ -33,7 +33,7 @@
public:
/** Creates empty CAN message.
*/
- CANMessage() {
+ CANMessage() : CAN_Message() {
len = 8;
type = CANData;
format = CANStandard;
@@ -159,17 +159,17 @@
GlobalTest,
SilentTest
};
-
+
/** Change CAN operation to the specified mode
*
* @param mode The new operation mode (CAN::Normal, CAN::Silent, CAN::LocalTest, CAN::GlobalTest, CAN::SilentTest)
*
* @returns
* 0 if mode change failed or unsupported,
- * 1 if mode change was successful
+ * 1 if mode change was successful
*/
int mode(Mode mode);
-
+
/** Filter out incomming messages
*
* @param id the id to filter on
@@ -182,7 +182,7 @@
* new filter handle if successful
*/
int filter(unsigned int id, unsigned int mask, CANFormat format = CANAny, int handle = 0);
-
+
/** Returns number of read errors to detect read overflow errors.
*/
unsigned char rderror();
@@ -202,7 +202,7 @@
BeIrq,
IdIrq
};
-
+
/** Attach a function to call whenever a CAN frame received interrupt is
* generated.
*
