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 d7a_1x by
Diff: src/d7a_modem.cpp
- Revision:
- 46:665391110051
- Parent:
- 45:b85384e7d825
- Child:
- 49:81d5bddb02f0
diff -r b85384e7d825 -r 665391110051 src/d7a_modem.cpp --- a/src/d7a_modem.cpp Thu Sep 01 09:35:27 2016 +0000 +++ b/src/d7a_modem.cpp Thu Sep 01 18:13:46 2016 +0000 @@ -58,7 +58,6 @@ return (evt.status == osEventMessage)? (d7a_errors_t)(int32_t)evt.value.p : D7A_ERR_CMD_TO; } - d7a_errors_t d7a_modem_wait_ready( uint32_t millisec ) { FPRINT("(%d)\r\n", millisec); @@ -156,9 +155,17 @@ d7a_modem_msg(WM_CMD_REGISTER_FILE, (uint8_t*)file_infos, sizeof(register_file_param_t)); err = d7a_modem_wait_ready(TO_FS); + + return err; +} + +d7a_errors_t d7a_modem_notify(notify_file_param_t* notif) +{ + d7a_errors_t err; - WARNING(!err, "Declare FID:%d err %d\r\n", file_infos->fid, err); - + d7a_modem_msg(WM_CMD_NOTIFY_FILE, (uint8_t*)notif, sizeof(notify_file_param_t)); + err = d7a_modem_wait_ready(TO_FS); + return err; } @@ -263,6 +270,10 @@ g_modem_ctx.ready.put((void*)ret); } + else if (cmd == WM_NOTIF_DONE) + { + d7a_fs_notif_done(pkt->buffer[1], pkt->buffer[2]); + } else { EPRINT("MODEM Unknown cmd %d\r\n", cmd);