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.
Dependencies: DataControl
Diff: ikarashiCAN.h
- Revision:
- 5:664bd71935c3
- Parent:
- 4:d4c9f57a98c6
- Child:
- 6:503b975c3c8e
--- a/ikarashiCAN.h Fri Sep 30 04:30:33 2022 +0000
+++ b/ikarashiCAN.h Sat Oct 01 16:20:05 2022 +0000
@@ -122,6 +122,20 @@
*/
void startRecieve();
+ /** オリジナル
+ *
+ * 引数の値を送信用配列にセットします。この値は下のGet関数で取得できます。
+ * 受信データの判別に使えるかも
+ * @param free_num unsigned short型
+ */
+ void originalSet(unsigned short free_num);
+
+ /** オリジナルのセット
+ *
+ * @return int originalSetでセットした値
+ */
+ int originalGet();
+
///データの送信が成功したときにtrueになります。
bool checkSender();
@@ -152,10 +166,10 @@
Ticker can_ticker;
///送信するデータの配列
- char sender[4];
+ char sender[5];
///受信したデータが格納される配列
- char reciever[4];
+ char reciever[5];
int _can_data;
bool can_s;