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: 2022_FEPTX-PS4 2022_FEPTX-TokiPS4
Diff: FEP_TX22.h
- Revision:
- 1:303170592014
- Parent:
- 0:729795414ebd
--- a/FEP_TX22.h Wed Oct 05 01:05:52 2022 +0000
+++ b/FEP_TX22.h Thu Oct 06 08:06:20 2022 +0000
@@ -2,18 +2,16 @@
* @file FEP_TX22.h
* @brief 送信用FEPライブラリ
* @author 安澤瑠
- * @date 22/10/4
+ * @date 22/10/6
*/
#ifndef FEP_TX22_H
#define FEP_TX22_H
#include "mbed.h"
-#define DATANUM 9 // ボタン(BusIn)が1 + スティックが4 2021FEP_TX22のcontroller.hと連携していないとダメ
-
/**
- * @class class for 2021FEP_TX22 using FEP-01, FEP-02
- * @note mbed-os 6 では使えません。 Not compatible with mbed-os 6
+ * @class class for FEP using FEP-01, FEP-02
+ * @note RawSerialクラスを使用しているため mbed-os 6 では使えません。 Not compatible with mbed-os 6
*/
class FEP_TX22 : public RawSerial {
public :
@@ -36,20 +34,21 @@
* @return 4 通信相手が受け取りに失敗
* @return -1 可否不明
*/
- int8_t SendData(uint8_t *data);
+ int8_t SendData(uint8_t *data, uint8_t datalen);
- /** Response acquisition function
+ /** Get response
* @return 0 通信成功
* @return 2 コマンドエラー
* @return 3 通信相手からのレスポンス無し
* @return 4 通信相手が受け取りに失敗
* @return -1 可否不明
+ * @note getc()を他のループで回している場合に不具合確認 SerialArduinoと共存不可
*/
int8_t GetResponse();
private :
- uint8_t addr; //! 通信相手のアドレス
+ uint8_t addr; //! 通信相手のアドレス
};
#endif
\ No newline at end of file