Ping pong app demo.
Dependencies: modem_ref_helper DebouncedInterrupt
modem_callbacks.cpp
- Committer:
- Jeej
- Date:
- 2017-09-21
- Revision:
- 3:0979d8cba5ec
- Parent:
- 2:785b422c7d22
- Child:
- 8:1b7101152a76
File content as of revision 3:0979d8cba5ec:
#include "modem_ref_helper.h" // ============================================================}}} // Callbacks to MODEM's ALP requests // ============================================================{{{ void my_read(u8 fid, u32 offset, u32 length, int id) { modem_respond(0, ALP_ERR_FILE_NOT_FOUND, id); } void my_write(u8 fid, void *data, u32 offset, u32 length, int id) { modem_respond(0, ALP_ERR_FILE_NOT_FOUND, id); } void my_read_fprop(u8 fid, int id) { modem_respond(0, ALP_ERR_FILE_NOT_FOUND, id); } void my_flush(u8 fid, int id) { modem_respond(0, ALP_ERR_FILE_NOT_FOUND, id); } void my_delete(u8 fid, int id) { modem_respond(0, ALP_ERR_FILE_NOT_FOUND, id); } void my_lqual(u8 ifid, int per) { PRINT("Interface File [%3d] LQUAL : %d%% PER\r\n", ifid, per); } void my_ldown(u8 ifid) { PRINT("Interface File [%3d] LDOWN\r\n", ifid); } void my_reset(void) { PRINT("Restarting application...\r\n"); FLUSH(); NVIC_SystemReset(); } void my_boot(u8 cause, u16 number) { PRINT("Modem BOOT[%c] #%d\r\n", cause, number); // Modem re-booted, restart APP my_reset(); }