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: FreeMASTER_HelloWorld FreeMASTER_HelloWorld2 FreeMASTER_HelloWorld3
Fork of freemaster_lib by
Diff: class/freemaster_class.cpp
- Revision:
- 8:17470feaa6be
- Parent:
- 0:fb135bf60f82
- Child:
- 9:61b2beb811bf
--- a/class/freemaster_class.cpp Wed May 14 14:34:10 2014 +0000
+++ b/class/freemaster_class.cpp Thu May 15 08:52:08 2014 +0000
@@ -1,6 +1,7 @@
#include "mbed.h"
+#include "freemaster_cfg.h"
+#include "freemaster_class.h"
-#include "freemaster_class.h"
#if DEVICE_SERIAL
#define FMSTR_USE_TSA_DYNAMIC 1
@@ -44,10 +45,39 @@
FMSTR_Recorder();
}
+void Freemaster::TriggerRec() {
+ FMSTR_TriggerRec();
+}
+
void Freemaster::Poll() {
FMSTR_Poll();
}
+void Freemaster::GetAppCmd(void)
+{
+ FMSTR_GetAppCmd();
+}
+
+FMSTR_APPCMD_PDATA Freemaster::GetAppCmdData(FMSTR_SIZE* pDataLen)
+{
+ return FMSTR_GetAppCmdData(pDataLen);
+}
+
+FMSTR_BOOL Freemaster::RegisterAppCmdCall(FMSTR_APPCMD_CODE nAppCmdCode, FMSTR_PAPPCMDFUNC pCallbackFunc)
+{
+ return FMSTR_RegisterAppCmdCall(nAppCmdCode, pCallbackFunc);
+}
+
+void Freemaster::AppCmdAck(FMSTR_APPCMD_RESULT nResultCode)
+{
+ FMSTR_AppCmdAck(nResultCode);
+}
+
+void Freemaster::AppCmdSetResponseData(FMSTR_ADDR nResultDataAddr, FMSTR_SIZE nResultDataLen)
+{
+ FMSTR_AppCmdSetResponseData(nResultDataAddr, nResultDataLen);
+}
+
void Freemaster::_irq_handler(uint32_t id, SerialIrq irq_type) {
FMSTR_Isr();
}
