From 49307f32af400918f17d7089dfbecf685cc7f41c Mon Sep 17 00:00:00 2001 From: Dinh Van Nam Date: Thu, 28 Apr 2022 16:44:25 +0900 Subject: [PATCH] Remove r_cellular in v132 Signed-off-by: Dinh Van Nam --- .../v132/r_cellular/README.md | 2 - .../r01an4664ej0100-rx-ryz014a_cellular.pdf | Bin 20056 -> 0 bytes .../r01an4842jj0100-rx-ryz014a-cellular.pdf | Bin 20055 -> 0 bytes .../v132/r_cellular/r_cellular_if.h | 872 --------- .../ref/r_cellular_config_reference.h | 88 - .../AzureRTOS/cellular_block_pool_control.c | 139 -- .../src/RTOS/cellular_create_event_group.c | 80 - .../src/RTOS/cellular_create_semaphore.c | 80 - .../src/RTOS/cellular_create_task.c | 115 -- .../r_cellular/src/RTOS/cellular_delay_task.c | 70 - .../src/RTOS/cellular_delete_event_group.c | 72 - .../src/RTOS/cellular_delete_semaphore.c | 75 - .../src/RTOS/cellular_delete_task.c | 73 - .../v132/r_cellular/src/RTOS/cellular_free.c | 71 - .../src/RTOS/cellular_get_tickcount.c | 69 - .../src/RTOS/cellular_give_semaphore.c | 79 - .../r_cellular/src/RTOS/cellular_malloc.c | 89 - .../src/RTOS/cellular_synchro_event_group.c | 112 -- .../src/RTOS/cellular_take_semaphore.c | 75 - .../src/RTOS/include/cellular_freertos.h | 290 --- .../r_cellular/src/api/r_cellular_apconnect.c | 168 -- .../r_cellular/src/api/r_cellular_close.c | 112 -- .../src/api/r_cellular_closesocket.c | 109 -- .../src/api/r_cellular_configsslprofile.c | 106 -- .../src/api/r_cellular_configsslsocket.c | 136 -- .../src/api/r_cellular_connectsocket.c | 135 -- .../src/api/r_cellular_connectsockettohost.c | 150 -- .../src/api/r_cellular_createsocket.c | 164 -- .../src/api/r_cellular_disconnect.c | 98 - .../r_cellular/src/api/r_cellular_dnsquery.c | 115 -- .../src/api/r_cellular_erasecertificate.c | 102 -- .../r_cellular/src/api/r_cellular_gettime.c | 104 -- .../src/api/r_cellular_isconnected.c | 85 - .../v132/r_cellular/src/api/r_cellular_open.c | 301 --- .../src/api/r_cellular_receivesocket.c | 325 ---- .../src/api/r_cellular_sendsocket.c | 349 ---- .../r_cellular/src/api/r_cellular_setedrx.c | 96 - .../r_cellular/src/api/r_cellular_setpsm.c | 144 -- .../r_cellular/src/api/r_cellular_settime.c | 100 - .../src/api/r_cellular_shutdownsocket.c | 109 -- .../src/api/r_cellular_writecertificate.c | 263 --- .../src/at_command/ryz014/at_command.c | 195 -- .../r_cellular/src/at_command/ryz014/ate0.c | 77 - .../r_cellular/src/at_command/ryz014/cclk.c | 113 -- .../r_cellular/src/at_command/ryz014/cereg.c | 77 - .../r_cellular/src/at_command/ryz014/cfun.c | 111 -- .../r_cellular/src/at_command/ryz014/cgact.c | 109 -- .../r_cellular/src/at_command/ryz014/cgatt.c | 118 -- .../r_cellular/src/at_command/ryz014/cgauth.c | 81 - .../src/at_command/ryz014/cgdcont.c | 80 - .../r_cellular/src/at_command/ryz014/cgmi.c | 77 - .../r_cellular/src/at_command/ryz014/cgmm.c | 77 - .../r_cellular/src/at_command/ryz014/cgmr.c | 77 - .../src/at_command/ryz014/cgpaddr.c | 82 - .../r_cellular/src/at_command/ryz014/cgsn.c | 77 - .../r_cellular/src/at_command/ryz014/cimi.c | 77 - .../r_cellular/src/at_command/ryz014/cmer.c | 82 - .../r_cellular/src/at_command/ryz014/cops.c | 110 -- .../r_cellular/src/at_command/ryz014/cpin.c | 106 -- .../r_cellular/src/at_command/ryz014/cpsms.c | 136 -- .../r_cellular/src/at_command/ryz014/crsm.c | 89 - .../r_cellular/src/at_command/ryz014/csq.c | 77 - .../at_command/ryz014/include/at_command.h | 762 -------- .../r_cellular/src/at_command/ryz014/reset.c | 82 - .../src/at_command/ryz014/sqnautoconnect.c | 77 - .../src/at_command/ryz014/sqndnslkup.c | 78 - .../src/at_command/ryz014/sqnedrx.c | 122 -- .../src/at_command/ryz014/sqnipscfg.c | 82 - .../src/at_command/ryz014/sqnricfg.c | 82 - .../src/at_command/ryz014/sqnscfg.c | 90 - .../src/at_command/ryz014/sqnscfgext.c | 82 - .../r_cellular/src/at_command/ryz014/sqnsd.c | 160 -- .../r_cellular/src/at_command/ryz014/sqnsh.c | 82 - .../src/at_command/ryz014/sqnsimst.c | 77 - .../src/at_command/ryz014/sqnsnvw.c | 135 -- .../src/at_command/ryz014/sqnspcfg.c | 115 -- .../src/at_command/ryz014/sqnsrecv.c | 83 - .../src/at_command/ryz014/sqnsscfg.c | 90 - .../src/at_command/ryz014/sqnssendext.c | 83 - .../src/at_command/ryz014/sqnsshdn.c | 77 - .../src/include/r_cellular_private.h | 128 -- .../src/include/ryz014/ryz014_private.h | 217 --- .../private/include/cellular_receive_task.h | 138 -- .../private_api/cellular_at_cmd_res_ctrl.c | 82 - .../private_api/cellular_closesocket.c | 86 - .../private/private_api/cellular_disconnect.c | 82 - .../private_api/cellular_execute_at_cmd.c | 137 -- .../private/private_api/cellular_power_down.c | 79 - .../private/private_api/cellular_sci_ctrl.c | 171 -- .../private_api/cellular_semaphore_ctrl.c | 88 - .../private_api/cellular_shutdownsocket.c | 99 - .../private/private_api/cellular_task_ctrl.c | 94 - .../private_api/cellular_timeout_ctrl.c | 215 --- .../include/cellular_private_api.h | 399 ---- .../src/private/r_cellular_receive_task.c | 1607 ----------------- 95 files changed, 13731 deletions(-) delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/README.md delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/doc/en/r01an4664ej0100-rx-ryz014a_cellular.pdf delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/doc/ja/r01an4842jj0100-rx-ryz014a-cellular.pdf delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/r_cellular_if.h delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/ref/r_cellular_config_reference.h delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/AzureRTOS/cellular_block_pool_control.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_create_event_group.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_create_semaphore.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_create_task.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_delay_task.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_delete_event_group.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_delete_semaphore.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_delete_task.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_free.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_get_tickcount.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_give_semaphore.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_malloc.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_synchro_event_group.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_take_semaphore.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/include/cellular_freertos.h delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_apconnect.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_close.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_closesocket.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_configsslprofile.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_configsslsocket.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_connectsocket.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_connectsockettohost.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_createsocket.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_disconnect.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_dnsquery.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_erasecertificate.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_gettime.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_isconnected.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_open.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_receivesocket.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_sendsocket.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_setedrx.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_setpsm.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_settime.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_shutdownsocket.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_writecertificate.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/at_command.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/ate0.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cclk.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cereg.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cfun.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgact.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgatt.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgauth.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgdcont.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgmi.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgmm.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgmr.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgpaddr.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgsn.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cimi.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cmer.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cops.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cpin.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cpsms.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/crsm.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/csq.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/include/at_command.h delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/reset.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnautoconnect.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqndnslkup.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnedrx.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnipscfg.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnricfg.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnscfg.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnscfgext.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsd.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsh.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsimst.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsnvw.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnspcfg.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsrecv.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsscfg.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnssendext.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsshdn.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/include/r_cellular_private.h delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/include/ryz014/ryz014_private.h delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/private/include/cellular_receive_task.h delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_at_cmd_res_ctrl.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_closesocket.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_disconnect.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_execute_at_cmd.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_power_down.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_sci_ctrl.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_semaphore_ctrl.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_shutdownsocket.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_task_ctrl.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_timeout_ctrl.c delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/include/cellular_private_api.h delete mode 100644 vendors/renesas/rx_driver_package/v132/r_cellular/src/private/r_cellular_receive_task.c diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/README.md b/vendors/renesas/rx_driver_package/v132/r_cellular/README.md deleted file mode 100644 index 16e2c6de3f4..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# r_cellular - diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/doc/en/r01an4664ej0100-rx-ryz014a_cellular.pdf b/vendors/renesas/rx_driver_package/v132/r_cellular/doc/en/r01an4664ej0100-rx-ryz014a_cellular.pdf deleted file mode 100644 index ceae128e5ca0ad922d2bc283f3d8b3d14213d462..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 20056 zcmd?RRa9I-*Daca1cHa)PJ#w^cWHtLcemi~(rB>8T^o0Ix5iz9yVH2%&dK+m|J-rM z9rxVV`*7-^##*ap?V5W()UK+rYEu3Z2QaWOav>qHlQEOo8CfFHNST=0I$Jn<{6I3b zHTh43=U5Bqmu?TXW~%WGtLK zJUsu)Ve(iO3(*CLGE!!D@oh2 z&j$5+c=+yHX(5~Jm%H;^KW{NxE zCcIItDUgL*-BgsXOist}p=3aXcLDy2a(R+xGH-+IF+yJ0!WA=VlKp{s=A8(QmysGW z1)RRC6uiE@l=tm~-3}$37ShVI5pI9|cSHHpIaq<`?(RKZC=^j>$Lt}8sUH%jDCzM@=tKJ zhhEMnQ42ne%b7;7}c7ukA7Nx#eVDxeT_A}Qg0l4w4Li%1iuq>t8buB?|NRX zQ3$-gCU}?JdwkK!^3L_uV3Qg72U zMcN1YJ$$_u789sTiSBi;rj%*UPLQj65w)!mDXPaN63)i_WKie=#D1Ek;4#ruJgp5} zJh2N{ZP=X#1AD)Gt_i@5jNKuFpGr*J^rMtEX4QEeKrXKGBV79F2SUZ6hB{N7i`-Wn z?v4c{o%PU>GBN4-w*Q5AuU%{a%pL3Bv~OCJo##W|>2+dhGwK=2Ob(0=43fdhHQcE0 zq!L`TI0;Fk-w2J#{!c71K_8hvRKeW)E37UIALRb`pWs3WowJ?DeJ_XV{Sf-rTJXNd zCZyJEBe_z|;`(=_Ee9O^er znua7xZ16Q@*`$=&r5+kk;w8r=TgD;4>=XbEPIZzc9eZ5AhMXXey&Lm|p!BlbrG86c zTaXRJG5TX@o0p1KA(@IlwQOi6daOT2pW+sfihAXm&cl3e!-k7P&wORDMZrdjGs%H$ z05hxmf&(@O7{KDqFz6l9`>RcwH9rhSad`F2pw*!y`4}aMt)SI?SU%(Q67yvb?tcMdPWG2TPv2p9r4%s}py|J+;%vjOIa5PgrzXr2V#)8D_Z^vt(~;{J0tS z9;Opk#$_;m$W2iSfpzoz->tt$vwo41=~$e;mTC4{Q$(mms9b~H7JTD1_RDhn+}x*L zPW&028yWAq(v9SU*b39)4V*f8@Hx>rin{kXooKCJr}>d4u2W|>$7r2+tu?JC{20Kg zl8~jl6t=Asq4c`V6NK?4`&+Sn7W><$eWJxQi^lGGYbQo)22O3mV`e83Ya8|h$b9Pl zhs9+h#vrHCaS8h<3&uZA*iMKUUNs){8C=6UNVvA_$vwd<@+>yhyV!MDNy#aR)z1h{ z0z~F1iUwV)nYFY3egre}vuLi(A4sLYeUL@C$W=q}F(ms7!Tat1srut`HgQx)gYH&k zc_kxBDPomnsFvQ90SmoE6`IBx_NJcFLX+%4x zAbFM5q}c2;LjZQ7?C7DWKm`6;aS%fu!i}@pb#9z7zEAN1YaS^!*c2uE%zS{1R%8@U zRG<%Jq1sjeGO)QhvroiY)b8NxKw4zTlMeqV^F7C1%6p`~r$u76%*|Y_XRENh^k)X@ z@Yzq~`P58ztrYi>lJJv>qdL9-o88>BHFJf9^x^|m34?0(W=}U?RmGdLfYS7WcExe7 z(T9{pB<31iqwP?GTr9(F`hlPXgWM#e?W5qZHWW++9;$UDS?>-On7Yx|!$7HOr1)PP zR2Dugh<6YQfp94RP?iQ-3R(UN7jf-tyFBUA;Rh4uzCVgNAxoX47=h(Az_ zVy;4fmxuw91}R#YsHEW~#)72T@>s(a!`NsE@^aZ|;qyfCvEvo-$BRLRDg&&vJ9vpO z(8xysWq=A5D{VYp;xK3g3t&o{=ZKZZ8mX8%Q9Nd#5@n`h#!6dx`|BmwOG z1KR@j{uz3JJ;D4B250_@K^7_S)Uqq&E}4ylzTnaGne(E9vp=(i>0TGdEH+K`+Pqee z3=MEOlMHZ=#xqq+RH{DAP+fm1O(t3CaF#GEqc|{v&)J_3Lm};olzIE?8>kY^dbnDi zKN5s%3X;X}uWPTR4^gp`^iWl&250i7&>yutQBnL}lk^Z8m}8EcK%^lRQTUOF9L&?( zDeTdG`7D2=Aoj9<(0cNHzmRj{3Bd=JOaJNlg=YjM&wl?$+Y^&rbZka)3&AMA;P~D@ zRJ#=s3q^)Bf;4eDN$~vur1@iwak4>K1db6akc7%fo0-RqlZq{Rz~qr#wotyuWJVld z&FZU3rIkqZN!c*GVA2oDJU(OIBg?%!bI{GgyfUM0$XKuO_#p-Tir$BXJ|H-$6Dum1 z649s#{HG$T^?m$=GBb|_F%@-rzsU`)tXgIFZnLZGauSQtC=9cCtTZ1kD$rF%h(xUy zNk%^q+@qT0`#s~G6~l`OH{!hJqvv6eGQAIZ1`;9ti<>=fMiQCp9`@pqDX@DtE`nvr z_Z!s#IApldiJ9k#UbZnKY#2WsuV&mH-ny3dLBQIdjlqX51Jzvfv85VyqUIWT)0=y8 zhAH6GKBqt*DY?5p$(Kh59$0-%Y)`2ZOXhkmuy~~F#oV&vDr?*EDSnO1@Un=Id8q+2 z{=ZTB*GN$JE{KNO?b@?LAE3?b!RMM0uh+x?v=_KiV zXiV(bct7TBRkE}VOTik6&A%oECO(@RgToJQwfo}Qh+edB%&bS1v*Wj^hyol9%hG@C z4%(#7!jkW*8=t*_Qd0x2dHuQwTP_&{gh@=Rx{H$GEhcT_XWdArmXv)u*^5|hyD=w? zBO*|ahE&Q14j<9=hH>+0E({L;YE zQ~8i_v-8uKdRxjnL!&yLlc@DtPFQ0vV}_Z2!2}{84tGEq@h94&$s&H7%Lr z$tMQ!o7F!!t2PdrWD;4bq;*J|)F-;dN6Py&5f}dE@6@9dR}gFTo&|!~lXD7NL@lXW zpwE7}AJs~v$)^9{uKXV4r0pK}^0u;I(yS~mBX%#Yf^Ibs2vUpA#CCSXmvr6OnyPY=xgFU3)f&C4 z%E_RmpgR7qVb8BlHOU|bVpmR6!M2kaUEe05L-Ysil1t8$>;y%g!zrD_zi6dWgCUOQ za;LIg%e%MH>^dziJw0Nq9pT#y&gD8eW2r1~c^i>7#342wIk;zJ&?nXf_Up$1YlsYZhL=D6XBMq~Y3^h|4*( zb(9J*9o~3!_^+Y>8#j(&t#GL#&mowVkE+QL6x%X@PU@|q93lV=4=t8GfW_O(K}{-Y z3?~7lvEF@6(5;mZl6lT(f7dIJfV{)YfcF_&B3wqsbLm2Y+&x*-*?fMJIT5R`+LlS(})wdR#Zk0Yeqf@$~zhi&@64ajuvI9|b$+*;hc6QfkWYrPKuw=F# zRA1Y>ZSyXL_}k%CMllv`D`whS-VH(5Ez#xC{z&VepnFx#Zy(GD3J^e^b^=4Gm z-%}nfU8^|5QfUTm3=1ctj{_wg%rO)^r*_aEKlln&2H+9POWX|2&W3UcZB*MQ5?Zg`h9g)RpW5ec@ zZyB-@v~79jW)5SLAS>gRG0WGioGOH`nRbDvj>{29PXc|^YJJAn9-T8XviRpF-lCh)N(fRJ5`)azNZB=pyD6mnP^BGTxcdqgAF4=XEFB=<+I;l-Pa#c_L;b7{4`1D)LoV7N zoini{pFd`VTh%KoW_Xen*Ld;oaxK2lNJyQuowyTeMI2woh_9NvvkG)%m`;eV%HYMF zl;OZ|YnZg@QAa4end(^U9L5JEYGt?UR*AJ2Ludx%s>#*&j z$T~V*US1(t|D@l!SW`0UZWBs_HiR@1^iL?wE#W?Fr5BI*+jk$|wTY$bDYPaxxA$f4 zk1JwfbE!wIqEuDUEF7REE|_6*R85IFVzO-a)$o&`CrGFfnHic;ZN~(|YlnFdQHhF9 zbO(iqj6A|d!^|?QdY5cJb-7u3hIVCJ62O9Yr6iiWBw9Q2tox{H)Zg<2Ijkma6|0K5 z8cina_X^scwXZ%0Jd1kMIcOZUF36Vi&szA5-k;5T@=YrVes+35BOirIxs|xH{yGWg zTT#H0a-=H|DdJiy+rCX(#FDJy=b$cs;Fph(-oG<&>KDJGt{5`dF4f0Uq z0>sZUaLOSiC3h9wVmmTpBl!GDj3;OH3n?{tfvE;+LTJD#zm;|DYhx61-)X5awPU|b z#OaNE!9im$o`H?+;Ttk*j?C>~(7u!Sy+8+=mB+y?naIooBjJOih#?+A6!*lv+1H;a zKjFXKyWSdDiO))kRonh?Q$58rkV)s8$I|@ODuWyjY|n@}J%Dl|SKTS!Adswm+f%PW z%_dD0PUp8`{=D9%%j%1#Yr7P`1F_iuLmv{zy-FVALpNdP$@}fwEpuv>1Z$-P-9;wx z*a3GEIZU@S0*tuS$WG{(jpY_YvP;}J?CO1PKL>dskLy2A3LsUXNDOTrEmQ*vuCw52q{0`JIjf1(<$Ej3x&X1#|O+QP%#M~AKM+legJ?8Z@8x&4*MPQk-; zTV38($6W2|#Sr{)Ax77M=43@NH^FFCg~s~Fpj|j|9tL%5x-n7*gp-^fek9&_g~I%& zcu5~^1om_J);GLk$IUyEHXCz@riJ?6(9fpaW^KrGwe_G2u6|QDI}WZj1Cc*Jso&cD zDMR0^o#FQN%2j@CO&|*+I9Np7P=p3=6(3DqC3vQHYdz6|XKATp zq^`D()hpSYa=seIEyI4Uh71#RJnQZB>LAu@Z^Yg3(iD` zz=xRgIF!8yYH8!}y?sG=ly2r}qT|$A3f+hvT&`aQ$$j+rauJaFW@nEeeQS?*Y0<*%ANg_$=?7MQws*d~Lk!Lf@=isHSh!Ps@(eR%atp_6;PY(8m6z40-8uq$xSJkgTFCno7<6sgN$!MTIWn!1bA zr6{5h@59eJfe6jAB*<%$n4qE5wwHl~kkG3bD|y4fe(cSKk&amWfijQq51I(l7g>w#%2#Mf;C zuKao)7w!JD7}xGZL2tRu+&_$?X`D7q5+n_}RG4&W1(LtCY;%paZqS^w*7Vz$FX@>X zMK31j>g?O|6y}@&9;7XlIBCvl&v}nCv@@!ZF}{n3e)%RE^!fj1*0Q#D{OBzb3h2JXnQ69S%Kv<9&iAxvDe$sM-~Bg1Az&to zw~6dBD{9(7zcwdyX}6-d9(a08euM+`a!*b3eoYe7 zFAkVa;X-ftyuKjHHx}~ga3$PrUx>IPy;|jC70c9Tg7qTU%ue+fUP{m-o(77Ih7ra* zo`}zj+idML?6{Mz#Atu#{q8-saLJ=JtZmcNS>yRc;vlGg(PAwb-LH1u_B7zhpSgg!h0%*g zJlR6(L4o;VwYM|;-BS?2luo|CU|UnVO+GcSVz|?=NV{S=$122AO4p1K5o&ta5O*-X zb5+ktDVlsqQlqri{+05p(>e@!G{A(k)K|Hldf%BO$)f*&*6NJ+UZ}vC@fB@d|*vK^I9%eMqV- zzAf{*vsdl14FV`&l_VtyYZY&C3sVVr1_Dyorj&M7nbBs*RYKDX9=|omy*e|h)ZS=s zwLHb=yaky?E7+&Yf+p5MuE#G1)@|l>Z6y0G303x8Bze|<2o$xwG)~v-hK#HdG@qF} zogRKt@4I4s;GD=ZvgV>`)J>XSL0Nyz39WN^b;f!2k!^> z%56e@i8?qu-$h-Z_GF;vBIE+2^@x20TB$viuNjLqR1iDbO4}^SYP*}5g<8GW!b^nS zMxI#WqV4X=T?WM{mIp>;J-@ep=cQZbynXn+@)w+EQzp;v)}3%4cXBv9ZJayW(#Xs! zK+802+qU_0BNPiQKG$X%2yg>*MG4~Aq`%!x<4WS%YSp{`be49OxgN`l<~6f*eqd5N z`FXvV=L?#M=9I+UbYZoE0-Ia`Lj4Yl7#%p;9v>z59uBFejq}oTE2bgy7VF!MVI9#` z-CC34t`WI})lA0aYWI54dBw?*z#YLSz{3P}szPmRs@MxSk=Ok5_s}ta* z#|yAybyt{+iF?Q9?d#C-6DkqW)#Bnq#-<2b=UYbLCCYs4>6QQB9bDD<#wMA^(B$UZ zxkC*9E2+Crmw%ws`?^n`?}y%7KM3t-Cm9mQ3cvIAe`)Uo1_tgbqZ_onaiGO9HG}^{ zr}#WCi$tj>nn?5?&B=G=d2TcxU#IT=C)SO)TkXw?hyu9$FR;H5q?{`hPQqHNwb8 zY%lH+o2ixp&T%kqp}P$iE9qnyuODYB#ajlU;=XK6+m+G;Yklj6_srp96vhsXy)qfd zKiOWTmMW~@F-^4@8Kda$q54NkXppbK{3%XR7b!zwv>H*lL-yUC)pSx#6Li-`Z|k3- zu5^bJ803z-81GYr(V;WxA=ig`ej$zc1uM=f^3<`Y`JtMORC0ap@pN8HW}4&zn4mxJ z>a1r;jV2uXiL2Y?>h#H+F1xIMwB^YQ zlLaxGI#t=jaM~voDZgq=zLs_hxmZD8I@ zZ4d}UTO>%hmH7px-wR&z7ZVK0wu`uNzjeDE14DRybc$7kikdwz)5C|>Z)!6?ez$Y< z(##Y1!V{?KsiS3*PcgY8=+A?mg~OZrak)hS2Ctr5o}hgDm(nHPO@5dB{X{nZ3Fx(L zsU5I=fWt-YjIttkz~1LBFzxhASW^NR`1ZAqa;4#VI~HVc@`Y4qafYtuRa{`5Vd!D( zw-VT`F8+9gJiVMZ77|4FC$lj%S$A?}22QpKtsA@*fB@=7Y*14kz_1 zwA>nu*hh)xOUU1&H)ySM$Z=Kb@w0>mi`Wv`RP$ zk^YiG?$&DmN}hj(g_86lAdMx~Mud1x9~<7P^zw5*KH6k##7N3QnM-=fDO(_>k2g!m zt&;eOkcQFr%s1&&)79fl=S<;rKp=Jj5n?^QUg~ zC4>;KO)^bbnJu~<;zK9WagIr53gE)YLvPQXG37UysqG+vcb5obi<6Er9&g-PyK}_b zZ_kZ3ZLT>5PY<#C;lkOu53y$lKI7xq*wfwEVZZ868zfIKz8>P-nyh&J&Z1bQ{Mq%z zdrUM z{Iy+)?^++hEWr4NWfFYw)V)B3X|BuVeQ#=ErrWjhf%wp77@KS8%~MP-!C5Jo%9VkNfqha z6)#O2%niIdpnc+arPp72o)OmcpW!(^ zN$pfx)aA{s?EfBWlJVuUEb%PR|#T| zm}Qh>X%y-kWMf!d_xKHUcMz^dpp3GUw?pC1;gLIC2j@T@U&8j`(vOsn#+HW&X~PTa z8P}@Ei}}H4-5{);Br|^Zp<}{8ZKZJi)*8eE51#{l0`hrjv`@lDt}}IAv3{A|fHCP$ zhLf3i(?OZ+o-_jF+DCKDr|UMcP)Tak{5-EjD)dzDQZtg>6>RyNMYO;<3M zFlflBk-98kf=83l!$+Kn%ANPHH|wi;ZRvn8|Aj_YtApQ+hlGW_49R3MupzC46l zHY-lhve$(CueUsu`Ujul%47GR-{vMjWfNu7iRGY3Fb4s6Z3b^z?Di&he>3U%Z^!XE zb;O5)qaF=mDs;+5xS93SMTP_1uET89TPivbWn7=H)X{Fuz1c|h*tnTc^j%LCNcF>6 zlG6I8toFFxk*Ds$0b!@9iTEln6Ke|;ihc5CQ?u^mF?#^DnaxRI1EUK7-1C*SJT_Zp zjeCXlJ1%8GV7h2y!q=?V+p_^Ufq@Yx2UsET9MjgK)oFUTvh+Q|N`%0%acp&K&d{s8 zG~$MVmobj~z`Kz8rk9%c6Jk8UWIJfoW=*7mqN_O21T-PPYEs=n13Z}%Nm=VBbSA~c zA3Lu+MuXDih*k8ro#*`vXkzR*4kXVKVH9-ER42ueE6tyW)EH{?8{eNaB=dG{C>VFg`90X{*wWxkT@TL9QI%XxP())*H2VTMIxYjkB zKXYgnpFguL-^U&+>7qWfsLZ|9cJ4VUvD&{V-Q5#MVRGk+%7LoOHThm)KPsUYLkVF* z7w?k!LuvVR@#YETO>Li(88s=>4>#v+9yhk3+m1_mpAg?f-v-}E-wNMM-;Pe@jejjJ+x6F@Bz{0EgxE4v*iMS#(s*%DD0Mzyv8w# zb|{>G@Wdhw2ki5D@C^GvfV^Qm3wFXhP;(A`t0CTB=E&&*JmYef2|PPlW-5Ys(C`43 zaj8QB%Xo_I7;_Y-89^OrX@F&bD6c=os-EBq^f2(jIHzVv!A+NhSF*d}spG2?F5oQ? zEZ{E?@4hoiKk`4lEW{0}F$dz*1`_?^o}8?`Q5u?w9We?&t3( z?$;OXo(-OVKbsIS`*NZY=wcO%n_A|%9%UoBD2b{b<=P(Q=pE(x5@d@IVMa?! z5@FhtHw7(649d)#!8wJ&4j{C^B$i5t(hw98%$11z;DG+-{S#HNbLh_NFP|TOXu=yT zUm!Vc;mn&U5?#m!rRPm25j&W|;Z1Iw@o*N@6~>*BaAwgJjV_RZvMvLXXI(vsPP6F_ zr9Js|CDdm*oEZfCvwkj2#~%(~V=YT9%%Wbaw8mxu6pFg?(hu>S*#zQkbGnMmr|Y2q zmhNkS$%2FFE9j?d(bh~oai+rLDH$l~q3N}w=ckUivuyS0GAPHjmM3vX)>(erAt@B~ zTHzYtiMb|cSJ*VA4Yj#;^+f21Kg)5OZi5P3>v@uPfL~M33ecwzp!$bm*M^UueG&u# zq(ur-T{F~B>TE zTO&pz)ymHm?iKg8m9rYJQ^BWHX<m6GEQk3InHL;z;Ib^oZ`L?8xfq_=xZ*{Yd+0<%sX7?a1rs=?LK{oM>#?=jv}_(fBo*tMmbvc)8M+|-Rn zCw!FW`EpAgrOWX?YD*op%k!QCQbp{$c5xhXPSk02Pa3i@6|?bc>eu|Q^T10#eP%zhJ|m} zL*9OLx{%fS!t=kJ{_zb?;KH-mRrI(}bbzAe^Td7Dy)Nu&2N-o8Df9)%{F;0(1`FAV z?jwy9A_0DXUAT{j6>U!rfFs@nUZd}Yb|we)L%Z;RKVBW56YtAl3)@wL8=+nJK)P4g z=gj*y*xmN|pin3f?~UTs;<@g=^Zo$Fw5>nT6%HhRqk6S@Zo9vOy}(Gfg$97(q@iy_ zLU`vh!tv~ybr!DUIX}{r$vz=B5P0LXn{|m4(uCH0xj?Q!sX(DXr9jS$s+W?N^i%q6{VnLW{5Ip(?Udov=9KtU z_f+82=M?T#?3Db}_!RS0`IOBDd|T)GtLYdm^N?{Z&&vgTwgBh(3mt0VsiCmIb}cKQ zJ-L8W6o*UO`4c3KOMTXU4x{z@JjU)MZx`?L#+fQuDosE?JeOCA*; z*?n3C#e}rLCHiP_R*X77pflnYS@qJ(6uR`f3~Mx}v03qgiP${f(PPv1YA)G5D%(}` zDBVWV_pWwFch@chFNJpR_Fg!b_G=QCj2iJ96C3NSS8VvKxfV%k1dP3wZYxi-GZ!QN zy}rW}`_tDa-Y4j7#cjl?`ifosd5zHTw~!Z~C*P1!3|A~}S|Tx`JmNay(hY!hCDX4;s=Hjny62Bm;wn#V*U|G^>& zk3&{n-~s(*p+m$*@kn@u%f^W30+eo`s8y zJpo78iwr9dd9Ub8ME$Sc zNh*r304D4{Iw(C+l=!6m?L3_SvoWQs_C&P1_(!~B8CQ0pv+r7E^b)nnJKg9ZO1o2` z#=Dp}cjn(pC_T}Z_@w{sRIn5xGOBuSr^?$WR_72Q(4T7` z!PcMa7(v&+y@g}P2-J4w+>^m4104z&&Y zCRVWg!lHVamN#mtw`r-W8Yvs^@HdLHH;WmdwDh_n|9Kr2XI;x)3YH9V)0kY%*iO>J zkEGz$TAKdaAnho*Mo+D{6{ysyo0N^R(n{RlTbE=GHOh_91Pu;76W)%KU+Dv*tBxMw z!Gmla-}`%aQuR`ewqUYu6xv>G>HaWVC7FS$SdczBeiwk%H*zw5Ia%uT7;8d^b?yE~ z!40@&Z}S`So}#RBZptN1;SWVw4=iPKE_1EbH3D6qVvgl#FWp3?N}(p5Orw&mBr7HQ zhE+$KaMLeMI?2{H_O%T;Qa0|=ZRE{wH&Sl{`3pn&oV5L5Nv^fj>!KeX{H@SREKdF` z=q}c%iY*UqKWnD8S-ysu<7he7D9bAA!A9gSPbHw4S(e1$= zEQP9)o;O5ekIA3Axd0)9cMp@2y@+Ko zLAf91W<~p8@*(w|2y2*Zz?W3fLScebK;hPcHGJxOs0mdnB7S~iy(pEYFpe;erYw#a zr>1n0D4M2xk{BaTdIqY83EvXh!!G(R`Y&Nd>SVEREpa-C7>?L2NZ~^qy96{;3$e%9 zK_?V^ISJ3P&lsMuLa{<3_$^_pANO|69NAQ2w1+FE(pN>!{G@9`PW%OTZ5_E(ViAVm ze#w!1M;Fn*r18LdjHMpJ{6eV^Ta+#25z&qeH*~P;R18tRM`!-s=Rh76_^2UIj{rZ2 zWQ>9LH61VgGsK8`tI5LMTEMrA;KKTzAJpx%MfU{~zhyNQY7XJbMpOu~>-ot~+6g!A zF6xaA*usawg$@dZ13waEVGF${R)_%m`ycdA`frE9WSC)n_o$!&wjDQSc!kI(L+f_B z^-nt&^)wK7eggOP>a!J z!4>uL^S_M;Jh;E6!y#WhFCZbqo}1n+KG?C)56tRP)AwAhrcV7aZ@x0*`Ge^1y2G=> z!#&~N!PxLMmt1W77-ViR1!t86^JO7~zz2uCuKBa}0P5cva8eci+F0 zXBK1?{C89>DoE%cXheI@hQkJN$AlKnw`! z(X999>|SCA7*{89PE&D*aL$@70$|xF2TFki_9Pr7hzGM_&fj%}i>7|qf6D|E^|*Sn z3lK2o)%;NH4SjmFzSZrIc3I_>XJ3hlG3rw?CNGt zjMY--%=GKP_#98^aAO2c*_u}KsexmjPSrepM3!i5A?c|5pV`bf)8zJl)-4g44me!8 z%yy%t?*DcI@yrvMM{!Z7V2(@en>dB@%<+$8n8|aQr%0x=jce{(U*S1LEg4O4XpejB zdpr5JOzD^~awew?rpb((nx(g_T60CS@r_~cOJBJ=CAKW<1PbUMdn{kE`?*!SG5=hb z)6=PFukz4`OBdRY_Fog~7y3l>iup|K_q7;F#hjXY*Yyvb7Y|!kJ>d1Mbu|BL^BJ(e!JmY0A~ZXNpmZ_@HflD6-c)V2 zCQ;A%=kkY`*vJp5OC7adB5JoMCrdGzKET_TnD`g1TdSD#7v)=pnB=nk(ipIp&)Lnd znDg;FQA1xO@YVNFmATn~IRX2GZV_QG zm67YZABf z|1mw78{PBwu=7xmyHp5C_P8ti?L*2sQ0|R`Iq$9W^=b3)Jvjm>D3!x)eigCK@~pCj z&}?B<-ARZ@`O12{Zc3@H%S>pj;-O|=@;5OJdV=A4_q9Ki8E7!yO|QXRz0vJkZErB% zO`ySkQRvUrv+a+L=KUqiI`h;wL5xme(itRk)fi;;k-YnLz#+f-GBif>qQi&UOS6VrM^;wY(xRs*d1wI0+2^ zE6fCeEk{92ab#m>fgQ!V*rwPD@7hi?+Te-nf#}iZ`@5$+H;?t1#^9u^rtdj*LXOa~ zrh10T@WTi`E#^~hS5wuX#-@5ziLs={q}YF_sA>}R|4vbj*1Ims!a-(Tv2yi8uV!^A zZ|j(Y3D)q43MKAJ)LmQ;3c8-pNwc4J44tAkP67Alt|1ga<@5{bXFVe_5MX=;BrmTmp>J~igknAV z@3tWFz2NBhohC`=mn81R2=RumV?V!Md_&;OpPDgpDqxm3hJ5-s2a`4gVvLswf z{I-tntGk!YKeio|$94*X2IYQ4r|a?C{<&<%pV%q%9~}Qo!X?LVi$cPcFc>+!W5ynx z&cbgy@UMAr$BaKZ9g*Lb>asbtZ^sNNI=zJ7Hfq~}En;xonuKfcqB#|^Qy4rrZb`yr z3K05cBa5Tp^JS9`=_z`O(H3^W9<9ylZcEbi@qT3D^@F(dbLMB@ z4rTFfmSGl-y^P<1nS%_P0vvzEwgpSjLu>qRIv8ob&wT0N5jqS9)261Y;~~LG{#j!5 z-5KWgYgpICk4?|e1!Y4Avs5<`qA29N|L!5G2!=H0b-#RRu=*_pTRYi8d2&HT~4Xm>K%>2yKy4JKhh3^d*3 zEv&0DbQ}0Luws!eC&==LZI!FFBfb*Uq~uip+W8ol*UW1E#C6g&Kobt z9lN#(nftj50y8W1wVjP{p-1Y(}go7zUSJ6SG^ zfX&2Yx=fC4T3O+TSyz{E0e~8PFBWwI7IzbEe%cUg1?))R6x-ZbkRAzItP8;cgmb`$ zje$)O74c!Eqi|Hz9Elb~C7vw!VUUMyP8<{g_7DmPv2X^3!XPuoA?66afCMLJFfCI_ zJLdRyqTOL-5Pa#yb; zoiKBlicTyVxvLY4Muv2nkwy+0#G;WQgXW--A%j>n^2{L5H1fc7huwrT8ih$OiSpuiYZ4=(V~j6j3jAr31eKt$ ziJrl@K|PCcOY~$3YC};Eszh<>$xN21r!bkc$OeOkT67Z|_6&|q^kim`grP8Kf~GTr z>>37xCTJEj$gU|dXh<^w4@irtFld6N!Ldp`otdP?G#E7T)nq1lU`Y%b(kzZm^kim{ zFD;qV2#;G@lrVDOsZ5GA3lInv6F=gCif`b^kg^Z4h}R9+1NV`7w+)d_U=HHf7}lh+ z!6vN@&p*VWR0g()Jz~R|?zLwNWJ-adL}ho-0k@2zREL{*(Jt{??UY@NnCjSp>m{lY z=8CH4$r87?Bw1XSO|H(7tU^gD1il8Z?RG2xaBbay6s)Mhjrm^6iwE;qBixh%*5om$ zPX=n5+yHJIMZU!Cglej?^BiD;6!v?<05gglUggH!lAtFj&YDJ#@5Dn8blQ{Khx^fGjDe2>VhBYv8T^o0Ix5iz9yVH2%&dK+m|J-rM z9rxVV`*7-^##*ap?V5W()UK+rYEu3Z2QaWOav>qHlQEOo8CfFHNST=0I$Jn<{6I3b zHTh43=U5Bqmu?TXW~%WGtLK zJUsu)Ve(iO3(*CLGE!!D@oh2 z&j$5+c=+yHX(5~Jm%H;^KW{NxE zCcIItDUgL*-BgsXOist}p=3aXcLDy2a(R+xGH-+IF+yJ0!WA=VlKp{s=A8(QmysGW z1)RRC6uiE@l=tm~-3}$37ShVI5pI9|cSHHpIaq<`?(RKZC=^j>$Lt}8sUH%jDCzM@=tKJ zhhEMnQ42ne%b7;7}c7ukA7Nx#eVDxeT_A}Qg0l4w4Li%1iuq>t8buB?|NRX zQ3$-gCU}?JdwkK!^3L_uV3Qg72U zMcN1YJ$$_u789sTiSBi;rj%*UPLQj65w)!mDXPaN63)i_WKie=#D1Ek;4#ruJgp5} zJh2N{ZP=X#1AD)Gt_i@5jNKuFpGr*J^rMtEX4QEeKrXKGBV79F2SUZ6hB{N7i`-Wn z?v4c{o%PU>GBN4-w*Q5AuU%{a%pL3Bv~OCJo##W|>2+dhGwK=2Ob(0=43fdhHQcE0 zq!L`TI0;Fk-w2J#{!c71K_8hvRKeW)E37UIALRb`pWs3WowJ?DeJ_XV{Sf-rTJXNd zCZyJEBe_z|;`(=_Ee9O^er znua7xZ16Q@*`$=&r5+kk;w8r=TgD;4>=XbEPIZzc9eZ5AhMXXey&Lm|p!BlbrG86c zTaXRJG5TX@o0p1KA(@IlwQOi6daOT2pW+sfihAXm&cl3e!-k7P&wORDMZrdjGs%H$ z05hxmf&(@O7{KDqFz6l9`>RcwH9rhSad`F2pw*!y`4}aMt)SI?SU%(Q67yvb?tcMdPWG2TPv2p9r4%s}py|J+;%vjOIa5PgrzXr2V#)8D_Z^vt(~;{J0tS z9;Opk#$_;m$W2iSfpzoz->tt$vwo41=~$e;mTC4{Q$(mms9b~H7JTD1_RDhn+}x*L zPW&028yWAq(v9SU*b39)4V*f8@Hx>rin{kXooKCJr}>d4u2W|>$7r2+tu?JC{20Kg zl8~jl6t=Asq4c`V6NK?4`&+Sn7W><$eWJxQi^lGGYbQo)22O3mV`e83Ya8|h$b9Pl zhs9+h#vrHCaS8h<3&uZA*iMKUUNs){8C=6UNVvA_$vwd<@+>yhyV!MDNy#aR)z1h{ z0z~F1iUwV)nYFY3egre}vuLi(A4sLYeUL@C$W=q}F(ms7!Tat1srut`HgQx)gYH&k zc_kxBDPomnsFvQ90SmoE6`IBx_NJcFLX+%4x zAbFM5q}c2;LjZQ7?C7DWKm`6;aS%fu!i}@pb#9z7zEAN1YaS^!*c2uE%zS{1R%8@U zRG<%Jq1sjeGO)QhvroiY)b8NxKw4zTlMeqV^F7C1%6p`~r$u76%*|Y_XRENh^k)X@ z@Yzq~`P58ztrYi>lJJv>qdL9-o88>BHFJf9^x^|m34?0(W=}U?RmGdLfYS7WcExe7 z(T9{pB<31iqwP?GTr9(F`hlPXgWM#e?W5qZHWW++9;$UDS?>-On7Yx|!$7HOr1)PP zR2Dugh<6YQfp94RP?iQ-3R(UN7jf-tyFBUA;Rh4uzCVgNAxoX47=h(Az_ zVy;4fmxuw91}R#YsHEW~#)72T@>s(a!`NsE@^aZ|;qyfCvEvo-$BRLRDg&&vJ9vpO z(8xysWq=A5D{VYp;xK3g3t&o{=ZKZZ8mX8%Q9Nd#5@n`h#!6dx`|BmwOG z1KR@j{uz3JJ;D4B250_@K^7_S)Uqq&E}4ylzTnaGne(E9vp=(i>0TGdEH+K`+Pqee z3=MEOlMHZ=#xqq+RH{DAP+fm1O(t3CaF#GEqc|{v&)J_3Lm};olzIE?8>kY^dbnDi zKN5s%3X;X}uWPTR4^gp`^iWl&250i7&>yutQBnL}lk^Z8m}8EcK%^lRQTUOF9L&?( zDeTdG`7D2=Aoj9<(0cNHzmRj{3Bd=JOaJNlg=YjM&wl?$+Y^&rbZka)3&AMA;P~D@ zRJ#=s3q^)Bf;4eDN$~vur1@iwak4>K1db6akc7%fo0-RqlZq{Rz~qr#wotyuWJVld z&FZU3rIkqZN!c*GVA2oDJU(OIBg?%!bI{GgyfUM0$XKuO_#p-Tir$BXJ|H-$6Dum1 z649s#{HG$T^?m$=GBb|_F%@-rzsU`)tXgIFZnLZGauSQtC=9cCtTZ1kD$rF%h(xUy zNk%^q+@qT0`#s~G6~l`OH{!hJqvv6eGQAIZ1`;9ti<>=fMiQCp9`@pqDX@DtE`nvr z_Z!s#IApldiJ9k#UbZnKY#2WsuV&mH-ny3dLBQIdjlqX51Jzvfv85VyqUIWT)0=y8 zhAH6GKBqt*DY?5p$(Kh59$0-%Y)`2ZOXhkmuy~~F#oV&vDr?*EDSnO1@Un=Id8q+2 z{=ZTB*GN$JE{KNO?b@?LAE3?b!RMM0uh+x?v=_KiV zXiV(bct7TBRkE}VOTik6&A%oECO(@RgToJQwfo}Qh+edB%&bS1v*Wj^hyol9%hG@C z4%(#7!jkW*8=t*_Qd0x2dHuQwTP_&{gh@=Rx{H$GEhcT_XWdArmXv)u*^5|hyD=w? zBO*|ahE&Q14j<9=hH>+0E({L;YE zQ~8i_v-8uKdRxjnL!&yLlc@DtPFQ0vV}_Z2!2}{84tGEq@h94&$s&H7%Lr z$tMQ!o7F!!t2PdrWD;4bq;*J|)F-;dN6Py&5f}dE@6@9dR}gFTo&|!~lXD7NL@lXW zpwE7}AJs~v$)^9{uKXV4r0pK}^0u;I(yS~mBX%#Yf^Ibs2vUpA#CCSXmvr6OnyPY=xgFU3)f&C4 z%E_RmpgR7qVb8BlHOU|bVpmR6!M2kaUEe05L-Ysil1t8$>;y%g!zrD_zi6dWgCUOQ za;LIg%e%MH>^dziJw0Nq9pT#y&gD8eW2r1~c^i>7#342wIk;zJ&?nXf_Up$1YlsYZhL=D6XBMq~Y3^h|4*( zb(9J*9o~3!_^+Y>8#j(&t#GL#&mowVkE+QL6x%X@PU@|q93lV=4=t8GfW_O(K}{-Y z3?~7lvEF@6(5;mZl6lT(f7dIJfV{)YfcF_&B3wqsbLm2Y+&x*-*?fMJIT5R`+LlS(})wdR#Zk0Yeqf@$~zhi&@64ajuvI9|b$+*;hc6QfkWYrPKuw=F# zRA1Y>ZSyXL_}k%CMllv`D`whS-VH(5Ez#xC{z&VepnFx#Zy(GD3J^e^b^=4Gm z-%}nfU8^|5QfUTm3=1ctj{_wg%rO)^r*_aEKlln&2H+9POWX|2&W3UcZB*MQ5?Zg`h9g)RpW5ec@ zZyB-@v~79jW)5SLAS>gRG0WGioGOH`nRbDvj>{29PXc|^YJJAn9-T8XviRpF-lCh)N(fRJ5`)azNZB=pyD6mnP^BGTxcdqgAF4=XEFB=<+I;l-Pa#c_L;b7{4`1D)LoV7N zoini{pFd`VTh%KoW_Xen*Ld;oaxK2lNJyQuowyTeMI2woh_9NvvkG)%m`;eV%HYMF zl;OZ|YnZg@QAa4end(^U9L5JEYGt?UR*AJ2Ludx%s>#*&j z$T~V*US1(t|D@l!SW`0UZWBs_HiR@1^iL?wE#W?Fr5BI*+jk$|wTY$bDYPaxxA$f4 zk1JwfbE!wIqEuDUEF7REE|_6*R85IFVzO-a)$o&`CrGFfnHic;ZN~(|YlnFdQHhF9 zbO(iqj6A|d!^|?QdY5cJb-7u3hIVCJ62O9Yr6iiWBw9Q2tox{H)Zg<2Ijkma6|0K5 z8cina_X^scwXZ%0Jd1kMIcOZUF36Vi&szA5-k;5T@=YrVes+35BOirIxs|xH{yGWg zTT#H0a-=H|DdJiy+rCX(#FDJy=b$cs;Fph(-oG<&>KDJGt{5`dF4f0Uq z0>sZUaLOSiC3h9wVmmTpBl!GDj3;OH3n?{tfvE;+LTJD#zm;|DYhx61-)X5awPU|b z#OaNE!9im$o`H?+;Ttk*j?C>~(7u!Sy+8+=mB+y?naIooBjJOih#?+A6!*lv+1H;a zKjFXKyWSdDiO))kRonh?Q$58rkV)s8$I|@ODuWyjY|n@}J%Dl|SKTS!Adswm+f%PW z%_dD0PUp8`{=D9%%j%1#Yr7P`1F_iuLmv{zy-FVALpNdP$@}fwEpuv>1Z$-P-9;wx z*a3GEIZU@S0*tuS$WG{(jpY_YvP;}J?CO1PKL>dskLy2A3LsUXNDOTrEmQ*vuCw52q{0`JIjf1(<$Ej3x&X1#|O+QP%#M~AKM+legJ?8Z@8x&4*MPQk-; zTV38($6W2|#Sr{)Ax77M=43@NH^FFCg~s~Fpj|j|9tL%5x-n7*gp-^fek9&_g~I%& zcu5~^1om_J);GLk$IUyEHXCz@riJ?6(9fpaW^KrGwe_G2u6|QDI}WZj1Cc*Jso&cD zDMR0^o#FQN%2j@CO&|*+I9Np7P=p3=6(3DqC3vQHYdz6|XKATp zq^`D()hpSYa=seIEyI4Uh71#RJnQZB>LAu@Z^Yg3(iD` zz=xRgIF!8yYH8!}y?sG=ly2r}qT|$A3f+hvT&`aQ$$j+rauJaFW@nEeeQS?*Y0<*%ANg_$=?7MQws*d~Lk!Lf@=isHSh!Ps@(eR%atp_6;PY(8m6z40-8uq$xSJkgTFCno7<6sgN$!MTIWn!1bA zr6{5h@59eJfe6jAB*<%$n4qE5wwHl~kkG3bD|y4fe(cSKk&amWfijQq51I(l7g>w#%2#Mf;C zuKao)7w!JD7}xGZL2tRu+&_$?X`D7q5+n_}RG4&W1(LtCY;%paZqS^w*7Vz$FX@>X zMK31j>g?O|6y}@&9;7XlIBCvl&v}nCv@@!ZF}{n3e)%RE^!fj1*0Q#D{OBzb3h2JXnQ69S%Kv<9&iAxvDe$sM-~Bg1Az&to zw~6dBD{9(7zcwdyX}6-d9(a08euM+`a!*b3eoYe7 zFAkVa;X-ftyuKjHHx}~ga3$PrUx>IPy;|jC70c9Tg7qTU%ue+fUP{m-o(77Ih7ra* zo`}zj+idML?6{Mz#Atu#{q8-saLJ=JtZmcNS>yRc;vlGg(PAwb-LH1u_B7zhpSgg!h0%*g zJlR6(L4o;VwYM|;-BS?2luo|CU|UnVO+GcSVz|?=NV{S=$122AO4p1K5o&ta5O*-X zb5+ktDVlsqQlqri{+05p(>e@!G{A(k)K|Hldf%BO$)f*&*6NJ+UZ}vC@fB@d|*vK^I9%eMqV- zzAf{*vsdl14FV`&l_VtyYZY&C3sVVr1_Dyorj&M7nbBs*RYKDX9=|omy*e|h)ZS=s zwLHb=yaky?E7+&Yf+p5MuE#G1)@|l>Z6y0G303x8Bze|<2o$xwG)~v-hK#HdG@qF} zogRKt@4I4s;GD=ZvgV>`)J>XSL0Nyz39WN^b;f!2k!^> z%56e@i8?qu-$h-Z_GF;vBIE+2^@x20TB$viuNjLqR1iDbO4}^SYP*}5g<8GW!b^nS zMxI#WqV4X=T?WM{mIp>;J-@ep=cQZbynXn+@)w+EQzp;v)}3%4cXBv9ZJayW(#Xs! zK+802+qU_0BNPiQKG$X%2yg>*MG4~Aq`%!x<4WS%YSp{`be49OxgN`l<~6f*eqd5N z`FXvV=L?#M=9I+UbYZoE0-Ia`Lj4Yl7#%p;9v>z59uBFejq}oTE2bgy7VF!MVI9#` z-CC34t`WI})lA0aYWI54dBw?*z#YLSz{3P}szPmRs@MxSk=Ok5_s}ta* z#|yAybyt{+iF?Q9?d#C-6DkqW)#Bnq#-<2b=UYbLCCYs4>6QQB9bDD<#wMA^(B$UZ zxkC*9E2+Crmw%ws`?^n`?}y%7KM3t-Cm9mQ3cvIAe`)Uo1_tgbqZ_onaiGO9HG}^{ zr}#WCi$tj>nn?5?&B=G=d2TcxU#IT=C)SO)TkXw?hyu9$FR;H5q?{`hPQqHNwb8 zY%lH+o2ixp&T%kqp}P$iE9qnyuODYB#ajlU;=XK6+m+G;Yklj6_srp96vhsXy)qfd zKiOWTmMW~@F-^4@8Kda$q54NkXppbK{3%XR7b!zwv>H*lL-yUC)pSx#6Li-`Z|k3- zu5^bJ803z-81GYr(V;WxA=ig`ej$zc1uM=f^3<`Y`JtMORC0ap@pN8HW}4&zn4mxJ z>a1r;jV2uXiL2Y?>h#H+F1xIMwB^YQ zlLaxGI#t=jaM~voDZgq=zLs_hxmZD8I@ zZ4d}UTO>%hmH7px-wR&z7ZVK0wu`uNzjeDE14DRybc$7kikdwz)5C|>Z)!6?ez$Y< z(##Y1!V{?KsiS3*PcgY8=+A?mg~OZrak)hS2Ctr5o}hgDm(nHPO@5dB{X{nZ3Fx(L zsU5I=fWt-YjIttkz~1LBFzxhASW^NR`1ZAqa;4#VI~HVc@`Y4qafYtuRa{`5Vd!D( zw-VT`F8+9gJiVMZ77|4FC$lj%S$A?}22QpKtsA@*fB@=7Y*14kz_1 zwA>nu*hh)xOUU1&H)ySM$Z=Kb@w0>mi`Wv`RP$ zk^YiG?$&DmN}hj(g_86lAdMx~Mud1x9~<7P^zw5*KH6k##7N3QnM-=fDO(_>k2g!m zt&;eOkcQFr%s1&&)79fl=S<;rKp=Jj5n?^QUg~ zC4>;KO)^bbnJu~<;zK9WagIr53gE)YLvPQXG37UysqG+vcb5obi<6Er9&g-PyK}_b zZ_kZ3ZLT>5PY<#C;lkOu53y$lKI7xq*wfwEVZZ868zfIKz8>P-nyh&J&Z1bQ{Mq%z zdrUM z{Iy+)?^++hEWr4NWfFYw)V)B3X|BuVeQ#=ErrWjhf%wp77@KS8%~MP-!C5Jo%9VkNfqha z6)#O2%niIdpnc+arPp72o)OmcpW!(^ zN$pfx)aA{s?EfBWlJVuUEb%PR|#T| zm}Qh>X%y-kWMf!d_xKHUcMz^dpp3GUw?pC1;gLIC2j@T@U&8j`(vOsn#+HW&X~PTa z8P}@Ei}}H4-5{);Br|^Zp<}{8ZKZJi)*8eE51#{l0`hrjv`@lDt}}IAv3{A|fHCP$ zhLf3i(?OZ+o-_jF+DCKDr|UMcP)Tak{5-EjD)dzDQZtg>6>RyNMYO;<3M zFlflBk-98kf=83l!$+Kn%ANPHH|wi;ZRvn8|Aj_YtApQ+hlGW_49R3MupzC46l zHY-lhve$(CueUsu`Ujul%47GR-{vMjWfNu7iRGY3Fb4s6Z3b^z?Di&he>3U%Z^!XE zb;O5)qaF=mDs;+5xS93SMTP_1uET89TPivbWn7=H)X{Fuz1c|h*tnTc^j%LCNcF>6 zlG6I8toFFxk*Ds$0b!@9iTEln6Ke|;ihc5CQ?u^mF?#^DnaxRI1EUK7-1C*SJT_Zp zjeCXlJ1%8GV7h2y!q=?V+p_^Ufq@Yx2UsET9MjgK)oFUTvh+Q|N`%0%acp&K&d{s8 zG~$MVmobj~z`Kz8rk9%c6Jk8UWIJfoW=*7mqN_O21T-PPYEs=n13Z}%Nm=VBbSA~c zA3Lu+MuXDih*k8ro#*`vXkzR*4kXVKVH9-ER42ueE6tyW)EH{?8{eNaB=dG{C>VFg`90X{*wWxkT@TL9QI%XxP())*H2VTMIxYjkB zKXYgnpFguL-^U&+>7qWfsLZ|9cJ4VUvD&{V-Q5#MVRGk+%7LoOHThm)KPsUYLkVF* z7w?k!LuvVR@#YETO>Li(88s=>4>#v+9yhk3+m1_mpAg?f-v-}E-wNMM-;Pe@jejjJ+x6F@Bz{0EgxE4v*iMS#(s*%DD0Mzyv8w# zb|{>G@Wdhw2ki5D@C^GvfV^Qm3wFXhP;(A`t0CTB=E&&*JmYef2|PPlW-5Ys(C`43 zaj8QB%Xo_I7;_Y-89^OrX@F&bD6c=os-EBq^f2(jIHzVv!A+NhSF*d}spG2?F5oQ? zEZ{E?@4hoiKk`4lEW{0}F$dz*1`_?^o}8?`Q5u?w9We?&t3( z?$;OXo(-OVKbsIS`*NZY=wcO%n_A|%9%UoBD2b{b<=P(Q=pE(x5@d@IVMa?! z5@FhtHw7(649d)#!8wJ&4j{C^B$i5t(hw98%$11z;DG+-{S#HNbLh_NFP|TOXu=yT zUm!Vc;mn&U5?#m!rRPm25j&W|;Z1Iw@o*N@6~>*BaAwgJjV_RZvMvLXXI(vsPP6F_ zr9Js|CDdm*oEZfCvwkj2#~%(~V=YT9%%Wbaw8mxu6pFg?(hu>S*#zQkbGnMmr|Y2q zmhNkS$%2FFE9j?d(bh~oai+rLDH$l~q3N}w=ckUivuyS0GAPHjmM3vX)>(erAt@B~ zTHzYtiMb|cSJ*VA4Yj#;^+f21Kg)5OZi5P3>v@uPfL~M33ecwzp!$bm*M^UueG&u# zq(ur-T{F~B>TE zTO&pz)ymHm?iKg8m9rYJQ^BWHX<m6GEQk3InHL;z;Ib^oZ`L?8xfq_=xZ*{Yd+0<%sX7?a1rs=?LK{oM>#?=jv}_(fBo*tMmbvc)8M+|-Rn zCw!FW`EpAgrOWX?YD*op%k!QCQbp{$c5xhXPSk02Pa3i@6|?bc>eu|Q^T10#eP%zhJ|m} zL*9OLx{%fS!t=kJ{_zb?;KH-mRrI(}bbzAe^Td7Dy)Nu&2N-o8Df9)%{F;0(1`FAV z?jwy9A_0DXUAT{j6>U!rfFs@nUZd}Yb|we)L%Z;RKVBW56YtAl3)@wL8=+nJK)P4g z=gj*y*xmN|pin3f?~UTs;<@g=^Zo$Fw5>nT6%HhRqk6S@Zo9vOy}(Gfg$97(q@iy_ zLU`vh!tv~ybr!DUIX}{r$vz=B5P0LXn{|m4(uCH0xj?Q!sX(DXr9jS$s+W?N^i%q6{VnLW{5Ip(?Udov=9KtU z_f+82=M?T#?3Db}_!RS0`IOBDd|T)GtLYdm^N?{Z&&vgTwgBh(3mt0VsiCmIb}cKQ zJ-L8W6o*UO`4c3KOMTXU4x{z@JjU)MZx`?L#+fQuDosE?JeOCA*; z*?n3C#e}rLCHiP_R*X77pflnYS@qJ(6uR`f3~Mx}v03qgiP${f(PPv1YA)G5D%(}` zDBVWV_pWwFch@chFNJpR_Fg!b_G=QCj2iJ96C3NSS8VvKxfV%k1dP3wZYxi-GZ!QN zy}rW}`_tDa-Y4j7#cjl?`ifosd5zHTw~!Z~C*P1!3|A~}S|Tx`JmNay(hY!hCDX4;s=Hjny62Bm;wn#V*U|G^>& zk3&{n-~s(*p+m$*@kn@u%f^W30+eo`s8y zJpo78iwr9dd9Ub8ME$Sc zNh*r304D4{Iw(C+l=!6m?L3_SvoWQs_C&P1_(!~B8CQ0pv+r7E^b)nnJKg9ZO1o2` z#=Dp}cjn(pC_T}Z_@w{sRIn5xGOBuSr^?$WR_72Q(4T7` z!PcMa7(v&+y@g}P2-J4w+>^m4104z&&Y zCRVWg!lHVamN#mtw`r-W8Yvs^@HdLHH;WmdwDh_n|9Kr2XI;x)3YH9V)0kY%*iO>J zkEGz$TAKdaAnho*Mo+D{6{ysyo0N^R(n{RlTbE=GHOh_91Pu;76W)%KU+Dv*tBxMw z!Gmla-}`%aQuR`ewqUYu6xv>G>HaWVC7FS$SdczBeiwk%H*zw5Ia%uT7;8d^b?yE~ z!40@&Z}S`So}#RBZptN1;SWVw4=iPKE_1EbH3D6qVvgl#FWp3?N}(p5Orw&mBr7HQ zhE+$KaMLeMI?2{H_O%T;Qa0|=ZRE{wH&Sl{`3pn&oV5L5Nv^fj>!KeX{H@SREKdF` z=q}c%iY*UqKWnD8S-ysu<7he7D9bAA!A9gSPbHw4S(e1$= zEQP9)o;O5ekIA3Axd0)9cMp@2y@+Ko zLAf91W<~p8@*(w|2y2*Zz?W3fLScebK;hPcHGJxOs0mdnB7S~iy(pEYFpe;erYw#a zr>1n0D4M2xk{BaTdIqY83EvXh!!G(R`Y&Nd>SVEREpa-C7>?L2NZ~^qy96{;3$e%9 zK_?V^ISJ3P&lsMuLa{<3_$^_pANO|69NAQ2w1+FE(pN>!{G@9`PW%OTZ5_E(ViAVm ze#w!1M;Fn*r18LdjHMpJ{6eV^Ta+#25z&qeH*~P;R18tRM`!-s=Rh76_^2UIj{rZ2 zWQ>9LH61VgGsK8`tI5LMTEMrA;KKTzAJpx%MfU{~zhyNQY7XJbMpOu~>-ot~+6g!A zF6xaA*usawg$@dZ13waEVGF${R)_%m`ycdA`frE9WSC)n_o$!&wjDQSc!kI(L+f_B z^-nt&^)wK7eggOP>a!J z!4>uL^S_M;Jh;E6!y#WhFCZbqo}1n+KG?C)56tRP)AwAhrcV7aZ@x0*`Ge^1y2G=> z!#&~N!PxLMmt1W77-ViR1!t86^JO7~zz2uCuKBa}0P5cva8eci+F0 zXBK1?{C89>DoE%cXheI@hQkJN$AlKnw`! z(X999>|SCA7*{89PE&D*aL$@70$|xF2TFki_9Pr7hzGM_&fj%}i>7|qf6D|E^|*Sn z3lK2o)%;NH4SjmFzSZrIc3I_>XJ3hlG3rw?CNGt zjMY--%=GKP_#98^aAO2c*_u}KsexmjPSrepM3!i5A?c|5pV`bf)8zJl)-4g44me!8 z%yy%t?*DcI@yrvMM{!Z7V2(@en>dB@%<+$8n8|aQr%0x=jce{(U*S1LEg4O4XpejB zdpr5JOzD^~awew?rpb((nx(g_T60CS@r_~cOJBJ=CAKW<1PbUMdn{kE`?*!SG5=hb z)6=PFukz4`OBdRY_Fog~7y3l>iup|K_q7;F#hjXY*Yyvb7Y|!kJ>d1Mbu|BL^BJ(e!JmY0A~ZXNpmZ_@HflD6-c)V2 zCQ;A%=kkY`*vJp5OC7adB5JoMCrdGzKET_TnD`g1TdSD#7v)=pnB=nk(ipIp&)Lnd znDg;FQA1xO@YVNFmATn~IRX2GZV_QG zm67YZABf z|1mw78{PBwu=7xmyHp5C_P8ti?L*2sQ0|R`Iq$9W^=b3)Jvjm>D3!x)eigCK@~pCj z&}?B<-ARZ@`O12{Zc3@H%S>pj;-O|=@;5OJdV=A4_q9Ki8E7!yO|QXRz0vJkZErB% zO`ySkQRvUrv+a+L=KUqiI`h;wL5xme(itRk)fi;;k-YnLz#+f-GBif>qQi&UOS6VrM^;wY(xRs*d1wI0+2^ zE6fCeEk{92ab#m>fgQ!V*rwPD@7hi?+Te-nf#}iZ`@5$+H;?t1#^9u^rtdj*LXOa~ zrh10T@WTi`E#^~hS5wuX#-@5ziLs={q}YF_sA>}R|4vbj*1Ims!a-(Tv2yi8uV!^A zZ|j(Y3D)q43MKAJ)LmQ;3c8-pNwc4J44tAkP67Alt|1ga<@5{bXFVe_5MX=;BrmTmp>J~igknAV z@3tWFz2NBhohC`=mn81R2=RumV?V!Md_&;OpPDgpDqxm3hJ5-s2a`4gVvLswf z{I-tntGk!YKeio|$94*X2IYQ4r|a?C{<&<%pV%q%9~}Qo!X?LVi$cPcFc>+!W5ynx z&cbgy@UMAr$BaKZ9g*Lb>asbtZ^sNNI=zJ7Hfq~}En;xonuKfcqB#|^Qy4rrZb`yr z3K05cBa5Tp^JS9`=_z`O(H3^W9<9ylZcEbi@qT3D^@F(dbLMB@ z4rTFfmSGl-y^P<1nS%_P0vvzEwgpSjLu>qRIv8ob&wT0N5jqS9)261Y;~~LG{#j!5 z-5KWgYgpICk4?|e1!Y4AvspJ_O?hxpQKTV30tQ7I2=bw^QE4%xf{3Ys zG|@=J#264iB1nRgXo$u4=H0b-l?1PIxtX`W_vX#cd%u}KniuUzCfl5LD89iYEQo2mZdV5SCjHX?Si%5hs-1Ew1=B%cEo=Bfm` zZFWnF>13p$!s}!@O^!yPh=(IHEb9T@pkRsJ4kbFW-#~R>x4E(ML`$0kPD1q#r+qmy zNP`M`OpcUX~ZuUfuNBx*apGAMQW%>4lBMRmay(t^Dvv>EiP})w_4DnOgSeYj4e2x2K^0 z@=t>sj=b4(c;%%Ps|E_^mu|nlf7%aI#;?C?e`4bc{t5qNFZ|=_yH}?DHFUgtV9J4$ zO#|=UA6{>df9~uf$%yv%zHxo`%xK7eKN`~Z559b2y83hD;zw_6d84~4+Gp07m2bbZ zdCI1~Pn?oyXMy?4Z7(^?=XU80_Z>Mn)ITY*ZPo3Ep4_@E|Ln)dejPgV`+=vP{bStZ zk0xEXNh&JYTLu9lf_xEYB1f0uE{*PQHZ}rSNCeDGj@!NrqbcHhNsROrOe%&zfv;w1 z#fmIRoS7;wwxFjXu-0jI?f-?Wvwh4rF$E@a%IolBPKt4K222Uw-YT6TOh%wj4fCMpE3q{Ip(>nlUh?e)@lQz0a^jLB*~}+`$Ru-C5<>eTSy~9 zDruxDgbG2pMkAS!I*mwy8#E#XUO^*M{HP?<$%;xyorEeubTX}4LP00fYJ^54RLNbv zoNU6%VJSL6G;&ubh(;6Xv?7fhGzg;6LF|b@&+NBE&=_;10V9XCw-fUJ~`i_rFPugpM)3f+_H)NfH!- z!X|nK;|BFC#x2p4B`6I=Jtz{zsV6g8rk=uNvLYJ{8d}j!Y}hk6Hqn!rK^lg_pb44I z44T(47&IZXm_hTJ5`%^^6Zn9vmN*9Je11N7QrJn9O+(5wnC;77;2Pv1g&t%C`z@uiD&F$ugOl?vyoFBJ8->3 zCDL3`$0Jkb0n)!k_rJ=>owmB0tDCG0ZhS)YTcOcrM!4BkJZ6NDPZ*; zgYslxrrr(U!cpW)+)k*bDz9D*oFIk$&M?r7B8S(xakn_=3}$C7qtkcdAqYBcatP^% zK1|m%MPu=_j9aPLPhe5?$t=gPRHAm8WUK&HYj=g457 z!QCrI#w|%1J1;k7h^jF-gX?g8&DAyZo9IfAF=KF+YQTh , "Project Includes" - *********************************************************************************************************************/ -#include -#include -#include -#include - -#include "r_bsp_config.h" -#if defined(__CCRX__) || defined(__ICCRX__) || defined(__RX__) -#include "r_sci_rx_if.h" -#include "r_sci_rx_pinset.h" -//#include "r_irq_rx_if.h" -#elif defined(__CCRL__) || defined(__ICCRL78__) || defined(__RL) -#include "r_sci_rl_if.h" -#endif - -#include "r_cellular_config.h" -#include "r_cellular_private.h" -#include "ryz014_private.h" - -#if BSP_CFG_RTOS_USED == (1) -#include "FreeRTOS.h" -#include "semphr.h" -#include "task.h" -#include "event_groups.h" -#elif BSP_CFG_RTOS_USED == (5) -#include -#include -#include -#include -#endif - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ -typedef enum -{ - CELLULAR_SUCCESS = 0, // Successful - CELLULAR_ERR_PARAMETER = -1, // Argument is abnormal - CELLULAR_ERR_ALREADY_OPEN = -2, // Already initialized - CELLULAR_ERR_NOT_OPEN = -3, // Not initialized - CELLULAR_ERR_SERIAL_OPEN = -4, // Serial initialization failed. - CELLULAR_ERR_MODULE_COM = -5, // Communication with module failed - CELLULAR_ERR_NOT_CONNECT = -6, // Not connected to access point - CELLULAR_ERR_ALREADY_CONNECT = -7, // Already connect to access point - CELLULAR_ERR_ALREADY_SOCKET_CONNECT = -8, // Already socket connect - CELLULAR_ERR_SOCKET_NOT_READY = -9, // Socket is not ready for use - CELLULAR_ERR_SOCKET_CREATE_LIMIT = -10, // Socket creation limit exceeded - CELLULAR_ERR_BYTEQ_OPEN = -11, // Failed to initialize the byte queue - CELLULAR_ERR_SEMAPHORE_INIT = -12, // Failed to initialize the semaphore - CELLULAR_ERR_EVENT_GROUP_INIT = -13, // Failed to initialize the event group - CELLULAR_ERR_CREATE_TASK = -14, // Failed to create task - CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING = -15, // Other AT commands are running - CELLULAR_ERR_MEMORY_ALLOCATION = -16, // Failed to allocate memory -} e_cellular_err_t; - -typedef enum -{ - CELLULAR_SYSTEM_CLOSE = 0, // Open function unexecuted - CELLULAR_SYSTEM_OPEN, // Open function already executed - CELLULAR_SYSTEM_CONNECT, // Connecting to AP -} e_cellular_system_status_t; - -typedef enum -{ - CELLULAR_MODULE_OPERATING_LEVEL0 = 0, // Default - CELLULAR_MODULE_OPERATING_LEVEL1, // Full functional use possible - CELLULAR_MODULE_OPERATING_LEVEL2, // Transmission function disabled - CELLULAR_MODULE_OPERATING_LEVEL3, // Reception function disabled - CELLULAR_MODULE_OPERATING_LEVEL4, // In-flight mode -} e_cellular_module_status_t; - -typedef enum -{ - CELLULAR_SOCKET_STATUS_CLOSED = 0, // Socket uncreated - CELLULAR_SOCKET_STATUS_SOCKET, // Socket creation - CELLULAR_SOCKET_STATUS_CONNECTED, // Socket connected - CELLULAR_SOCKET_STATUS_MAX, // End of enumeration -} e_cellular_socket_status_t; - -typedef enum -{ - CELLULAR_TX_END_FLAG_OFF = 0, // TX end flag off - CELLULAR_TX_END_FLAG_ON, // TX end flag on -} e_cellular_tx_end_flg_t; - -typedef enum -{ - CELLULAR_RECEIVE_FLAG_OFF = 0, // Receive flag off - CELLULAR_RECEIVE_FLAG_ON, // Receive flag off -} e_cellular_receive_flg_t; - -typedef enum -{ - CELLULAR_ATC_OK = 0, // Successful - CELLULAR_ATC_ERR_PARAMETER = -1, // Argument is abnormal - CELLULAR_ATC_ERR_MODULE_COM = -2, // Communication with module failed - CELLULAR_ATC_ERR_COMPARE = -3, // The return value from the module is disappointing. - CELLULAR_ATC_ERR_TIMEOUT = -4, // Time out -} e_cellular_err_atc_t; - -typedef enum -{ - CELLULAR_NOT_TIMEOUT = 0, // No timeout. - CELLULAR_TIMEOUT = -1, // Timeout -} e_cellular_timeout_check_t; - -typedef enum -{ - CELLULAR_SEMAPHORE_SUCCESS = 0, // Semaphore processing succeeded - CELLULAR_SEMAPHORE_ERR_GIVE = -1, // Semaphore release failed - CELLULAR_SEMAPHORE_ERR_TAKE = -2, // Semaphore acquisition failed. -} e_cellular_err_semaphore_t; - -typedef enum -{ - CELLULAR_TIMEOUT_NOT_OVERFLOW = 0, // There is no overflow in the timeout setting - CELLULAR_TIMEOUT_OVERFLOW, // Overflow in timeout setting -} e_cellular_timeout_ovf_check_t; - -typedef enum -{ - CELLULAR_ATC_RESPONCE_CONFIRMED = 0, // AT command response confirmed - CELLULAR_ATC_RESPONCE_UNCONFIRMED, // AT command response Unconfirmed -} e_cellular_atc_res_check_t; - -typedef enum -{ - CELLULAR_EDRX_MODE_INVALID = 0, // Disable the edrx function - CELLULAR_EDRX_MODE_ACTIVE = 1, // Enable the edrx function - CELLULAR_EDRX_MODE_ACTIVE_RESULT = 2, // Activate the edrx function and return the results - CELLULAR_EDRX_MODE_INIT = 3, // Initialize and disable the edrx function -} e_cellular_edrx_mode_t; - -typedef enum -{ - CELLULAR_EDRX_CYCLE_0 = 0, // Set the edrx cycle(5.12sec) - CELLULAR_EDRX_CYCLE_1 = 1, // Set the edrx cycle(10.24sec) - CELLULAR_EDRX_CYCLE_2 = 2, // Set the edrx cycle(20.48sec) - CELLULAR_EDRX_CYCLE_3 = 3, // Set the edrx cycle(40.96sec) - CELLULAR_EDRX_CYCLE_4 = 4, // Set the edrx cycle(61.44sec) - CELLULAR_EDRX_CYCLE_5 = 5, // Set the edrx cycle(81.92sec) - CELLULAR_EDRX_CYCLE_6 = 6, // Set the edrx cycle(102.40sec) - CELLULAR_EDRX_CYCLE_7 = 7, // Set the edrx cycle(122.88sec) - CELLULAR_EDRX_CYCLE_8 = 8, // Set the edrx cycle(143.36sec) - CELLULAR_EDRX_CYCLE_9 = 9, // Set the edrx cycle(163.84sec) - CELLULAR_EDRX_CYCLE_10 = 10, // Set the edrx cycle(327.68sec) - CELLULAR_EDRX_CYCLE_11 = 11, // Set the edrx cycle(655.36sec) - CELLULAR_EDRX_CYCLE_12 = 12, // Set the edrx cycle(1,310.72sec) - CELLULAR_EDRX_CYCLE_13 = 13, // Set the edrx cycle(2,621.44sec) - CELLULAR_EDRX_CYCLE_14 = 14, // Set the edrx cycle(5,242.88sec) - CELLULAR_EDRX_CYCLE_15 = 15, // Set the edrx cycle(10,485.76sec) -} e_cellular_edrx_cycle_t; - -typedef enum -{ - CELLULAR_PSM_MODE_INVALID = 0, // Disable the PSM function - CELLULAR_PSM_MODE_ACTIVE = 1, // Enable the PSM function - CELLULAR_PSM_MODE_INIT = 2, // Initialize and disable the PSM function -} e_cellular_psm_mode_t; - -typedef enum -{ - CELLULAR_PSM_CYCLE_0 = 0, // TAU cycle(10min) , Active time(2sec) - CELLULAR_PSM_CYCLE_1 = 1, // TAU cycle(1hour) , Active time(1min) - CELLULAR_PSM_CYCLE_2 = 2, // TAU cycle(10hour) , Active time(6min) - CELLULAR_PSM_CYCLE_3 = 3, // TAU cycle(2sec) , Active time(Timer is deactivated) - CELLULAR_PSM_CYCLE_4 = 4, // TAU cycle(30sec) , Active time(unavailable) - CELLULAR_PSM_CYCLE_5 = 5, // TAU cycle(1min) , Active time(unavailable) - CELLULAR_PSM_CYCLE_6 = 6, // TAU cycle(320hour) , Active time(unavailable) - CELLULAR_PSM_CYCLE_7 = 7, // TAU cycle(Timer is deactivated) , Active time(unavailable) -} e_cellular_psm_cycle_t; - -typedef enum -{ - CELLULAR_CYCLE_MULTIPLIER_0 = 0, // Multiplier 0 - CELLULAR_CYCLE_MULTIPLIER_1 = 1, // Multiplier 1 - CELLULAR_CYCLE_MULTIPLIER_2 = 2, // Multiplier 2 - CELLULAR_CYCLE_MULTIPLIER_3 = 3, // Multiplier 3 - CELLULAR_CYCLE_MULTIPLIER_4 = 4, // Multiplier 4 - CELLULAR_CYCLE_MULTIPLIER_5 = 5, // Multiplier 5 - CELLULAR_CYCLE_MULTIPLIER_6 = 6, // Multiplier 6 - CELLULAR_CYCLE_MULTIPLIER_7 = 7, // Multiplier 7 - CELLULAR_CYCLE_MULTIPLIER_8 = 8, // Multiplier 8 - CELLULAR_CYCLE_MULTIPLIER_9 = 9, // Multiplier 9 - CELLULAR_CYCLE_MULTIPLIER_10 = 10, // Multiplier 10 - CELLULAR_CYCLE_MULTIPLIER_11 = 11, // Multiplier 11 - CELLULAR_CYCLE_MULTIPLIER_12 = 12, // Multiplier 12 - CELLULAR_CYCLE_MULTIPLIER_13 = 13, // Multiplier 13 - CELLULAR_CYCLE_MULTIPLIER_14 = 14, // Multiplier 14 - CELLULAR_CYCLE_MULTIPLIER_15 = 15, // Multiplier 15 - CELLULAR_CYCLE_MULTIPLIER_16 = 16, // Multiplier 16 - CELLULAR_CYCLE_MULTIPLIER_17 = 17, // Multiplier 17 - CELLULAR_CYCLE_MULTIPLIER_18 = 18, // Multiplier 18 - CELLULAR_CYCLE_MULTIPLIER_19 = 19, // Multiplier 19 - CELLULAR_CYCLE_MULTIPLIER_20 = 20, // Multiplier 20 - CELLULAR_CYCLE_MULTIPLIER_21 = 21, // Multiplier 21 - CELLULAR_CYCLE_MULTIPLIER_22 = 22, // Multiplier 22 - CELLULAR_CYCLE_MULTIPLIER_23 = 23, // Multiplier 23 - CELLULAR_CYCLE_MULTIPLIER_24 = 24, // Multiplier 24 - CELLULAR_CYCLE_MULTIPLIER_25 = 25, // Multiplier 25 - CELLULAR_CYCLE_MULTIPLIER_26 = 26, // Multiplier 26 - CELLULAR_CYCLE_MULTIPLIER_27 = 27, // Multiplier 27 - CELLULAR_CYCLE_MULTIPLIER_28 = 28, // Multiplier 28 - CELLULAR_CYCLE_MULTIPLIER_29 = 29, // Multiplier 29 - CELLULAR_CYCLE_MULTIPLIER_30 = 30, // Multiplier 30 - CELLULAR_CYCLE_MULTIPLIER_31 = 31, // Multiplier 31 -} e_cellular_cycle_multiplier_t; - -#if (CELLULAR_IMPLEMENT_TYPE == 'B') -typedef enum -{ - CELLULAR_NVM_TYPE_CERTIFICATE = 0, //Certificate - CELLULAR_NVM_TYPE_PRIVATEKEY //PrivateKey -} e_cellular_nvm_type_t; - -typedef enum -{ - CELLULAR_NO_CERT_VALIDATE = 0, //certificate not validated - CELLULAR_VALIDATE_CERT_EXPDATE = 1, //Validate certificate chain, validity period - CELLULAR_VALIDATE_CERT_EXPDATE_CN = 5, //Validate certificate chain, validity period, common name -} e_cellular_cert_validate_level_t; - -typedef enum -{ - CELLULAR_SSL_DEACTIVE= 0, //Deactivate secure socket - CELLULAR_SSL_ACTIVE = 1, //Activate SSL/TLS on the socket -} e_cellular_ssl_active_t; -#endif - -typedef struct cellular_socket_time_ctrl -{ - e_cellular_timeout_ovf_check_t timeout_overflow_flag; - uint32_t start_time; // Start time - uint32_t this_time; // Now Time - uint32_t end_time; // End time - uint32_t remain_time; // Remaining time -} st_cellular_socket_time_ctrl_t; - -typedef struct cellular_module_time_ctrl -{ - e_cellular_timeout_ovf_check_t timeout_overflow_flag; - uint32_t start_time; // Start time - uint32_t this_time; // Now Time - uint32_t end_time; // End time -} st_cellular_module_time_ctrl_t; - -typedef struct cellular_datetime -{ - uint8_t year; // Year - uint8_t month; // Month - uint8_t day; // Day - uint8_t hour; // Hour - uint8_t min; // Minute - uint8_t sec; // Second - int8_t timezone; // Time Zone -} st_cellular_datetime_t; - -typedef struct cellular_sci_ctrl -{ - uint32_t baud_rate; // Baudrate - uint32_t tx_buff_size; // Command send buffer size - uint8_t atc_buff[CELLULAR_ATC_BUFF_SIZE]; // AT command buffer - uint32_t rx_buff_size; // Command receive buffer size - uint8_t receive_buff[CELLULAR_ATC_RESPONSE_BUFF_SIZE]; // receive buffer - uint16_t tx_process_size; // Size per send - uint16_t rx_process_size; // Size per receive - uint32_t atc_timeout; // AT command response timeout - volatile e_cellular_tx_end_flg_t tx_end_flg; // Transmission completion flag - sci_cb_evt_t sci_err_flg; // sci error flg - st_cellular_module_time_ctrl_t timeout_ctrl; // Timeout management structure - st_cellular_datetime_t time; // Daytime management structure - e_atc_list_t at_command; // Running AT command - e_cellular_atc_return_t atc_res; // AT command response - e_cellular_atc_res_check_t atc_flg; // Response status of AT command - sci_hdl_t sci_hdl; // sci_hdl -} st_cellular_sci_ctrl_t; - -typedef struct cellular_socket_ctrl -{ - uint32_t receive_num; // Size received from the module - int16_t receive_unprocessed_size; // Data size possessed by the module - volatile e_cellular_receive_flg_t receive_flg; // Receivable Flag - uint8_t * p_recv; // Pointer to the receive buffer - uint32_t total_recv_count; // Total received data size - uint16_t packet_data_size; // Data size per packet - uint16_t exchange_timeout; // Exchange timeout - uint16_t connect_timeout; // Socket connection timeout - uint8_t send_timeout; // Packet transmission timeout - uint32_t receive_count; // Receive byte count - e_cellular_socket_status_t socket_status; // Socket Status - uint8_t ipversion; // IP Version - uint8_t protocol; // Protocol Type - uint32_t ipaddr; // Destination IP address - uint32_t port; // Destination port number - void * rx_semaphore; // Semaphore handle (for receiving) - st_cellular_socket_time_ctrl_t cellular_tx_timeout_ctrl; // Transmission timeout management structure - st_cellular_socket_time_ctrl_t cellular_rx_timeout_ctrl; // Receive timeout management structure -} st_cellular_socket_ctrl_t; - -typedef struct cellular_ctrl -{ - uint8_t ap_name[64 + 1]; // AP name - uint8_t ap_user_name[32 + 1]; // AP user name - uint8_t ap_pass[64 + 1]; // AP Password - uint8_t sim_pin_code[8 + 1]; // SIM Pin Code - uint8_t ap_connect_retry; // AP connection retry limit - uint8_t dns_address[4]; // IP address obtained by DNS query - e_cellular_system_status_t system_state; // AP connection status - e_cellular_module_status_t module_status; // Module Status - void * at_semaphore; // Semaphore handle (for at command) - void * recv_taskhandle; // Task handle - void * eventgroup; // Event Group Handles - st_cellular_sci_ctrl_t sci_ctrl; // Module communication management structure - st_cellular_socket_ctrl_t * p_socket_ctrl; // Pointer to the socket management structure - uint8_t creatable_socket; // Number of sockets to create -} st_cellular_ctrl_t; - -typedef struct cellular_cfg -{ - uint8_t ap_name[64 + 1]; // AP name - uint8_t ap_user_name[32 + 1]; // AP user name - uint8_t ap_pass[64 + 1]; // AP Password - uint8_t sim_pin_code[8 + 1]; // SIM Pin Code - uint32_t baud_rate; // Baudrate - uint8_t ap_gatt_retry_count; // AP connection retry limit - uint32_t sci_timeout; // Communication timeout with module - uint16_t tx_process_size; // Size per send(1~1500) - uint16_t rx_process_size; // Size per receive(1~1500) - uint16_t packet_data_size; // Data size per packet(0~1500) - uint16_t exchange_timeout; // Exchange timeout(0~65535) - uint16_t connect_timeout; // Socket connection timeout(0,10~1200) - uint8_t send_timeout; // Packet transmission timeout(0~255). Set fixed value(10). - uint8_t creatable_socket; // Number of sockets to create(1~6) -} st_cellular_cfg_t; - -/***************************************************************************** - * Public Functions - *****************************************************************************/ -/************************************************************************************************* - * Function Name @fn R_CELLULAR_Open - * Description @details Establish a communication state with the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] p_cfg - - * Pointer to the configuration structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully established a communication state with the module - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_ALREADY_OPEN - - * Already initialized. - * @retval CELLULAR_ERR_SERIAL_OPEN - - * Serial initialization failed. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ************************************************************************************************/ -e_cellular_err_t R_CELLULAR_Open (st_cellular_ctrl_t * const p_ctrl, const st_cellular_cfg_t * const p_cfg); - -/*************************************************************************************** - * Function Name @fn R_CELLULAR_Close - * Description @details Terminate communication with the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully disconnected communication with module. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - **************************************************************************************/ -e_cellular_err_t R_CELLULAR_Close (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************** - * Function Name @fn R_CELLULAR_APConnect - * Description @details Connect to an access point. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully connected to access point. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - *************************************************************************/ -e_cellular_err_t R_CELLULAR_APConnect (st_cellular_ctrl_t * const p_ctrl); - -/****************************************************************************** - * Function Name @fn R_CELLULAR_IsConnected - * Description @details Get the connection status to the access point. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully obtained connection status. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_NOT_CONNECT - - * Not connected to access point. - *****************************************************************************/ -e_cellular_err_t R_CELLULAR_IsConnected (st_cellular_ctrl_t * const p_ctrl); - -/******************************************************************************* - * Function Name @fn R_CELLULAR_Disconnect - * Description @details Disconnect from the access point. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully disconnected from access point. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ******************************************************************************/ -e_cellular_err_t R_CELLULAR_Disconnect (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************ - * Function Name @fn R_CELLULAR_CreateSocket - * Description @details Perform socket connection. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] protocol_type - - * Protocol Type. - * @param[in] ip_version - - * IP Version. - * Return Value @retval 1 to 6 - * Successfully created a socket. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_SOCKET_NUM - - * No available socket. - * @retval CELLULAR_ERR_NOT_CONNECT - - * Not connected to access point. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ***********************************************************************/ -int32_t R_CELLULAR_CreateSocket (st_cellular_ctrl_t * const p_ctrl, - const uint8_t protocol_type, - const uint8_t ip_version); - -/************************************************************************ - * Function Name @fn R_CELLULAR_CloseSocket - * Description @details Close the socket. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Number to close socket. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully closed the socket. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_SOCKET_NUM - - * No available socket. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_CloseSocket (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no); - -/************************************************************************ - * Function Name @fn R_CELLULAR_ConnectSocket - * Description @details Perform socket connection. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Number to close socket. - * @param[in] ip_address - - * Destination IP address. - * @param[in] port - - * Destination port number. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully socket connection. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_SOCKET_NUM - - * No available socket. - * @retval CELLULAR_ERR_NOT_CONNECT - - * Not connected to access point. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_ConnectSocket (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, - const uint32_t ip_address, const uint16_t port); - -/************************************************************************ - * Function Name @fn R_CELLULAR_ConnectSocketToHost - * Description @details Perform socket connection. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Number to connect socket. - * @param[in] p_hostname - - * Destination Host Name. - * @param[in] port - - * Destination port number. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully socket connection. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_NOT_OPEN - - * R_CELLULAR_Open function is not executed. - * @retval CELLULAR_ERR_SOCKET_NUM - - * No available socket. - * @retval CELLULAR_ERR_NOT_CONNECT - - * Not connected to access point. - * @retval CELLULAR_ERR_ALREADY_SOCKET_CONNECT - - * Already socket connect. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_ConnectSocketToHost (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, - const uint8_t * p_hostname, const uint16_t port); - -/************************************************************************ - * Function Name @fn R_CELLULAR_ShutdownSocket - * Description @details Disconnect the socket connection. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Number to close socket. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully disconnected the socket connection. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_SOCKET_NUM - - * No available socket. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_ShutdownSocket (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no); - -/************************************************************************************************* - * Function Name @fn R_CELLULAR_SendSocket - * Description @details Sending data to a socket. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Socket number for sending data. - * @param[in] p_data - - * Pointer to send data. - * @param[in] length - - * Send data size. - * @param[in] timeout_ms - - * timeout millisecond. - * Return Value @retval More than 1 - - * Successfully sent data. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_SOCKET_NUM - - * No available socket. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ************************************************************************************************/ -int32_t R_CELLULAR_SendSocket (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, - const uint8_t * const p_data, const int32_t length, - const uint32_t timeout_ms); - -/************************************************************************************************* - * Function Name @fn R_CELLULAR_ReceiveSocket - * Description @details Reading data from a socket. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Socket number for reading data. - * @param[in] p_data - - * Pointer to store the read data. - * @param[in] length - - * Read data size. - * @param[in] timeout_ms - - * timeout millisecond. - * Return Value @retval More than 1 - - * Successfully loaded data. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_SOCKET_NUM - - * No available socket. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ************************************************************************************************/ -int32_t R_CELLULAR_ReceiveSocket (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, - uint8_t * const p_data, const int32_t length, - const uint32_t timeout_ms); - -/************************************************************************************************* - * Function Name @fn R_CELLULAR_SetTime - * Description @details Set time to module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] p_time - - * Pointer to set time. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully set the time. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ************************************************************************************************/ -e_cellular_err_t R_CELLULAR_SetTime (st_cellular_ctrl_t * const p_ctrl, const st_cellular_datetime_t * const p_time); - -/************************************************************************ - * Function Name @fn R_CELLULAR_GetTime - * Description @details Get the time in the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[out] p_time - - * Pointer to store the retrieved time. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully obtained time. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_GetTime (st_cellular_ctrl_t * const p_ctrl, st_cellular_datetime_t * const p_time); - -/************************************************************************ - * Function Name @fn R_CELLULAR_DnsQuery - * Description @details Execute DNS query. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] p_domain_name - - * Pointer to domain name. - * @param[out] p_ip_address - - * Pointer to store IP address. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully DNS query. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_NOT_OPEN - - * R_CELLULAR_Open function is not executed. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_DnsQuery (st_cellular_ctrl_t * const p_ctrl, const uint8_t * const p_domain_name, - uint32_t * const p_ip_address); - -/************************************************************************ - * Function Name @fn R_CELLULAR_SetEDRX - * Description @details Set eDRX. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] mode - - * Value of the mode to set. - * @param[in] edrx - - * Value of eDRX setting. - * @param[in] ptw - - * Value of PTW setting. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully set up eDRX. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_NOT_OPEN - - * R_CELLULAR_Open function is not executed. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_SetEDRX (st_cellular_ctrl_t * const p_ctrl, const e_cellular_edrx_mode_t mode, - const e_cellular_edrx_cycle_t edrx, const e_cellular_edrx_cycle_t ptw); - -/************************************************************************ - * Function Name @fn R_CELLULAR_SetPSM - * Description @details Execute DNS query. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] mode - - * Value of the mode to set. - * @param[in] tau - - * Value of TAU setting. - * @param[in] tau_multiplier - - * Set the TAU multiplier. - * @param[in] active - - * Value of active time setting. - * @param[in] active_multiplier - - * Set the active time multiplier. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully set up PSM. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_NOT_OPEN - - * R_CELLULAR_Open function is not executed. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_SetPSM (st_cellular_ctrl_t * const p_ctrl, const e_cellular_psm_mode_t mode, - const e_cellular_psm_cycle_t tau, const e_cellular_cycle_multiplier_t tau_multiplier, - const e_cellular_psm_cycle_t active, const e_cellular_cycle_multiplier_t active_multiplier); - -#if (CELLULAR_IMPLEMENT_TYPE == 'B') -/************************************************************************ - * Function Name @fn R_CELLULAR_WriteCertificate - * Description @details Write certificate or private key to non-volatile memory of the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] data_type - - * Information to write. - * @param[in] index - - * Destination index. - * @param[in] p_data - - * Pointer to the data to write. - * @param[in] size - - * Size of the data to be written. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully write certificate. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_NOT_OPEN - - * R_CELLULAR_Open function is not executed. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_WriteCertificate (st_cellular_ctrl_t * const p_ctrl, const e_cellular_nvm_type_t data_type, - const uint8_t index, const uint8_t * p_data, - const uint32_t size); - -/************************************************************************ - * Function Name @fn R_CELLULAR_EraseCertificate - * Description @details Erase certificate or private key to non-volatile memory of the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] data_type - - * Information to write. - * @param[in] index - - * Destination index. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully erase certificate. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_NOT_OPEN - - * R_CELLULAR_Open function is not executed. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_EraseCertificate (st_cellular_ctrl_t * const p_ctrl, const e_cellular_nvm_type_t data_type, - const uint8_t index); - -/************************************************************************ - * Function Name @fn R_CELLULAR_ConfigSSLProfile - * Description @details Configurate security profile. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] security_profile_id - - * Security Profile identifier - * @param[in] cert_valid_level - - * Server certificate validation - * @param[in] ca_certificate_id - - * Certificate ID of a trusted certification authority - * by written to non-volatile memory. - * @param[in] client_certificate_id - - * Client certificate ID by written to non-volatile memory. - * @param[in] client_privatekey_id - - * Privatekey ID by written to non-volatile memory. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully configurate. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_NOT_OPEN - - * R_CELLULAR_Open function is not executed. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_ConfigSSLProfile (st_cellular_ctrl_t * const p_ctrl, - const uint8_t security_profile_id, - const e_cellular_cert_validate_level_t cert_valid_level, - const uint8_t ca_certificate_id, - const uint8_t client_certificate_id, - const uint8_t client_privatekey_id); - -/************************************************************************ - * Function Name @fn R_CELLULAR_ConfigSSLSocket - * Description @details Execute DNS query. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Socket number to configurate. - * @param[in] active - - * Pointer to store IP address. - * @param[in] security_profile_id - - * Link to Security Profile identifier. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully configurate. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_NOT_OPEN - - * R_CELLULAR_Open function is not executed. - * @retval CELLULAR_ERR_SOCKET_NOT_READY - - * Socket is not ready for use. - * @retval CELLULAR_ERR_ALREADY_SOCKET_CONNECT - - * Already socket connect. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_ConfigSSLSocket (st_cellular_ctrl_t * const p_ctrl, - const uint8_t socket_no, - const e_cellular_ssl_active_t active, - const uint8_t security_profile_id); -#endif /* (CELLULAR_IMPLEMENT_TYPE == 'B') */ - -#endif /* CELLULAR_IF_H */ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/ref/r_cellular_config_reference.h b/vendors/renesas/rx_driver_package/v132/r_cellular/ref/r_cellular_config_reference.h deleted file mode 100644 index 7c95d129a99..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/ref/r_cellular_config_reference.h +++ /dev/null @@ -1,88 +0,0 @@ -/* Generated configuration header file - do not edit */ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_config.h - * Description : Configures the driver. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -#ifndef CELLULAR_CONFIG_H -#define CELLULAR_CONFIG_H - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "platform.h" - -/*********************************************************************************************************************** - * Configuration Options - **********************************************************************************************************************/ -#define CELLULAR_CFG_AP_NAME ap_name /* Access point name */ -#define CELLULAR_CFG_AP_USERID ap_userid /* Login ID */ -#define CELLULAR_CFG_AP_PASSWORD ap_password /* Access point password */ -#define CELLULAR_CFG_PIN_CODE 0000 /* SIM card PIN code */ - -#define CELLULAR_CFG_ATC_RETRY_GATT (100) /* Connection retry limit */ -#define CELLULAR_CFG_INT_PRIORITY (4) /* SCI priority */ -#define CELLULAR_CFG_SEMAPHORE_BLOCK_TIME (15000) /* Maximum semaphore acquisition latency(msec) */ - -#define CELLULAR_CFG_DEBUGLOG (4) /* 0: OFF, 1: ERROR, 2: +WARN, 3: +INFO, 4: +DEBUG(AT command data) */ - -#define CELLULAR_CFG_RESET_SIGNAL_LOGIC (1) /* 1: active high (in this case when user would use PMOD RYZ014A) 0: active low */ -#if CELLULAR_CFG_RESET_SIGNAL_LOGIC == 1 -#define CELLULAR_CFG_RESET_SIGNAL_ON (1) -#define CELLULAR_CFG_RESET_SIGNAL_OFF (0) -#else -#define CELLULAR_CFG_RESET_SIGNAL_ON (0) -#define CELLULAR_CFG_RESET_SIGNAL_OFF (1) -#endif - -/* These default value is for using RX65N Cloud Kit PMOD to connect to PMOD-RYZ014A */ -#define CELLULAR_CFG_UART_SCI_CH (0) - -#define CELLULAR_CFG_RTS_PORT 2 -#define CELLULAR_CFG_RTS_PIN 2 - -#define CELLULAR_CFG_RESET_PORT D -#define CELLULAR_CFG_RESET_PIN 0 - -/* board dependent settings: please use following settings value in manually if you would like to use following board. - -Confirmed board number: -1: RX65N Cloud Kit(PMOD(CN5)) -2: RX65N Envision Kit(PMOD(CN14)) - -Confirmed board number 1 2 -CELLULAR_CFG_UART_SCI_CH 0 2 -CELLULAR_CFG_RTS_PORT 2 5 -CELLULAR_CFG_RTS_PIN 2 1 -CELLULAR_CFG_RESET_PORT D 5 -CELLULAR_CFG_RESET_PIN 0 5 - -*/ - -#endif /* CELLULAR_CONFIG_H */ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/AzureRTOS/cellular_block_pool_control.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/AzureRTOS/cellular_block_pool_control.c deleted file mode 100644 index 1890af4af80..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/AzureRTOS/cellular_block_pool_control.c +++ /dev/null @@ -1,139 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_byte_pool_control.c - * Description : Manages the memory byte pool. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_freertos.h" - -#if BSP_CFG_RTOS_USED == (5) -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ -TX_BLOCK_POOL g_cellular_scoket_pool; -TX_BLOCK_POOL g_cellular_event_pool; -TX_BLOCK_POOL g_cellular_thread_pool; -TX_BLOCK_POOL g_cellular_semaphore_pool; - -static uint8_t cellular_socket_pool[TOTAL_SOCKET_BLOCK_SIZE]; -static uint8_t cellular_event_pool[TOTAL_EVENT_BLOCK_SIZE]; -static uint8_t cellular_thread_pool[TOTAL_THREAD_BLOCK_SIZE]; -static uint8_t cellular_semaphore_pool[TOTAL_SEMAPHORE_BLOCK_SIZE]; - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/***************************************************************************************** - * Function Name @fn cellular_block_pool_create - ****************************************************************************************/ -e_cellular_err_t cellular_block_pool_create(void) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - UINT rtos_ret; - - rtos_ret = tx_block_pool_create(&g_cellular_scoket_pool, "socket pool", - sizeof(st_cellular_socket_ctrl_t), cellular_socket_pool, TOTAL_SOCKET_BLOCK_SIZE); - - if (TX_SUCCESS == rtos_ret) - { - rtos_ret = tx_block_pool_create(&g_cellular_event_pool, "event pool", - sizeof(TX_EVENT_FLAGS_GROUP), cellular_event_pool, TOTAL_EVENT_BLOCK_SIZE); - } - - if (TX_SUCCESS == rtos_ret) - { - rtos_ret = tx_block_pool_create(&g_cellular_thread_pool, "thread pool", - sizeof(TX_THREAD), cellular_thread_pool, TOTAL_THREAD_BLOCK_SIZE); - } - - if (TX_SUCCESS == rtos_ret) - { - rtos_ret = tx_block_pool_create(&g_cellular_semaphore_pool, "semaphore pool", - sizeof(TX_SEMAPHORE), cellular_semaphore_pool, TOTAL_SEMAPHORE_BLOCK_SIZE); - } - - if (TX_SUCCESS != rtos_ret) - { - ret = CELLULAR_ERR_MEMORY_ALLOCATION; - } - - - return ret; -} -/********************************************************************************************************************** - * End of function cellular_block_pool_create - *********************************************************************************************************************/ - -/***************************************************************************************** - * Function Name @fn cellular_block_pool_delete - ****************************************************************************************/ -e_cellular_err_t cellular_block_pool_delete(void) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - UINT rtos_ret; - - rtos_ret = tx_block_pool_delete(&g_cellular_scoket_pool); - - if (TX_SUCCESS == rtos_ret) - { - rtos_ret = tx_block_pool_delete(&g_cellular_event_pool); - } - - if (TX_SUCCESS == rtos_ret) - { - rtos_ret = tx_block_pool_delete(&g_cellular_thread_pool); - } - - if (TX_SUCCESS == rtos_ret) - { - rtos_ret = tx_block_pool_delete(&g_cellular_semaphore_pool); - } - - if (TX_SUCCESS != rtos_ret) - { - ret = CELLULAR_ERR_MEMORY_ALLOCATION; - } - - return ret; -} -/********************************************************************************************************************** - * End of function cellular_block_pool_delete - *********************************************************************************************************************/ -#endif /* BSP_CFG_RTOS_USED == 5 */ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_create_event_group.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_create_event_group.c deleted file mode 100644 index 7e05cd97709..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_create_event_group.c +++ /dev/null @@ -1,80 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_create_event_group.c - * Description : Function to create an event group using RTOS features. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/**************************************************************************** - * Function Name @fn cellular_create_event_group - ***************************************************************************/ -void * cellular_create_event_group(const char *str) -{ - void * p_ret = NULL; -#if BSP_CFG_RTOS_USED == (1) - (void *)str; - - p_ret = xEventGroupCreate(); -#elif BSP_CFG_RTOS_USED == (5) - UINT rtos_ret; - - p_ret = cellular_malloc(sizeof(TX_EVENT_FLAGS_GROUP)); - if (NULL != p_ret) - { - rtos_ret = tx_event_flags_create((TX_EVENT_FLAGS_GROUP *)p_ret, (CHAR *)str); - if (TX_SUCCESS != rtos_ret) - { - cellular_free(p_ret); - } - } -#endif - return p_ret; -} -/********************************************************************************************************************** - * End of function cellular_create_event_group - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_create_semaphore.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_create_semaphore.c deleted file mode 100644 index e2c98c78a10..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_create_semaphore.c +++ /dev/null @@ -1,80 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_create_semaphore.c - * Description : Function to create a semaphore using RTOS features. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/**************************************************************************** - * Function Name @fn cellular_create_semaphore - ***************************************************************************/ -void * cellular_create_semaphore(const char *str) -{ - void * p_ret = NULL; -#if BSP_CFG_RTOS_USED == (1) - (void *)str; - - p_ret = xSemaphoreCreateMutex(); -#elif BSP_CFG_RTOS_USED == (5) - UINT rtos_ret; - - p_ret = cellular_malloc(sizeof(TX_SEMAPHORE)); - if (NULL != p_ret) - { - rtos_ret = tx_semaphore_create((TX_SEMAPHORE *)p_ret, (CHAR *)str, 1u); - if (TX_SUCCESS != rtos_ret) - { - cellular_free(p_ret); - } - } -#endif - return p_ret; -} -/********************************************************************************************************************** - * End of function cellular_create_semaphore - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_create_task.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_create_task.c deleted file mode 100644 index 981f7b9d582..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_create_task.c +++ /dev/null @@ -1,115 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_create_task.c - * Description : Function to create a task using RTOS features. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ -#if BSP_CFG_RTOS_USED == (5) -st_cellular_ctrl_t * gp_cellular_ctrl; -#endif - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/**************************************************************************** - * Function Name @fn cellular_create_task - ***************************************************************************/ -#if BSP_CFG_RTOS_USED == (1) -e_cellular_err_t -#elif BSP_CFG_RTOS_USED == (5) -void * -#endif -cellular_create_task(void *(pxTaskCode)(void *), - const char * const pcName, - const uint16_t usStackDepth, - void * const pvParameters, - const uint32_t uxPriority, - void * const pxCreatedTask) -{ -#if BSP_CFG_RTOS_USED == (1) - e_cellular_err_t ret = CELLULAR_SUCCESS; - int32_t rtos_ret; - - rtos_ret = xTaskCreate((TaskFunction_t)pxTaskCode, - pcName, - (configSTACK_DEPTH_TYPE)usStackDepth, - pvParameters, - tskIDLE_PRIORITY + (UBaseType_t)uxPriority, - (TaskHandle_t *)pxCreatedTask); - - if (pdPASS != rtos_ret) - { - ret = CELLULAR_ERR_CREATE_TASK; - } - - return ret; -#elif BSP_CFG_RTOS_USED == (5) - UINT tx_ret = 0; - void * p_ret = NULL; - - p_ret = cellular_malloc(sizeof(TX_THREAD)); - if (NULL != p_ret) - { - tx_ret = tx_thread_create((TX_THREAD *)p_ret, (CHAR *)pcName, - pxTaskCode, 0u, - (usStackDepth / sizeof(ULONG)), usStackDepth, - uxPriority, uxPriority, - TX_NO_TIME_SLICE, TX_AUTO_START); - if(tx_ret != TX_SUCCESS) - { - cellular_free(p_ret); - } - else - { - gp_cellular_ctrl = (st_cellular_ctrl_t *)pvParameters; - } - } - - return p_ret; -#endif -} -/********************************************************************************************************************** - End of function cellular_create_task - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_delay_task.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_delay_task.c deleted file mode 100644 index 598f77ef327..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_delay_task.c +++ /dev/null @@ -1,70 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_delay_task.c - * Description : Function to perform a delay using RTOS functions. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_freertos.h" -#if BSP_CFG_RTOS_USED == (5) -#include "tx_api.h" -#endif - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/**************************************************************************** - * Function Name @fn cellular_delay_task - ***************************************************************************/ -void cellular_delay_task(const uint32_t delay_time) -{ -#if BSP_CFG_RTOS_USED == (1) - vTaskDelay(pdMS_TO_TICKS(delay_time + 1)); //Convert to milliseconds -#elif BSP_CFG_RTOS_USED == (5) - tx_thread_sleep(MS_TO_TICKS(delay_time + 1)); //Convert to milliseconds -#endif - return; -} -/********************************************************************************************************************** - * End of function cellular_delay_task - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_delete_event_group.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_delete_event_group.c deleted file mode 100644 index 3c9945fbec3..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_delete_event_group.c +++ /dev/null @@ -1,72 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_delete_event_group.c - * Description : Function to delete an event group using RTOS functions. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/**************************************************************************** - * Function Name @fn cellular_delete_event_group - ***************************************************************************/ -void cellular_delete_event_group(void * xEventGroup) -{ - if (NULL != xEventGroup) - { -#if BSP_CFG_RTOS_USED == (1) - vEventGroupDelete((EventGroupHandle_t)xEventGroup); -#elif BSP_CFG_RTOS_USED == (5) - tx_event_flags_delete((TX_EVENT_FLAGS_GROUP *)xEventGroup); - cellular_free(xEventGroup); -#endif - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_delete_event_group - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_delete_semaphore.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_delete_semaphore.c deleted file mode 100644 index 8f2ceaf3cf6..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_delete_semaphore.c +++ /dev/null @@ -1,75 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_delete_semaphore.c - * Description : Function to delete a semaphore using RTOS functions. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/**************************************************************************** - * Function Name @fn cellular_delete_semaphore - * Description @details Delete semaphore. - * Arguments @param[in] xEventGroup - - * Pointer to the semaphore to be deleted. - ***************************************************************************/ -void cellular_delete_semaphore(void * xSemaphore) -{ - if (NULL != xSemaphore) - { -#if BSP_CFG_RTOS_USED == (1) - vSemaphoreDelete((SemaphoreHandle_t)xSemaphore); -#elif BSP_CFG_RTOS_USED == (5) - tx_semaphore_delete((TX_SEMAPHORE *)xSemaphore); - cellular_free(xSemaphore); -#endif - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_delete_semaphore - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_delete_task.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_delete_task.c deleted file mode 100644 index 01f82128d34..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_delete_task.c +++ /dev/null @@ -1,73 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_delete_task.c - * Description : Function to delete a task using RTOS functions. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/**************************************************************************** - * Function Name @fn cellular_delete_task - ***************************************************************************/ -void cellular_delete_task(void * taskhandle) -{ - if (NULL != taskhandle) - { -#if BSP_CFG_RTOS_USED == (1) - vTaskDelete((TaskHandle_t)taskhandle); -#elif BSP_CFG_RTOS_USED == (5) - tx_thread_terminate((TX_THREAD *)taskhandle); - tx_thread_delete((TX_THREAD *)taskhandle); - cellular_free(taskhandle); -#endif - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_delete_task - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_free.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_free.c deleted file mode 100644 index 092603355eb..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_free.c +++ /dev/null @@ -1,71 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_free.c - * Description : Function to free memory. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/***************************************************************************************** - * Function Name @fn cellular_free - ****************************************************************************************/ -void cellular_free(void * p_free) -{ - if (NULL != p_free) - { -#if BSP_CFG_RTOS_USED == (1) - vPortFree(p_free); -#elif BSP_CFG_RTOS_USED == (5) - tx_block_release(p_free); -#endif - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_free - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_get_tickcount.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_get_tickcount.c deleted file mode 100644 index 6039b202eac..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_get_tickcount.c +++ /dev/null @@ -1,69 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_get_tickcount.c - * Description : Function to get the time elapsed since the task was started using the RTOS function. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/***************************************************************************************** - * Function Name @fn cellular_get_tickcount - ****************************************************************************************/ -uint32_t cellular_get_tickcount(void) -{ - uint32_t ret = 0; -#if BSP_CFG_RTOS_USED == (1) - ret = xTaskGetTickCount(); -#elif BSP_CFG_RTOS_USED == (5) - ret = tx_time_get(); -#endif - - return ret; -} -/********************************************************************************************************************** - * End of function cellular_get_tickcount - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_give_semaphore.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_give_semaphore.c deleted file mode 100644 index b0de337c120..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_give_semaphore.c +++ /dev/null @@ -1,79 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_give_semaphore.c - * Description : Function to return semaphore. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/***************************************************************************************** - * Function Name @fn cellular_give_semaphore - ****************************************************************************************/ -e_cellular_err_semaphore_t cellular_give_semaphore(void * const xSemaphore) -{ - e_cellular_err_semaphore_t ret = CELLULAR_SEMAPHORE_SUCCESS; - -#if BSP_CFG_RTOS_USED == (1) - if (pdTRUE != xSemaphoreGive((SemaphoreHandle_t)xSemaphore)) - { - ret = CELLULAR_SEMAPHORE_ERR_GIVE; - } -#elif BSP_CFG_RTOS_USED == (5) - UINT rtos_ret; - - rtos_ret = tx_semaphore_put((TX_SEMAPHORE *)xSemaphore); - if (TX_SUCCESS != rtos_ret) - { - ret = CELLULAR_SEMAPHORE_ERR_GIVE; - } -#endif - - return ret; -} -/********************************************************************************************************************** - * End of function cellular_give_semaphore - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_malloc.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_malloc.c deleted file mode 100644 index 13ce8c359d3..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_malloc.c +++ /dev/null @@ -1,89 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_malloc.c - * Description : Function to get memory. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ -#if BSP_CFG_RTOS_USED == (5) -extern TX_BLOCK_POOL g_cellular_scoket_pool; -extern TX_BLOCK_POOL g_cellular_event_pool; -extern TX_BLOCK_POOL g_cellular_thread_pool; -extern TX_BLOCK_POOL g_cellular_semaphore_pool; -#endif - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/***************************************************************************************** - * Function Name @fn cellular_malloc - ****************************************************************************************/ -void * cellular_malloc(const size_t size) -{ - void * p_ret = NULL; -#if BSP_CFG_RTOS_USED == (1) - p_ret = pvPortMalloc(size); -#elif BSP_CFG_RTOS_USED == (5) - switch(size) - { - case EVENT_BLOCK_SIZE: - tx_block_allocate(&g_cellular_event_pool, &p_ret, TX_NO_WAIT); - break; - case THREAD_BLOCK_SIZE: - tx_block_allocate(&g_cellular_thread_pool, &p_ret, TX_NO_WAIT); - break; - case SEMAPHORE_BLOCK_SIZE: - tx_block_allocate(&g_cellular_semaphore_pool, &p_ret, TX_NO_WAIT); - break; - default: - tx_block_allocate(&g_cellular_scoket_pool, &p_ret, TX_NO_WAIT); - break; - } -#endif - - return p_ret; -} -/********************************************************************************************************************** - * End of function cellular_malloc - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_synchro_event_group.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_synchro_event_group.c deleted file mode 100644 index ab672ffc5e4..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_synchro_event_group.c +++ /dev/null @@ -1,112 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_synchro_event_group.c - * Description : Function to synchronize between multiple tasks. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/***************************************************************************************** - * Function Name @fn cellular_synchro_event_group - ****************************************************************************************/ -uint32_t cellular_synchro_event_group(void * const xEventGroup, - const uint32_t uxBitsToSet, - const uint32_t uxBitsToWaitFor, - const uint32_t xTicksToWait) -{ - uint32_t ret = 0; - - if (NULL != xEventGroup) - { -#if BSP_CFG_RTOS_USED == (1) - if (CELLULAR_TIME_OUT_MAX_DELAY == xTicksToWait) - { - ret = xEventGroupSync((EventGroupHandle_t)xEventGroup, - (EventBits_t)uxBitsToSet, - (EventBits_t)uxBitsToWaitFor, - (TickType_t)portMAX_DELAY); - } - else - { - ret = xEventGroupSync((EventGroupHandle_t)xEventGroup, - (EventBits_t)uxBitsToSet, - (EventBits_t)uxBitsToWaitFor, - (TickType_t)xTicksToWait); - } -#elif BSP_CFG_RTOS_USED == (5) - UINT rtos_ret; - - rtos_ret = tx_event_flags_set((TX_EVENT_FLAGS_GROUP *)xEventGroup, - (ULONG)uxBitsToSet, - (UINT)TX_OR); - if (TX_SUCCESS == rtos_ret) - { - if (CELLULAR_TIME_OUT_MAX_DELAY == xTicksToWait) - { - rtos_ret = tx_event_flags_get((TX_EVENT_FLAGS_GROUP *)xEventGroup, - (ULONG)uxBitsToWaitFor, - (UINT)TX_AND, - (ULONG *)&ret, - (ULONG)TX_WAIT_FOREVER); - } - else - { - rtos_ret = tx_event_flags_get((TX_EVENT_FLAGS_GROUP *)xEventGroup, - (ULONG)uxBitsToWaitFor, - (UINT)TX_AND, - (ULONG *)&ret, - (ULONG)xTicksToWait); - } - } -#endif - } - - return ret; -} -/********************************************************************************************************************** - End of function cellular_synchro_event_group - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_take_semaphore.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_take_semaphore.c deleted file mode 100644 index f5ecde68f6c..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/cellular_take_semaphore.c +++ /dev/null @@ -1,75 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_take_semaphore.c - * Description : Function to get semaphore. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/***************************************************************************************** - * Function Name @fn cellular_take_semaphore - ****************************************************************************************/ -e_cellular_err_semaphore_t cellular_take_semaphore(void * const xSemaphore) -{ - e_cellular_err_semaphore_t ret = CELLULAR_SEMAPHORE_SUCCESS; -#if BSP_CFG_RTOS_USED == (1) - if (pdTRUE != xSemaphoreTake((SemaphoreHandle_t)xSemaphore, pdMS_TO_TICKS(CELLULAR_CFG_SEMAPHORE_BLOCK_TIME))) - { - ret = CELLULAR_SEMAPHORE_ERR_TAKE; - } -#elif BSP_CFG_RTOS_USED == (5) - if (TX_SUCCESS != tx_semaphore_get((TX_SEMAPHORE *)xSemaphore, MS_TO_TICKS(CELLULAR_CFG_SEMAPHORE_BLOCK_TIME))) - { - ret = CELLULAR_SEMAPHORE_ERR_TAKE; - } -#endif - - return ret; -} -/********************************************************************************************************************** - * End of function cellular_take_semaphore - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/include/cellular_freertos.h b/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/include/cellular_freertos.h deleted file mode 100644 index 0963dfb3279..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/RTOS/include/cellular_freertos.h +++ /dev/null @@ -1,290 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_freertos.h - * Description : Configures the driver. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -#ifndef CELLULAR_FREERTOS_H -#define CELLULAR_FREERTOS_H - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "r_cellular_if.h" - -#if (CELLULAR_CFG_DEBUGLOG != 0) -/* print debug info */ -#include "logging_levels.h" - -/* Logging configuration */ -#ifndef LIBRARY_LOG_NAME - #define LIBRARY_LOG_NAME "Renesas RYZ014A driver" -#endif - -#ifndef LIBRARY_LOG_LEVEL - #define LIBRARY_LOG_LEVEL (CELLULAR_CFG_DEBUGLOG) -#endif - -#if (LIBRARY_LOG_LEVEL != LOG_NONE) -#include "logging_stack.h" - -/* These messages describe the situations when a library encounters - * an error from which it cannot recover. */ -#define CELLULAR_LOG_ERROR( message ) LogError( message ) - -/* These messages describe the situations when a library encounters - * abnormal event that may be indicative of an error. Libraries continue - * execution after logging a warning.*/ -#define CELLULAR_LOG_WARN( message ) LogWarn( message ) - -/* These messages describe normal execution of a library. They provide - * the progress of the program at a coarse-grained level. */ -#define CELLULAR_LOG_INFO( message ) LogInfo( message ) - -/* Debug log messages are used to provide the - * progress of the program at a fine-grained level. These are mostly used - * for debugging and may contain excessive information such as internal - * variables, buffers, or other specific information. */ -#define CELLULAR_LOG_DEBUG( message ) LogDebug( message ) -#endif -#else /* CELLULAR_CFG_DEBUGLOG != 0 */ -/* Don't show logs */ -#define CELLULAR_LOG_ERROR( message ) (NULL) - -/* Don't show logs */ -#define CELLULAR_LOG_WARN( message ) (NULL) - -/* Don't show logs */ -#define CELLULAR_LOG_INFO( message ) (NULL) - -/* Don't show logs */ -#define CELLULAR_LOG_DEBUG( message ) (NULL) -#endif /* CELLULAR_CFG_DEBUGLOG != 0 */ - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ -#if BSP_CFG_RTOS_USED == (5) -/* Convert time to milliseconds */ -#define MS_TO_TICKS( time ) (( UINT )((( UINT)( time ) * ( UINT ) TX_TIMER_TICKS_PER_SECOND ) / ( UINT ) 1000U )) - -/* Get the memory size of the socket management structure */ -#define SOCKET_BLOCK_SIZE (sizeof(st_cellular_socket_ctrl_t)) - -/* Each memory block contains a pointer to the overhead represented by "sizeof(void *)" */ -#define TOTAL_SOCKET_BLOCK_SIZE (CELLULAR_CREATABLE_SOCKETS * (SOCKET_BLOCK_SIZE + sizeof(void *))) - -/* Get the memory size of the event group handle */ -#define EVENT_BLOCK_SIZE (sizeof(TX_EVENT_FLAGS_GROUP)) - -/* Each memory block contains a pointer to the overhead represented by "sizeof(void *)" */ -#define TOTAL_EVENT_BLOCK_SIZE (EVENT_BLOCK_SIZE + sizeof(void *)) - -/* Get the memory size of the thread structure */ -#define THREAD_BLOCK_SIZE (sizeof(TX_THREAD)) - -/* Each memory block contains a pointer to the overhead represented by "sizeof(void *)" */ -#define TOTAL_THREAD_BLOCK_SIZE (THREAD_BLOCK_SIZE + sizeof(void *)) - -/* Get the memory size of the semaphore handle */ -#define SEMAPHORE_BLOCK_SIZE (sizeof(TX_SEMAPHORE)) - -/* Each memory block contains a pointer to the overhead represented by "sizeof(void *)" */ -#define TOTAL_SEMAPHORE_BLOCK_SIZE ((CELLULAR_CREATABLE_SOCKETS + 1) * (SEMAPHORE_BLOCK_SIZE + sizeof(void *))) -#endif - -/***************************************************************************** - * Private Functions - *****************************************************************************/ -/**************************************************************************** - * Function Name @fn cellular_create_event_group - * Description @details Create an event group. - * Return Value @retval void * - - * Event group handle. - ***************************************************************************/ -void * cellular_create_event_group (const char * str); - -/**************************************************************************** - * Function Name @fn cellular_delete_event_group - * Description @details Delete event group. - * Arguments @param[in] xEventGroup - - * Pointer to the event group to be deleted. - ***************************************************************************/ -void cellular_delete_event_group (void * const xEventGroup); - -/***************************************************************************************** - * Function Name @fn cellular_synchro_event_group - * Description @details Synchronize between multiple tasks. - * Arguments @param[in] xEventGroup - - * Pointer to the created event group. - * Arguments @param[in] uxBitsToSet - - * Bits to set to event group. - * Arguments @param[in] uxBitsToWaitFor - - * Bits waiting to be set. - * Arguments @param[in] xTicksToWait - - * time out(millisecond). - * Return Value @retval uint32_t(0) - - * time out. - * uxBitsToWaitFor - - * Successful synchronization - ****************************************************************************************/ -uint32_t cellular_synchro_event_group (void * const xEventGroup, - const uint32_t uxBitsToSet, - const uint32_t uxBitsToWaitFor, - const uint32_t xTicksToWait); - -/**************************************************************************** - * Function Name @fn cellular_create_semaphore - * Description @details Create a semaphore. - * Return Value @retval void * - - * Semaphore handle. - ***************************************************************************/ -void * cellular_create_semaphore (const char * str); - -/**************************************************************************** - * Function Name @fn cellular_delete_semaphore - * Description @details Delete semaphore. - * Arguments @param[in] xEventGroup - - * Pointer to the semaphore to be deleted. - ***************************************************************************/ -void cellular_delete_semaphore (void * xSemaphore); - -/**************************************************************************** - * Function Name @fn cellular_create_task - * Description @details Create a task. - * Return Value @retval pdPASS(1) - - * Successful task creation. - * @retval Except for [pdPASS] - - * Failed to create task. - ***************************************************************************/ -#if BSP_CFG_RTOS_USED == (1) -e_cellular_err_t cellular_create_task (void *(pxTaskCode)(void *), - const char * const pcName, - const uint16_t usStackDepth, - void * const pvParameters, - const uint32_t uxPriority, - void * const pxCreatedTask); -#elif BSP_CFG_RTOS_USED == (5) -void * cellular_create_task (void *(pxTaskCode)(void *), - const char * const pcName, - const uint16_t usStackDepth, - void * const pvParameters, - const uint32_t uxPriority, - void * const pxCreatedTask); -#endif - - -/**************************************************************************** - * Function Name @fn cellular_delay_task - * Description @details Delay task. - * Arguments @param[in] delay_time - - * Time to perform delay(milliseconds). - ***************************************************************************/ -void cellular_delay_task (const uint32_t delay_time); - -/**************************************************************************** - * Function Name @fn cellular_delete_task - * Description @details Delete task. - * Arguments @param[in] taskhandle - - * Pointer to the taskhandle to be deleted. - ***************************************************************************/ -void cellular_delete_task (void * taskhandle); - -/***************************************************************************************** - * Function Name @fn cellular_get_tickcount - * Description @details Get the time that has elapsed since the task was started. - * Return Value @retval uint32_t - - * Time elapsed(millisecond). - ****************************************************************************************/ -uint32_t cellular_get_tickcount (void); - -/***************************************************************************************** - * Function Name @fn cellular_malloc - * Description @details Get memory. - * Arguments @param[in] size - - * Memory acquisition size. - * Return Value @retval void * - * Pointer to retrieved memory. - ****************************************************************************************/ -void * cellular_malloc (const size_t size); - -/***************************************************************************************** - * Function Name @fn cellular_free - * Description @details Memory release. - * Arguments @param[in] p_free - - * Pointer to memory. - ****************************************************************************************/ -void cellular_free (void * p_free); - -/***************************************************************************************** - * Function Name @fn cellular_give_semaphore - * Description @details Return semaphore. - * Arguments @param[in] xEventGroup - - * Pointer to the semaphore to be returned. - * Return Value @retval CELLULAR_SEMAPHORE_SUCCESS - * Semaphore return successful. - * CELLULAR_SEMAPHORE_ERR_GIVE - * Semaphore return failed. - ****************************************************************************************/ -e_cellular_err_semaphore_t cellular_give_semaphore (void * const xSemaphore); - -/***************************************************************************************** - * Function Name @fn cellular_take_semaphore - * Description @details Return semaphore. - * Arguments @param[in] xSemaphore - - * Pointer to get the semaphore. - * Return Value @retval CELLULAR_SEMAPHORE_SUCCESS - - * Semaphore return successful. - * CELLULAR_SEMAPHORE_ERR_TAKE - - * Semaphore acquisition failed. - ****************************************************************************************/ -e_cellular_err_semaphore_t cellular_take_semaphore (void * const xSemaphore); - -#if BSP_CFG_RTOS_USED == (5) -/***************************************************************************************** - * Function Name @fn cellular_block_pool_create - * Description @details Create a memory pool. - * Return Value @retval CELLULAR_SEMAPHORE_SUCCESS - - * Successfully created the memory pool. - * CELLULAR_ERR_MEMORY_ALLOCATION - - * Failed to create the memory pool. - ****************************************************************************************/ -e_cellular_err_t cellular_block_pool_create (void); - -/***************************************************************************************** - * Function Name @fn cellular_block_pool_delete - * Description @details Delete the memory pool. - * Return Value @retval CELLULAR_SEMAPHORE_SUCCESS - - * Successfully deleted the memory pool. - * CELLULAR_ERR_MEMORY_ALLOCATION - - * Failed to delete the memory pool. - ****************************************************************************************/ -e_cellular_err_t cellular_block_pool_delete (void); -#endif - -#endif /* CELLULAR_FREERTOS_H */ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_apconnect.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_apconnect.c deleted file mode 100644 index 7cb5818592d..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_apconnect.c +++ /dev/null @@ -1,168 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_apconnect.c - * Description : Function for connecting to an access point. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ -static e_cellular_err_t cellular_apconnect (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************** - * Function Name @fn R_CELLULAR_APConnect - *************************************************************************/ -e_cellular_err_t R_CELLULAR_APConnect(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_semaphore_t semahore_ret = CELLULAR_SEMAPHORE_SUCCESS; - - if (NULL == p_ctrl) - { - ret = CELLULAR_ERR_PARAMETER; - } - else - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - else if (CELLULAR_SYSTEM_CONNECT == p_ctrl->system_state) - { - ret = CELLULAR_ERR_ALREADY_CONNECT; - } - else - { - R_BSP_NOP(); - } - } - - if (CELLULAR_SUCCESS == ret) - { - semahore_ret = cellular_take_semaphore(p_ctrl->at_semaphore); - if (CELLULAR_SEMAPHORE_SUCCESS == semahore_ret) - { - if (CELLULAR_SUCCESS == ret) - { - ret = atc_cgdcont(p_ctrl); - } - - if ((CELLULAR_SUCCESS == ret) && - (strlen((char *)p_ctrl->ap_name) & strlen((char *)p_ctrl->ap_pass))) //(&uint8_t[]->char *) - { - ret = atc_cgauth(p_ctrl); - } - - if (CELLULAR_SUCCESS == ret) - { - ret = atc_cfun_check(p_ctrl); - } - - if (CELLULAR_SUCCESS == ret) - { - if (CELLULAR_MODULE_OPERATING_LEVEL1 != p_ctrl->module_status) - { - ret = atc_cfun(p_ctrl, CELLULAR_MODULE_OPERATING_LEVEL1); - } - } - if (CELLULAR_SUCCESS == ret) - { - ret = cellular_apconnect(p_ctrl); - } - cellular_give_semaphore(p_ctrl->at_semaphore); - } - else - { - ret = CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING; - } - } - - return ret; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_APConnect - *********************************************************************************************************************/ - -/************************************************************************** - * Function Name @fn cellular_apconnect - *************************************************************************/ -static e_cellular_err_t cellular_apconnect(st_cellular_ctrl_t * const p_ctrl) -{ - uint16_t cgatt_cnt = 0; - e_cellular_err_t ret; - - CELLULAR_LOG_INFO(("Trying access point [%s] connecting.", p_ctrl->ap_name)); - - while (1) - { - ret = atc_cgatt_check(p_ctrl); - if (CELLULAR_SUCCESS != ret) - { - CELLULAR_LOG_INFO(("Remaining retry count [%d].", p_ctrl->ap_connect_retry - cgatt_cnt)); - cgatt_cnt++; - atc_cgatt(p_ctrl, ATC_AP_CONNECT); - cellular_delay_task(CELLULAR_AP_CONNECT_RETRY_WAIT); - } - - if (CELLULAR_SYSTEM_CONNECT == p_ctrl->system_state) - { - CELLULAR_LOG_INFO(("Established connection to [%s].", p_ctrl->ap_name)); - break; - } - - if (cgatt_cnt > p_ctrl->ap_connect_retry) - { - ret = CELLULAR_ERR_MODULE_COM; - break; - } - } - - return ret; -} -/********************************************************************************************************************** - * End of function cellular_apconnect - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_close.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_close.c deleted file mode 100644 index 87702f3f7fc..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_close.c +++ /dev/null @@ -1,112 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_close.c - * Description : Function to terminate communication with the module. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/*************************************************************************************** - * Function Name @fn R_CELLULAR_Close - **************************************************************************************/ -e_cellular_err_t R_CELLULAR_Close(st_cellular_ctrl_t * const p_ctrl) -{ - uint8_t i; - e_cellular_err_t ret = CELLULAR_SUCCESS; - - if (NULL == p_ctrl) - { - ret = CELLULAR_ERR_PARAMETER; - } - - if (CELLULAR_SUCCESS == ret) - { - for (i = 0; i < p_ctrl->creatable_socket; i++ ) - { - cellular_closesocket(p_ctrl, i); - } - - if (CELLULAR_SYSTEM_CONNECT == p_ctrl->system_state) - { - cellular_disconnect(p_ctrl); - } - - cellular_delete_event_group(p_ctrl->eventgroup); - p_ctrl->eventgroup = NULL; - - cellular_delete_task(p_ctrl->recv_taskhandle); - p_ctrl->recv_taskhandle = NULL; - - cellular_delete_semaphore(p_ctrl->at_semaphore); - p_ctrl->at_semaphore = NULL; - - for (i = 0; i < p_ctrl->creatable_socket; i++ ) - { - cellular_delete_semaphore(p_ctrl->p_socket_ctrl[i].rx_semaphore); - p_ctrl->p_socket_ctrl[i].rx_semaphore = NULL; - } - - cellular_free(p_ctrl->p_socket_ctrl); - p_ctrl->p_socket_ctrl = NULL; - - cellular_serial_close(p_ctrl); - -#if BSP_CFG_RTOS_USED == (5) - cellular_block_pool_delete(); -#endif - - memset(p_ctrl, 0, sizeof(st_cellular_ctrl_t)); - - ret = CELLULAR_SUCCESS; - } - - return ret; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_Close - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_closesocket.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_closesocket.c deleted file mode 100644 index b3e6dd93b85..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_closesocket.c +++ /dev/null @@ -1,109 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_closesocket.c - * Description : Function to close the socket. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************ - * Function Name @fn R_CELLULAR_CloseSocket - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_CloseSocket(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - - if (NULL == p_ctrl) - { - ret = CELLULAR_ERR_PARAMETER; - } - - if (CELLULAR_SUCCESS == ret) - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - else if (CELLULAR_SYSTEM_OPEN == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_CONNECT; - } - else - { - R_BSP_NOP(); - } - } - - if (CELLULAR_SUCCESS == ret) - { - if ((CELLULAR_START_SOCKET_NUMBER > socket_no) || (p_ctrl->creatable_socket < socket_no)) - { - ret = CELLULAR_ERR_PARAMETER; - } - } - - if (CELLULAR_SUCCESS == ret) - { - if (CELLULAR_SOCKET_STATUS_CLOSED == - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].socket_status) - { - ret = CELLULAR_ERR_SOCKET_NOT_READY; - } - } - - if (CELLULAR_SUCCESS == ret) - { - ret = cellular_closesocket(p_ctrl, socket_no); - } - - return ret; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_CloseSocket - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_configsslprofile.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_configsslprofile.c deleted file mode 100644 index c753797448f..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_configsslprofile.c +++ /dev/null @@ -1,106 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_configsslprofile.c - * Version : 1.0 - * Description : Function to configurate security profile. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -#if (CELLULAR_IMPLEMENT_TYPE == 'B') -/************************************************************************ - * Function Name @fn R_CELLULAR_ConfigSSLProfile - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_ConfigSSLProfile(st_cellular_ctrl_t * const p_ctrl, - const uint8_t security_profile_id, - const e_cellular_cert_validate_level_t cert_valid_level, - const uint8_t ca_certificate_id, - const uint8_t client_certificate_id, - const uint8_t client_privatekey_id) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - - if ((NULL == p_ctrl) || - (CELLULAR_SECURITY_PROFILE_ID_L > security_profile_id) || - (CELLULAR_SECURITY_PROFILE_ID_H < security_profile_id) || - ((CELLULAR_NO_CERT_VALIDATE != cert_valid_level) && (CELLULAR_VALIDATE_CERT_EXPDATE != cert_valid_level) && - (CELLULAR_VALIDATE_CERT_EXPDATE_CN != cert_valid_level))) - { - ret = CELLULAR_ERR_PARAMETER; - } - else - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - } - - if (CELLULAR_SUCCESS == ret) - { - semaphore_ret = cellular_take_semaphore(p_ctrl->at_semaphore); - if (CELLULAR_SEMAPHORE_SUCCESS == semaphore_ret) - { - ret = atc_sqnspcfg(p_ctrl, security_profile_id, cert_valid_level, - ca_certificate_id, client_certificate_id, client_privatekey_id); - cellular_give_semaphore(p_ctrl->at_semaphore); - } - else - { - ret = CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING; - } - } - - return ret; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_ConfigSSLProfile - *********************************************************************************************************************/ -#endif /* (CELLULAR_IMPLEMENT_TYPE == 'B') */ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_configsslsocket.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_configsslsocket.c deleted file mode 100644 index 75e9ad502d4..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_configsslsocket.c +++ /dev/null @@ -1,136 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_configssltsocket.c - * Version : 1.0 - * Description : Function to activate SSL function of socket. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -#if (CELLULAR_IMPLEMENT_TYPE == 'B') -/************************************************************************ - * Function Name @fn R_CELLULAR_ConfigSSLSocket - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_ConfigSSLSocket(st_cellular_ctrl_t * const p_ctrl, - const uint8_t socket_no, - const e_cellular_ssl_active_t active, - const uint8_t security_profile_id) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - - if ((NULL == p_ctrl) || - ((CELLULAR_SSL_ACTIVE != active) && (CELLULAR_SSL_DEACTIVE != active)) || - (CELLULAR_SECURITY_PROFILE_ID_L > security_profile_id) || - (CELLULAR_SECURITY_PROFILE_ID_H < security_profile_id)) - { - ret = CELLULAR_ERR_PARAMETER; - } - - if (CELLULAR_SUCCESS == ret) - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - else if (CELLULAR_SYSTEM_OPEN == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_CONNECT; - } - else - { - R_BSP_NOP(); - } - } - if (CELLULAR_SUCCESS == ret) - { - if ((CELLULAR_START_SOCKET_NUMBER > socket_no) || (p_ctrl->creatable_socket < socket_no)) - { - ret = CELLULAR_ERR_PARAMETER; - } - } - - if (CELLULAR_SUCCESS == ret) - { - if (CELLULAR_SOCKET_STATUS_CLOSED == - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].socket_status) - { - ret = CELLULAR_ERR_SOCKET_NOT_READY; - } - else if (CELLULAR_SOCKET_STATUS_CONNECTED == - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].socket_status) - { - ret = CELLULAR_ERR_ALREADY_SOCKET_CONNECT; - } - else - { - R_BSP_NOP(); - } - } - - if (CELLULAR_SUCCESS == ret) - { - semaphore_ret = cellular_take_semaphore(p_ctrl->at_semaphore); - if (CELLULAR_SEMAPHORE_SUCCESS == semaphore_ret) - { - ret = atc_sqnsscfg(p_ctrl, socket_no, active, security_profile_id); - cellular_give_semaphore(p_ctrl->at_semaphore); - } - else - { - ret = CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING; - } - } - - return ret; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_ConfigSSLSocket - *********************************************************************************************************************/ -#endif /* (CELLULAR_IMPLEMENT_TYPE == 'B') */ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_connectsocket.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_connectsocket.c deleted file mode 100644 index 2a7a2826aec..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_connectsocket.c +++ /dev/null @@ -1,135 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_connectsocket.c - * Description : Function to implement socket connection. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************ - * Function Name @fn R_CELLULAR_ConnectSocket - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_ConnectSocket(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, - const uint32_t ip_address, const uint16_t port) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - - if ((NULL == p_ctrl) || (0 == ip_address) || (0 == port)) - { - ret = CELLULAR_ERR_PARAMETER; - } - else - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - else if (CELLULAR_SYSTEM_OPEN == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_CONNECT; - } - else - { - R_BSP_NOP(); - } - } - - if (CELLULAR_SUCCESS == ret) - { - if ((CELLULAR_START_SOCKET_NUMBER > socket_no) || (p_ctrl->creatable_socket < socket_no)) - { - ret = CELLULAR_ERR_PARAMETER; - } - } - - if (CELLULAR_SUCCESS == ret) - { - if (CELLULAR_SOCKET_STATUS_CLOSED == - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].socket_status) - { - ret = CELLULAR_ERR_SOCKET_NOT_READY; - } - else if (CELLULAR_SOCKET_STATUS_CONNECTED == - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].socket_status) - { - ret = CELLULAR_ERR_ALREADY_SOCKET_CONNECT; - } - else - { - R_BSP_NOP(); - } - } - - if (CELLULAR_SUCCESS == ret) - { - semaphore_ret = cellular_take_semaphore(p_ctrl->at_semaphore); - if (CELLULAR_SEMAPHORE_SUCCESS == semaphore_ret) - { - ret = atc_sqnsd(p_ctrl, socket_no, ip_address, port); - if (CELLULAR_SUCCESS == ret) - { - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].socket_status - = CELLULAR_SOCKET_STATUS_CONNECTED; - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].ipaddr = ip_address; - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].port = port; - } - cellular_give_semaphore(p_ctrl->at_semaphore); - } - else - { - ret = CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING; - } - } - - return ret; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_ConnectSocket - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_connectsockettohost.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_connectsockettohost.c deleted file mode 100644 index 5f12214c611..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_connectsockettohost.c +++ /dev/null @@ -1,150 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_connectsocket.c - * Description : Function to implement socket connection using host name.. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************ - * Function Name @fn R_CELLULAR_ConnectSocketToHost - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_ConnectSocketToHost(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, - const uint8_t * p_hostname, const uint16_t port) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - - if ((NULL == p_ctrl) || (NULL == p_hostname) || (0 == port)) - { - ret = CELLULAR_ERR_PARAMETER; - } - if (CELLULAR_SUCCESS == ret) - { - if (0 == strlen((const char *)p_hostname)) //(const uint8_t *) -> (const char *) - { - ret = CELLULAR_ERR_PARAMETER; - } - else if (CELLULAR_MAX_HOSTNAME_LENGTH < strlen((const char *)p_hostname)) //(const uint8_t *) -> (const char *) - { - ret = CELLULAR_ERR_PARAMETER; - } - else - { - R_BSP_NOP(); - } - } - if (CELLULAR_SUCCESS == ret) - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - else if (CELLULAR_SYSTEM_OPEN == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_CONNECT; - } - else - { - R_BSP_NOP(); - } - } - - if (CELLULAR_SUCCESS == ret) - { - if ((CELLULAR_START_SOCKET_NUMBER > socket_no) || (p_ctrl->creatable_socket < socket_no)) - { - ret = CELLULAR_ERR_PARAMETER; - } - } - - if (CELLULAR_SUCCESS == ret) - { - if (CELLULAR_SOCKET_STATUS_CLOSED == - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].socket_status) - { - ret = CELLULAR_ERR_SOCKET_NOT_READY; - } - else if (CELLULAR_SOCKET_STATUS_CONNECTED == - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].socket_status) - { - ret = CELLULAR_ERR_ALREADY_SOCKET_CONNECT; - } - else - { - R_BSP_NOP(); - } - } - - if (CELLULAR_SUCCESS == ret) - { - semaphore_ret = cellular_take_semaphore(p_ctrl->at_semaphore); - if (CELLULAR_SEMAPHORE_SUCCESS == semaphore_ret) - { - ret = atc_sqnsd_host(p_ctrl, socket_no, p_hostname, port); - if (CELLULAR_SUCCESS == ret) - { - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].socket_status - = CELLULAR_SOCKET_STATUS_CONNECTED; - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].ipaddr = 0; - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].port = port; - } - cellular_give_semaphore(p_ctrl->at_semaphore); - } - else - { - ret = CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING; - } - } - - return ret; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_ConnectSocketToHost - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_createsocket.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_createsocket.c deleted file mode 100644 index d91b8e7a5b3..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_createsocket.c +++ /dev/null @@ -1,164 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_createsocket.c - * Description : Function to create a socket. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ -static e_cellular_err_t cellular_socket_cfg (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_num); - -/************************************************************************ - * Function Name @fn R_CELLULAR_CreateSocket - ***********************************************************************/ -int32_t R_CELLULAR_CreateSocket(st_cellular_ctrl_t * const p_ctrl, const uint8_t protocol_type, - const uint8_t ip_version) -{ - uint8_t socket_num = 0; - int32_t ret = CELLULAR_SUCCESS; - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - - if ((NULL == p_ctrl) || ((CELLULAR_SOCKET_IP_PROTOCOL_TCP != protocol_type) && - (CELLULAR_SOCKET_IP_PROTOCOL_UDP != protocol_type)) || - (CELLULAR_SOCKET_IP_VERSION_4 != ip_version)) - { - ret = CELLULAR_ERR_PARAMETER; - } - else - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - else if (CELLULAR_SYSTEM_OPEN == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_CONNECT; - } - else - { - R_BSP_NOP(); - } - } - - if (CELLULAR_SUCCESS == ret) - { - semaphore_ret = cellular_take_semaphore(p_ctrl->at_semaphore); - if (CELLULAR_SEMAPHORE_SUCCESS == semaphore_ret) - { - while (socket_num < p_ctrl->creatable_socket) - { - if (CELLULAR_SOCKET_STATUS_CLOSED == p_ctrl->p_socket_ctrl[socket_num].socket_status) - { - break; - } - else - { - socket_num++; - } - } - - if (socket_num >= p_ctrl->creatable_socket) - { - ret = CELLULAR_ERR_SOCKET_CREATE_LIMIT; - } - else - { - ret = cellular_socket_cfg(p_ctrl, socket_num); -#if (CELLULAR_IMPLEMENT_TYPE == 'B') - if (CELLULAR_SUCCESS == ret) - { - ret = atc_sqnsscfg(p_ctrl, socket_num + CELLULAR_START_SOCKET_NUMBER, - CELLULAR_SSL_DEACTIVE, socket_num + CELLULAR_START_SOCKET_NUMBER); - } -#endif - if (CELLULAR_SUCCESS == ret) - { - p_ctrl->p_socket_ctrl[socket_num].ipversion = ip_version; - p_ctrl->p_socket_ctrl[socket_num].protocol = protocol_type; - p_ctrl->p_socket_ctrl[socket_num].socket_status = CELLULAR_SOCKET_STATUS_SOCKET; - p_ctrl->p_socket_ctrl[socket_num].receive_count = 0; - p_ctrl->p_socket_ctrl[socket_num].receive_num = 0; - p_ctrl->p_socket_ctrl[socket_num].port = 0; - p_ctrl->p_socket_ctrl[socket_num].ipaddr = 0; - p_ctrl->p_socket_ctrl[socket_num].receive_unprocessed_size = 0; - p_ctrl->p_socket_ctrl[socket_num].receive_flg = CELLULAR_RECEIVE_FLAG_OFF; - ret = socket_num + CELLULAR_START_SOCKET_NUMBER; - } - } - cellular_give_semaphore(p_ctrl->at_semaphore); - } - else - { - ret = CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING; - } - } - - return ret; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_CreateSocket - *********************************************************************************************************************/ - -/************************************************************************ - * Function Name @fn cellular_socket_cfg - ***********************************************************************/ -static e_cellular_err_t cellular_socket_cfg(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_num) -{ - e_cellular_err_t ret; - - ret = atc_sqnscfg(p_ctrl, socket_num + CELLULAR_START_SOCKET_NUMBER); - if (CELLULAR_SUCCESS == ret) - { - ret = atc_sqnscfgext(p_ctrl, socket_num + CELLULAR_START_SOCKET_NUMBER); - } - - return ret; -} -/********************************************************************************************************************** - * End of function cellular_socket_cfg - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_disconnect.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_disconnect.c deleted file mode 100644 index 00fbc8107cf..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_disconnect.c +++ /dev/null @@ -1,98 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_disconnect.c - * Description : Function to disconnect from the access point. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/******************************************************************************* - * Function Name @fn R_CELLULAR_Disconnect - ******************************************************************************/ -e_cellular_err_t R_CELLULAR_Disconnect(st_cellular_ctrl_t * const p_ctrl) -{ - uint8_t i; - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - - if (NULL == p_ctrl) - { - ret = CELLULAR_ERR_PARAMETER; - } - else - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - else if (CELLULAR_SYSTEM_OPEN == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_CONNECT; - } - else - { - R_BSP_NOP(); - } - } - - if (CELLULAR_SUCCESS == ret) - { - for (i = CELLULAR_START_SOCKET_NUMBER; i <= p_ctrl->creatable_socket; i++ ) - { - cellular_shutdownsocket(p_ctrl, i); - cellular_closesocket(p_ctrl, i); - } - - ret = cellular_disconnect(p_ctrl); - } - return ret; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_Disconnect - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_dnsquery.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_dnsquery.c deleted file mode 100644 index 16a006c2a16..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_dnsquery.c +++ /dev/null @@ -1,115 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_dnsquery.c - * Description : Function to execute DNS query. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************ - * Function Name @fn R_CELLULAR_DnsQuery - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_DnsQuery(st_cellular_ctrl_t * const p_ctrl, const uint8_t * const p_domain_name, - uint32_t * const p_ip_address) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - - if ((NULL == p_ctrl) || (NULL == p_domain_name) || (NULL == p_ip_address)) - { - ret = CELLULAR_ERR_PARAMETER; - } - else if (CELLULAR_MAX_HOSTNAME_LENGTH < strlen((const char *)p_domain_name)) //(const uint8_t *) ->(const char *) - { - ret = CELLULAR_ERR_PARAMETER; - } - else - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - else if (CELLULAR_SYSTEM_OPEN == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_CONNECT; - } - else - { - R_BSP_NOP(); - } - } - - if (CELLULAR_SUCCESS == ret) - { - semaphore_ret = cellular_take_semaphore(p_ctrl->at_semaphore); - if (CELLULAR_SEMAPHORE_SUCCESS == semaphore_ret) - { - ret = atc_sqndnslkup(p_ctrl, p_domain_name); - - if (CELLULAR_SUCCESS == ret) - { - *p_ip_address = ((uint32_t)(p_ctrl->dns_address[0]) << 24) | //(uint8_t)->(uint32_t) - ((uint32_t)(p_ctrl->dns_address[1]) << 16) | //(uint8_t)->(uint32_t) - ((uint32_t)(p_ctrl->dns_address[2]) << 8) | //(uint8_t)->(uint32_t) - ((uint32_t)p_ctrl->dns_address[3]); //(uint8_t)->(uint32_t) - } - - cellular_give_semaphore(p_ctrl->at_semaphore); - } - else - { - ret = CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING; - } - } - - return ret; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_DnsQuery - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_erasecertificate.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_erasecertificate.c deleted file mode 100644 index 6dbd3a36e19..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_erasecertificate.c +++ /dev/null @@ -1,102 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_erasecertificate.c - * Version : 1.0 - * Description : Function to send data to a socket. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -#if (CELLULAR_IMPLEMENT_TYPE == 'B') -/************************************************************************************************* - * Function Name @fn R_CELLULAR_EraseCertificate - ************************************************************************************************/ -e_cellular_err_t R_CELLULAR_EraseCertificate(st_cellular_ctrl_t * const p_ctrl, const e_cellular_nvm_type_t data_type, - const uint8_t index) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - - if ((NULL == p_ctrl) || (CELLULAR_MAX_NVM_CERTIFICATE_INDEX < index) || - ( CELLULAR_NVM_TYPE_PRIVATEKEY < data_type)) - { - ret = CELLULAR_ERR_PARAMETER; - } - else - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - else - { - R_BSP_NOP(); - } - } - - if (CELLULAR_SUCCESS == ret) - { - semaphore_ret = cellular_take_semaphore(p_ctrl->at_semaphore); - if (CELLULAR_SEMAPHORE_SUCCESS == semaphore_ret) - { - ret = atc_sqnsnvw_erase(p_ctrl, data_type, index); - cellular_give_semaphore(p_ctrl->at_semaphore); - } - else - { - ret = CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING; - } - } - - return ret; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_EraseCertificate - *********************************************************************************************************************/ -#endif /* (CELLULAR_IMPLEMENT_TYPE == 'B') */ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_gettime.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_gettime.c deleted file mode 100644 index 33eb1341804..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_gettime.c +++ /dev/null @@ -1,104 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_gettime.c - * Description : Function to get the time in a module. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************ - * Function Name @fn R_CELLULAR_GetTime - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_GetTime(st_cellular_ctrl_t * const p_ctrl, st_cellular_datetime_t * const p_time) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - - if ((NULL == p_ctrl) || (NULL == p_time)) - { - ret = CELLULAR_ERR_PARAMETER; - } - else - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - } - - if (CELLULAR_SUCCESS == ret) - { - memset(p_time, 0, sizeof(p_time)); - semaphore_ret = cellular_take_semaphore(p_ctrl->at_semaphore); - if (CELLULAR_SEMAPHORE_SUCCESS == semaphore_ret) - { - ret = atc_cclk_check(p_ctrl); - if (CELLULAR_SUCCESS == ret) - { - p_time->year = p_ctrl->sci_ctrl.time.year; - p_time->month = p_ctrl->sci_ctrl.time.month; - p_time->day = p_ctrl->sci_ctrl.time.day; - p_time->hour = p_ctrl->sci_ctrl.time.hour; - p_time->min = p_ctrl->sci_ctrl.time.min; - p_time->sec = p_ctrl->sci_ctrl.time.sec; - p_time->timezone = p_ctrl->sci_ctrl.time.timezone; - } - cellular_give_semaphore(p_ctrl->at_semaphore); - } - else - { - ret = CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING; - } - } - - return ret; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_GetTime - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_isconnected.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_isconnected.c deleted file mode 100644 index 52339d02147..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_isconnected.c +++ /dev/null @@ -1,85 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_isconnected.c - * Description : Function to get the connection status to an access point. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/****************************************************************************** - * Function Name @fn R_CELLULAR_IsConnected - *****************************************************************************/ -e_cellular_err_t R_CELLULAR_IsConnected(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - - if (NULL == p_ctrl) - { - ret = CELLULAR_ERR_PARAMETER; - } - else - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - } - - if (CELLULAR_SUCCESS == ret) - { - if (CELLULAR_SYSTEM_CONNECT != p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_CONNECT; - } - } - - return ret; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_IsConnected - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_open.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_open.c deleted file mode 100644 index 8002a5e6185..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_open.c +++ /dev/null @@ -1,301 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_open.c - * Description : Function to establish the communication state with the module. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include - -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ -static e_cellular_err_t cellular_config_init (st_cellular_ctrl_t * const p_ctrl, const st_cellular_cfg_t * const p_cfg); - -/************************************************************************************************* - * Function Name @fn R_CELLULAR_Open - ************************************************************************************************/ -e_cellular_err_t R_CELLULAR_Open(st_cellular_ctrl_t * const p_ctrl, const st_cellular_cfg_t * const p_cfg) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - - CELLULAR_LOG_INFO(("Called: R_CELLULAR_Open()")); - - if (NULL == p_ctrl) - { - ret = CELLULAR_ERR_PARAMETER; - goto R_CELLULAR_Open_fail; - } - else - { - if (CELLULAR_SYSTEM_CLOSE != p_ctrl->system_state) - { - ret = CELLULAR_ERR_ALREADY_OPEN; - goto R_CELLULAR_Open_fail; - } - } - -#if BSP_CFG_RTOS_USED == (5) - ret = cellular_block_pool_create(); - if (CELLULAR_SUCCESS != ret) - { - goto R_CELLULAR_Open_fail; - } -#endif - - ret = cellular_config_init(p_ctrl, p_cfg); - if (CELLULAR_SUCCESS != ret) - { - goto R_CELLULAR_Open_fail; - } - - ret = cellular_serial_open(p_ctrl); - if (CELLULAR_SUCCESS != ret) - { - goto R_CELLULAR_Open_fail; - } - - ret = cellular_semaphore_init(p_ctrl); - if (CELLULAR_SUCCESS != ret) - { - goto R_CELLULAR_Open_fail; - } - - ret = cellular_start_recv_task(p_ctrl); - if (CELLULAR_SUCCESS != ret) - { - goto R_CELLULAR_Open_fail; - } - - if ((CELLULAR_MAIN_TASK_BIT | CELLULAR_RECV_TASK_BIT) != - cellular_synchro_event_group(p_ctrl->eventgroup, CELLULAR_MAIN_TASK_BIT, - (CELLULAR_MAIN_TASK_BIT | CELLULAR_RECV_TASK_BIT), CELLULAR_TIME_WAIT_TASK_START)) - { - ret = CELLULAR_ERR_CREATE_TASK; - goto R_CELLULAR_Open_fail; - } - - CELLULAR_SET_DR(CELLULAR_CFG_RESET_PORT, CELLULAR_CFG_RESET_PIN) = CELLULAR_CFG_RESET_SIGNAL_ON; - CELLULAR_SET_DDR(CELLULAR_CFG_RESET_PORT, CELLULAR_CFG_RESET_PIN) = CELLULAR_PIN_DIRECTION_MODE_OUTPUT; - cellular_delay_task(1); /* hold reset signal time for cellular module */ - CELLULAR_SET_DR(CELLULAR_CFG_RESET_PORT, CELLULAR_CFG_RESET_PIN) = CELLULAR_CFG_RESET_SIGNAL_OFF; - cellular_delay_task(2000); /* wait wake up time for cellular module initialization */ - - ret = atc_ate0(p_ctrl); - if (CELLULAR_SUCCESS != ret) - { - CELLULAR_LOG_INFO(("First sending AT command to RYZ014A -> Failed.")); - goto R_CELLULAR_Open_fail; - } - - CELLULAR_LOG_INFO(("First sending AT command to RYZ014A -> Succeeded.")); - - ret = atc_sqnautoconnect(p_ctrl); - if (CELLULAR_SUCCESS != ret) - { - goto R_CELLULAR_Open_fail; - } - - ret = atc_sqnsimst(p_ctrl); - if (CELLULAR_SUCCESS != ret) - { - goto R_CELLULAR_Open_fail; - } - - ret = atc_cereg_off(p_ctrl); - if (CELLULAR_SUCCESS != ret) - { - goto R_CELLULAR_Open_fail; - } - - ret = atc_cfun(p_ctrl, CELLULAR_MODULE_OPERATING_LEVEL4); - if (CELLULAR_SUCCESS != ret) - { - goto R_CELLULAR_Open_fail; - } - - ret = atc_cpin_check(p_ctrl); - if (CELLULAR_SUCCESS != ret) - { - ret = atc_cpin(p_ctrl); - if (CELLULAR_SUCCESS != ret) - { - CELLULAR_LOG_ERROR(("PIN CODE ERROR.")); - goto R_CELLULAR_Open_fail; - } - } - p_ctrl->system_state = CELLULAR_SYSTEM_OPEN; - -R_CELLULAR_Open_fail: - - if ((CELLULAR_SUCCESS != ret) && (CELLULAR_ERR_ALREADY_OPEN != ret)) - { - CELLULAR_LOG_ERROR(("Error: R_CELLULAR_Open().")); - R_CELLULAR_Close(p_ctrl); - } - - CELLULAR_LOG_INFO(("Return from: R_CELLULAR_Open() with return code = %d.", ret)); - - return ret; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_Open - *********************************************************************************************************************/ - -/************************************************************************ - * Function Name @fn cellular_config_init - * Short Summary @brief Does an example task. - * Description @details Does an example task. Making this longer - * just to see how it wraps. Making this - * long just to see how it wraps. - * Preconditions @pre What should be in place before calling - * this? - * Warnings @warning Any big gotchas? - * Arguments @param[in] input parameters - * @param[out] input parameters - * @param[in/out] bidirectional parameters - * Return Value @retval what is passed back on completion - ***********************************************************************/ -/********************************************************************************************************************** - * @brief Get flash memory information (index and size) - * @param[in] addr blinking LED - * @param[out] block_index Index of flash block - * @param[out] block_size Size of flash block - * @retval true success - * @retval false fail - *********************************************************************************************************************/ -static e_cellular_err_t cellular_config_init(st_cellular_ctrl_t * const p_ctrl, const st_cellular_cfg_t * const p_cfg) -{ - uint8_t count; - void * malloc_ret = NULL; - e_cellular_err_t ret = CELLULAR_SUCCESS; - - if (NULL == p_cfg) - { - strcpy((char *)p_ctrl->ap_name, CELLULAR_STRING_CONVERT(CELLULAR_CFG_AP_NAME)); // (&uint8_t[])->(char *) - strcpy((char *)p_ctrl->ap_user_name, CELLULAR_STRING_CONVERT(CELLULAR_CFG_AP_USERID));// (&uint8_t[])->(char *) - strcpy((char *)p_ctrl->ap_pass, CELLULAR_STRING_CONVERT(CELLULAR_CFG_AP_PASSWORD)); // (&uint8_t[])->(char *) - strcpy((char *)p_ctrl->sim_pin_code, CELLULAR_STRING_CONVERT(CELLULAR_CFG_PIN_CODE)); // (&uint8_t[])->(char *) - p_ctrl->creatable_socket = CELLULAR_CREATABLE_SOCKETS; - malloc_ret = cellular_malloc((size_t)p_ctrl->creatable_socket * sizeof(st_cellular_socket_ctrl_t)); // -> long - if (NULL != malloc_ret) - { - memset(malloc_ret, 0x00, (size_t)p_ctrl->creatable_socket * sizeof(st_cellular_socket_ctrl_t)); // -> long - p_ctrl->p_socket_ctrl = malloc_ret; - p_ctrl->ap_connect_retry = CELLULAR_CFG_ATC_RETRY_GATT; - p_ctrl->sci_ctrl.baud_rate = CELLULAR_BAUDRATE; - p_ctrl->sci_ctrl.atc_timeout = CELLULAR_COMMAND_TIMEOUT; - for (count = 0; count < p_ctrl->creatable_socket; count++ ) - { - p_ctrl->p_socket_ctrl[count].send_timeout = CELLULAR_TX_TIMEOUT; - p_ctrl->p_socket_ctrl[count].exchange_timeout = CELLULAR_EX_TIMEOUT; - p_ctrl->p_socket_ctrl[count].connect_timeout = CELLULAR_CONNECT_TIMEOUT; - p_ctrl->p_socket_ctrl[count].packet_data_size = CELLULAR_PACKET_DATA_SIZE; - } - p_ctrl->sci_ctrl.rx_process_size = CELLULAR_MAX_RX_SIZE; - p_ctrl->sci_ctrl.tx_process_size = CELLULAR_MAX_TX_SIZE; - } - else - { - ret = CELLULAR_ERR_MEMORY_ALLOCATION; - } - } - else - { - if ((CELLULAR_MAX_AP_NAME_LENGTH < strlen((const char *)p_cfg->ap_name)) || // (&uint8_t[])->(char *) - (CELLULAR_MAX_AP_ID_LENGTH < strlen((const char *)p_cfg->ap_user_name)) || // (&uint8_t[])->(char *) - (CELLULAR_MAX_AP_PASS_LENGTH < strlen((const char *)p_cfg->ap_pass)) || // (&uint8_t[])->(char *) - (CELLULAR_MAX_SIM_PASS_LENGTH < strlen((const char *)p_cfg->sim_pin_code)) || // (&uint8_t[])->(char *) - (CELLULAR_START_SOCKET_NUMBER > p_cfg->creatable_socket) || - (CELLULAR_CREATABLE_SOCKETS < p_cfg->creatable_socket) || - (CELLULAR_BAUDRATE != p_cfg->baud_rate) || - (CELLULAR_CONNECT_TIMEOUT_LIMIT_L > p_cfg->connect_timeout) || - (CELLULAR_CONNECT_TIMEOUT_LIMIT_H < p_cfg->connect_timeout) || - (CELLULAR_PACKET_DATA_SIZE_LIMIT < p_cfg->packet_data_size) || - (CELLULAR_TX_SIZE_LIMIT_L > p_cfg->tx_process_size) || - (CELLULAR_TX_SIZE_LIMIT_H < p_cfg->tx_process_size) || - (CELLULAR_RX_SIZE_LIMIT_L > p_cfg->rx_process_size) || - (CELLULAR_RX_SIZE_LIMIT_H < p_cfg->rx_process_size)) - { - ret = CELLULAR_ERR_PARAMETER; - } - else - { - strcpy((char *)p_ctrl->ap_name, (const char *)p_cfg->ap_name); // (&uint8_t[])->(char *) - strcpy((char *)p_ctrl->ap_user_name, (const char *)p_cfg->ap_user_name); // (&uint8_t[])->(char *) - strcpy((char *)p_ctrl->ap_pass, (const char *)p_cfg->ap_pass); // (&uint8_t[])->(char *) - strcpy((char *)p_ctrl->sim_pin_code, (const char *)p_cfg->sim_pin_code); // (&uint8_t[])->(char *) - p_ctrl->creatable_socket = p_cfg->creatable_socket; - malloc_ret = cellular_malloc((size_t)p_ctrl->creatable_socket * sizeof(st_cellular_socket_ctrl_t)); // long - if (NULL != malloc_ret) - { - memset(malloc_ret, 0x00, (size_t)p_ctrl->creatable_socket * sizeof(st_cellular_socket_ctrl_t)); // long - p_ctrl->p_socket_ctrl = malloc_ret; - p_ctrl->ap_connect_retry = p_cfg->ap_gatt_retry_count; - p_ctrl->sci_ctrl.baud_rate = p_cfg->baud_rate; - p_ctrl->sci_ctrl.atc_timeout = p_cfg->sci_timeout; - for (count = 0; count < p_ctrl->creatable_socket; count++ ) - { - p_ctrl->p_socket_ctrl[count].send_timeout = p_cfg->send_timeout; - p_ctrl->p_socket_ctrl[count].exchange_timeout = p_cfg->exchange_timeout; - p_ctrl->p_socket_ctrl[count].connect_timeout = p_cfg->connect_timeout; - p_ctrl->p_socket_ctrl[count].packet_data_size = p_cfg->packet_data_size; - } - p_ctrl->sci_ctrl.rx_process_size = p_cfg->rx_process_size; - p_ctrl->sci_ctrl.tx_process_size = p_cfg->tx_process_size; - } - else - { - ret = CELLULAR_ERR_MEMORY_ALLOCATION; - } - } - } - - return ret; -} -/********************************************************************************************************************** - * End of function cellular_config_init - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_receivesocket.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_receivesocket.c deleted file mode 100644 index 6bc1877b9e3..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_receivesocket.c +++ /dev/null @@ -1,325 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_receivesocket.c - * Description : Functions to read data from a socket. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ -static int32_t cellular_receive_data (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, - uint8_t * const p_data, const int32_t length, const uint32_t timeout_ms); -static e_cellular_timeout_check_t cellular_receive_flag_check (st_cellular_ctrl_t * const p_ctrl, - st_cellular_socket_time_ctrl_t * const p_cellular_timeout_ctrl, - const uint8_t socket_no, const uint32_t timeout_ms); -static uint32_t cellular_recv_size_check (st_cellular_ctrl_t * const p_ctrl, - const uint8_t socket_no, const int32_t length); - -/************************************************************************************************* - * Function Name @fn R_CELLULAR_ReceiveSocket - * Description @details Reading data from a socket. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Socket number for reading data. - * @param[in] p_data - - * Pointer to store the read data. - * @param[in] length - - * Read data size. - * @param[in] timeout_ms - - * timeout millisecond. - * Return Value @retval More than 1 - - * Successfully loaded data. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_SOCKET_NUM - - * No available socket. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ************************************************************************************************/ -int32_t R_CELLULAR_ReceiveSocket(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, - uint8_t * const p_data, const int32_t length, const uint32_t timeout_ms) -{ - int32_t total_receive_length = 0; - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - - if ((NULL == p_data) || (0 >= length) || (NULL == p_ctrl)) - { - ret = CELLULAR_ERR_PARAMETER; - } - else - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - else if (CELLULAR_SYSTEM_OPEN == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_CONNECT; - } - else - { - R_BSP_NOP(); - } - } - - if (CELLULAR_SUCCESS == ret) - { - if ((CELLULAR_START_SOCKET_NUMBER > socket_no) || (p_ctrl->creatable_socket < socket_no)) - { - ret = CELLULAR_ERR_PARAMETER; - } - } - - if (CELLULAR_SUCCESS == ret) - { - if ((CELLULAR_SOCKET_STATUS_CONNECTED != - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].socket_status)) - { - ret = CELLULAR_ERR_SOCKET_NOT_READY; - } - } - - if (CELLULAR_SUCCESS == ret) - { - semaphore_ret = cellular_take_semaphore(p_ctrl->p_socket_ctrl[socket_no - - CELLULAR_START_SOCKET_NUMBER].rx_semaphore); - if (CELLULAR_SEMAPHORE_SUCCESS != semaphore_ret) - { - ret = CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING; - } - } - - if (CELLULAR_SUCCESS == ret) - { - total_receive_length = cellular_receive_data(p_ctrl, socket_no, p_data, length, timeout_ms); - cellular_give_semaphore(p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].rx_semaphore); - } - else - { - total_receive_length = ret; - } - - return total_receive_length; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_ReceiveSocket - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn cellular_receive_data - * Description @details Reading data from a socket. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Socket number for reading data. - * @param[in] p_data - - * Pointer to store the read data. - * @param[in] length - - * Read data size. - * @param[in] timeout_ms - - * timeout millisecond. - * Return Value @retval More than 1 - - * Successfully loaded data. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_SOCKET_NUM - - * No available socket. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ************************************************************************************************/ -static int32_t cellular_receive_data(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, - uint8_t * const p_data, const int32_t length, const uint32_t timeout_ms) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - e_cellular_timeout_check_t timeout = CELLULAR_NOT_TIMEOUT; - int32_t total_receive_length = 0; - uint32_t receive_size; - - st_cellular_socket_time_ctrl_t * const p_cellular_timeout_ctrl - = &p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].cellular_rx_timeout_ctrl; - - cellular_timeout_init(p_cellular_timeout_ctrl, timeout_ms); - - /* Data receive loop */ - while (length > total_receive_length) - { - timeout = cellular_receive_flag_check(p_ctrl, p_cellular_timeout_ctrl, socket_no, timeout_ms); - if (CELLULAR_TIMEOUT == timeout) - { - break; /* Break of the data receive loop */ - } - - semaphore_ret = cellular_take_semaphore(p_ctrl->at_semaphore); - if (CELLULAR_SEMAPHORE_SUCCESS != semaphore_ret) - { - break; /* Break of the data receive loop */ - } - else - { - receive_size = cellular_recv_size_check(p_ctrl, socket_no, - length - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].total_recv_count); - - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].p_recv = p_data; - - ret = atc_sqnsrecv(p_ctrl, socket_no, receive_size); - if (CELLULAR_SUCCESS == ret) - { - total_receive_length = p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].total_recv_count; - - timeout = cellular_check_timeout(p_cellular_timeout_ctrl); - if (CELLULAR_TIMEOUT == timeout) - { - goto cellular_receive_data_fail; - } - } - else - { - goto cellular_receive_data_fail; - } - cellular_give_semaphore(p_ctrl->at_semaphore); - } - } /* End of data receive loop */ - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].total_recv_count = 0; - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].p_recv = NULL; - - return total_receive_length; - -cellular_receive_data_fail: - { - cellular_give_semaphore(p_ctrl->at_semaphore); - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].total_recv_count = 0; - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].p_recv = NULL; - return total_receive_length; - } -} -/********************************************************************************************************************** - * End of function cellular_receive_data - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn cellular_receive_flag_check - * Description @details Wait for the AT command response. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Socket number for sending data. - * Return Value @retval CELLULAR_NOT_TIMEOUT - - * Successfully flag check. - * @retval CELLULAR_TIMEOUT - - * Time out. - ************************************************************************************************/ -static e_cellular_timeout_check_t cellular_receive_flag_check(st_cellular_ctrl_t * const p_ctrl, - st_cellular_socket_time_ctrl_t * const p_cellular_timeout_ctrl, - const uint8_t socket_no, const uint32_t timeout_ms) -{ - e_cellular_timeout_check_t timeout = CELLULAR_NOT_TIMEOUT; - - while (1) - { - if (CELLULAR_RECEIVE_FLAG_ON == p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].receive_flg) - { - break; - } - - timeout = cellular_check_timeout_remain(p_cellular_timeout_ctrl, timeout_ms); - if (CELLULAR_TIMEOUT == timeout) - { - break; - } - } - - return timeout; -} -/********************************************************************************************************************** - * End of function cellular_receive_flag_check - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn cellular_recv_size_check - * Description @details Check the size of the data to be receive. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Socket number for sending data. - * Return Value @retval Number of bytes received from the module. - ************************************************************************************************/ -static uint32_t cellular_recv_size_check(st_cellular_ctrl_t * const p_ctrl, - const uint8_t socket_no, const int32_t length) -{ - uint32_t receive_size = 0; - - if (p_ctrl->sci_ctrl.rx_buff_size > p_ctrl->sci_ctrl.rx_process_size) - { - receive_size = p_ctrl->sci_ctrl.rx_process_size; - } - else - { - receive_size = p_ctrl->sci_ctrl.rx_buff_size; - } - - if (receive_size > p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].receive_unprocessed_size) - { - receive_size = p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].receive_unprocessed_size; - } - - if (receive_size > length) - { - receive_size = length; - } - - return receive_size; -} -/********************************************************************************************************************** - * End of function cellular_recv_size_check - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_sendsocket.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_sendsocket.c deleted file mode 100644 index 8e683605d24..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_sendsocket.c +++ /dev/null @@ -1,349 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_sendsocket.c - * Description : Function to send data to a socket. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ -static int32_t cellular_send_data (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, - const uint8_t * const p_data, const int32_t length, const uint32_t timeout_ms); -static uint32_t cellular_send_size_check (st_cellular_ctrl_t * const p_ctrl, const int32_t length, - const int32_t complete_length); -static e_cellular_timeout_check_t cellular_tx_flag_check (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no); -static e_cellular_timeout_check_t cellular_atc_response_chek (st_cellular_ctrl_t * const p_ctrl, - const uint8_t socket_no); - -/************************************************************************************************* - * Function Name @fn R_CELLULAR_SendSocket - ************************************************************************************************/ -int32_t R_CELLULAR_SendSocket(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, - const uint8_t * const p_data, const int32_t length, const uint32_t timeout_ms) -{ - int32_t complete_length = 0; - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - - if ((NULL == p_data) || (0 >= length) || (NULL == p_ctrl)) - { - ret = CELLULAR_ERR_PARAMETER; - } - else - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - else if (CELLULAR_SYSTEM_OPEN == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_CONNECT; - } - else - { - R_BSP_NOP(); - } - } - - if (CELLULAR_SUCCESS == ret) - { - if ((CELLULAR_START_SOCKET_NUMBER > socket_no) || (p_ctrl->creatable_socket < socket_no)) - { - ret = CELLULAR_ERR_PARAMETER; - } - } - - if (CELLULAR_SUCCESS == ret) - { - if ((CELLULAR_SOCKET_STATUS_CONNECTED != - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].socket_status)) - { - ret = CELLULAR_ERR_SOCKET_NOT_READY; - } - } - - if (CELLULAR_SUCCESS == ret) - { - semaphore_ret = cellular_take_semaphore(p_ctrl->at_semaphore); - if (CELLULAR_SEMAPHORE_SUCCESS != semaphore_ret) - { - ret = CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING; - } - } - - if (CELLULAR_SUCCESS == ret) - { - complete_length = cellular_send_data(p_ctrl, socket_no, p_data, length, timeout_ms); - cellular_give_semaphore(p_ctrl->at_semaphore); - cellular_delay_task(1); - } - else - { - complete_length = ret; - } - - if (CELLULAR_SUCCESS != ret) - { - complete_length = ret; - } - - return complete_length; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_SendSocket - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn cellular_send_data - * Description @details Send data to the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Socket number for sending data. - * @param[in] p_data - - * Pointer to send data. - * @param[in] length - - * Send data size. - * @param[in] timeout_ms - - * timeout millisecond. - * Return Value @retval More than 1 - - * Successfully sent data. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_SOCKET_NUM - - * No available socket. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ************************************************************************************************/ -static int32_t cellular_send_data(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, - const uint8_t * const p_data, const int32_t length, const uint32_t timeout_ms) -{ - int32_t complete_length = 0; - uint32_t send_size = 0; - sci_err_t sci_ret = SCI_SUCCESS; - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_timeout_check_t timeout = CELLULAR_NOT_TIMEOUT; - - st_cellular_socket_time_ctrl_t * const p_cellular_timeout_ctrl = - &p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].cellular_tx_timeout_ctrl; - - cellular_timeout_init(p_cellular_timeout_ctrl, timeout_ms); - - while (complete_length < length) - { - if (CELLULAR_SOCKET_STATUS_CONNECTED != - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].socket_status) - { - ret = CELLULAR_ERR_SOCKET_NOT_READY; - break; - } - - send_size = cellular_send_size_check(p_ctrl, length, complete_length); - - ret = atc_sqnssendext(p_ctrl, socket_no, send_size); - if (CELLULAR_SUCCESS != ret) - { - break; - } - - p_ctrl->sci_ctrl.tx_end_flg = CELLULAR_TX_END_FLAG_OFF; - - sci_ret = R_SCI_Send(p_ctrl->sci_ctrl.sci_hdl, (const uint8_t *)p_data + complete_length, send_size); - if (SCI_SUCCESS != sci_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - break; - } - - cellular_set_atc_number(p_ctrl, ATC_SQNSSENDEXT_END); - - timeout = cellular_tx_flag_check(p_ctrl, socket_no); - if (CELLULAR_TIMEOUT != timeout) - { - timeout = cellular_atc_response_chek(p_ctrl, socket_no); - } - - if (CELLULAR_TIMEOUT == timeout) - { - break; - } - - complete_length += send_size; - } - - if (CELLULAR_SUCCESS != ret) - { - complete_length = ret; - } - - return complete_length; -} -/********************************************************************************************************************** - * End of function cellular_send_data - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn cellular_send_size_check - * Description @details Check the size of the data to be sent. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] length - - * Send data size. - * @param[in] complete_length - - * Size of the completed transmission to the module. - * Return Value @retval More than 1 - - * Successfully size check. - ************************************************************************************************/ -static uint32_t cellular_send_size_check(st_cellular_ctrl_t * const p_ctrl, const int32_t length, - const int32_t complete_length) -{ - uint32_t send_size = 0; - - if ((length - complete_length) > p_ctrl->sci_ctrl.tx_buff_size) - { - send_size = p_ctrl->sci_ctrl.tx_buff_size; - } - else - { - send_size = (length - complete_length); - } - - if (send_size > p_ctrl->sci_ctrl.tx_process_size) - { - send_size = p_ctrl->sci_ctrl.tx_process_size; - } - - return send_size; -} -/********************************************************************************************************************** - * End of function cellular_send_size_check - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn cellular_tx_flag_check - * Description @details Wait for transmission completion flag. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Socket number for sending data. - * Return Value @retval CELLULAR_NOT_TIMEOUT - - * Successfully flag check. - * @retval CELLULAR_TIMEOUT - - * Time out. - ************************************************************************************************/ -static e_cellular_timeout_check_t cellular_tx_flag_check(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no) -{ - e_cellular_timeout_check_t timeout = CELLULAR_NOT_TIMEOUT; - - st_cellular_socket_time_ctrl_t * const p_cellular_timeout_ctrl = - &p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].cellular_tx_timeout_ctrl; - - while (1) - { - if (CELLULAR_TX_END_FLAG_ON == p_ctrl->sci_ctrl.tx_end_flg) - { - break; - } - - timeout = cellular_check_timeout(p_cellular_timeout_ctrl); - if (CELLULAR_TIMEOUT == timeout) - { - break; - } - cellular_delay_task(1); - } - - return timeout; -} -/********************************************************************************************************************** - * End of function cellular_tx_flag_check - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn cellular_atc_response_chek - * Description @details Wait for the AT command response. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Socket number for sending data. - * Return Value @retval CELLULAR_NOT_TIMEOUT - - * Successfully flag check. - * @retval CELLULAR_TIMEOUT - - * Time out. - ************************************************************************************************/ -static e_cellular_timeout_check_t cellular_atc_response_chek(st_cellular_ctrl_t * const p_ctrl, - const uint8_t socket_no) -{ - e_cellular_atc_return_t at_ret = ATC_RETURN_NONE; - e_cellular_timeout_check_t timeout = CELLULAR_NOT_TIMEOUT; - - st_cellular_socket_time_ctrl_t * const p_cellular_timeout_ctrl = - &p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].cellular_tx_timeout_ctrl; - - while (1) - { - at_ret = cellular_get_atc_response(p_ctrl); - if (ATC_RETURN_OK == at_ret) - { - break; - } - - timeout = cellular_check_timeout(p_cellular_timeout_ctrl); - if (CELLULAR_TIMEOUT == timeout) - { - break; - } - - cellular_delay_task(1); - } - return timeout; -} -/********************************************************************************************************************** - * End of function cellular_atc_response_chek - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_setedrx.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_setedrx.c deleted file mode 100644 index a14930ab3ce..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_setedrx.c +++ /dev/null @@ -1,96 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_setedrx.c - * Description : Function to set the eDRX of the module. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************ - * Function Name @fn R_CELLULAR_SetEDRX - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_SetEDRX(st_cellular_ctrl_t * const p_ctrl, const e_cellular_edrx_mode_t mode, - const e_cellular_edrx_cycle_t edrx, const e_cellular_edrx_cycle_t ptw) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - - if ((NULL == p_ctrl) || ((CELLULAR_EDRX_MODE_INIT < mode) || (CELLULAR_EDRX_MODE_INVALID > mode)) || - ((CELLULAR_EDRX_CYCLE_0 > edrx) || (CELLULAR_EDRX_CYCLE_15 < edrx)) || - ((CELLULAR_EDRX_CYCLE_0 > ptw) || (CELLULAR_EDRX_CYCLE_15 < ptw))) - { - ret = CELLULAR_ERR_PARAMETER; - } - else - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - } - - if (CELLULAR_SUCCESS == ret) - { - semaphore_ret = cellular_take_semaphore(p_ctrl->at_semaphore); - if (CELLULAR_SEMAPHORE_SUCCESS == semaphore_ret) - { - ret = atc_sqnedrx(p_ctrl, mode, edrx, ptw); - cellular_give_semaphore(p_ctrl->at_semaphore); - } - else - { - ret = CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING; - } - } - - return ret; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_SetEDRX - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_setpsm.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_setpsm.c deleted file mode 100644 index aa88d0515fb..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_setpsm.c +++ /dev/null @@ -1,144 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_setpsm.c - * Description : Function to set the PSM of the module. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ -static e_cellular_err_t cellular_psm_config (st_cellular_ctrl_t * const p_ctrl, const e_cellular_psm_mode_t mode); - -/************************************************************************ - * Function Name @fn R_CELLULAR_SetPSM - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_SetPSM(st_cellular_ctrl_t * const p_ctrl, const e_cellular_psm_mode_t mode, - const e_cellular_psm_cycle_t tau, const e_cellular_cycle_multiplier_t tau_multiplier, - const e_cellular_psm_cycle_t active, const e_cellular_cycle_multiplier_t active_multiplier) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - - if ((NULL == p_ctrl) || ((CELLULAR_PSM_MODE_INVALID > mode) || (CELLULAR_PSM_MODE_INIT < mode)) || - ((CELLULAR_PSM_CYCLE_0 > tau) || (CELLULAR_PSM_CYCLE_7 < tau)) || - ((CELLULAR_PSM_CYCLE_0 > active) || (CELLULAR_PSM_CYCLE_7 < active)) || - ((CELLULAR_CYCLE_MULTIPLIER_0 > tau_multiplier) || (CELLULAR_CYCLE_MULTIPLIER_31 < tau_multiplier)) || - ((CELLULAR_CYCLE_MULTIPLIER_0 > active_multiplier) || (CELLULAR_CYCLE_MULTIPLIER_31 < active_multiplier))) - { - ret = CELLULAR_ERR_PARAMETER; - } - else - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - } - - if (CELLULAR_SUCCESS == ret) - { - semaphore_ret = cellular_take_semaphore(p_ctrl->at_semaphore); - if (CELLULAR_SEMAPHORE_SUCCESS == semaphore_ret) - { - ret = cellular_psm_config(p_ctrl, mode); - if (CELLULAR_SUCCESS == ret) - { - ret = atc_cpsms(p_ctrl, mode, tau, tau_multiplier, active, active_multiplier); - } - cellular_give_semaphore(p_ctrl->at_semaphore); - } - else - { - ret = CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING; - } - } - - return ret; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_SetPSM - *********************************************************************************************************************/ - -/************************************************************************ - * Function Name @fn cellular_psm_config - ***********************************************************************/ -static e_cellular_err_t cellular_psm_config(st_cellular_ctrl_t * const p_ctrl, const e_cellular_psm_mode_t mode) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - - if (CELLULAR_PSM_MODE_ACTIVE == mode) - { - ret = atc_sqnricfg(p_ctrl, CELLULAR_PSM_MODE_ACTIVE); - - if (CELLULAR_SUCCESS == ret) - { - ret = atc_cmer(p_ctrl, CELLULAR_PSM_MODE_ACTIVE); - } - if (CELLULAR_SUCCESS == ret) - { - ret = atc_sqnipscfg(p_ctrl, CELLULAR_PSM_MODE_ACTIVE); - } - } - else - { - ret = atc_sqnricfg(p_ctrl, CELLULAR_PSM_MODE_INVALID); - - if (CELLULAR_SUCCESS == ret) - { - ret = atc_cmer(p_ctrl, CELLULAR_PSM_MODE_INVALID); - } - if (CELLULAR_SUCCESS == ret) - { - ret = atc_sqnipscfg(p_ctrl, CELLULAR_PSM_MODE_INVALID); - } - } - - return ret; -} -/********************************************************************************************************************** - * End of function cellular_psm_config - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_settime.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_settime.c deleted file mode 100644 index 331e13f6de7..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_settime.c +++ /dev/null @@ -1,100 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_settime.c - * Description : Function to set the time. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn R_CELLULAR_SetTime - ************************************************************************************************/ -e_cellular_err_t R_CELLULAR_SetTime(st_cellular_ctrl_t * const p_ctrl, const st_cellular_datetime_t * const p_time) -{ - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - e_cellular_err_t ret = CELLULAR_SUCCESS; - - if ((NULL == p_ctrl) || (NULL == p_time)) - { - ret = CELLULAR_ERR_PARAMETER; - } - else if ((CELLULAR_YEAR_LIMIT < p_time->year) || (CELLULAR_MONTH_LIMIT < p_time->month) || - (CELLULAR_DAY_LIMIT < p_time->day) || (CELLULAR_HOUR_LIMIT < p_time->hour) || - (CELLULAR_MIN_LIMIT < p_time->min) || (CELLULAR_SEC_LIMIT < p_time->sec) || - (CELLULAR_TIMEZONE_LIMIT_H < p_time->timezone) || (CELLULAR_TIMEZONE_LIMIT_L > p_time->timezone)) - { - ret = CELLULAR_ERR_PARAMETER; - } - else - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - } - - if (CELLULAR_SUCCESS == ret) - { - semaphore_ret = cellular_take_semaphore(p_ctrl->at_semaphore); - if (CELLULAR_SEMAPHORE_SUCCESS == semaphore_ret) - { - ret = atc_cclk(p_ctrl, p_time); - cellular_give_semaphore(p_ctrl->at_semaphore); - } - else - { - ret = CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING; - } - } - - return ret; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_SetTime - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_shutdownsocket.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_shutdownsocket.c deleted file mode 100644 index 8455da305a9..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_shutdownsocket.c +++ /dev/null @@ -1,109 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_shutdownsocket.c - * Description : Function to disconnect a socket connection. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************ - * Function Name @fn R_CELLULAR_ShutdownSocket - ***********************************************************************/ -e_cellular_err_t R_CELLULAR_ShutdownSocket(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no) -{ - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - e_cellular_err_t ret = CELLULAR_SUCCESS; - - if (NULL == p_ctrl) - { - ret = CELLULAR_ERR_PARAMETER; - } - else - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - else if (CELLULAR_SYSTEM_OPEN == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_CONNECT; - } - else - { - R_BSP_NOP(); - } - } - - if (CELLULAR_SUCCESS == ret) - { - if ((CELLULAR_START_SOCKET_NUMBER > socket_no) || (p_ctrl->creatable_socket < socket_no)) - { - ret = CELLULAR_ERR_PARAMETER; - } - } - - if (CELLULAR_SUCCESS == ret) - { - if (CELLULAR_SOCKET_STATUS_CONNECTED != - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].socket_status) - { - ret = CELLULAR_ERR_SOCKET_NOT_READY; - } - } - - if (CELLULAR_SUCCESS == ret) - { - ret = cellular_shutdownsocket(p_ctrl, socket_no); - } - - return ret; -} -/********************************************************************************************************************** - End of function R_CELLULAR_ShutdownSocket - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_writecertificate.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_writecertificate.c deleted file mode 100644 index ba72f67d722..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/api/r_cellular_writecertificate.c +++ /dev/null @@ -1,263 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_writecertificate.c - * Version : 1.0 - * Description : Function to write certificate file to NVM of cellular controller. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -#if (CELLULAR_IMPLEMENT_TYPE == 'B') -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ -static e_cellular_err_t cellular_write_certificate (st_cellular_ctrl_t * const p_ctrl, - const e_cellular_nvm_type_t data_type, - const uint8_t index, const uint8_t * p_data, const uint32_t size); - -static uint32_t cellular_send_size_check (st_cellular_ctrl_t * const p_ctrl, const int32_t length, - const int32_t complete_length); - -/************************************************************************************************* - * Function Name @fn R_CELLULAR_WriteCertificate - ************************************************************************************************/ -e_cellular_err_t R_CELLULAR_WriteCertificate(st_cellular_ctrl_t * const p_ctrl, const e_cellular_nvm_type_t data_type, - const uint8_t index, const uint8_t * p_data, const uint32_t size) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - - if ((NULL == p_ctrl) || - ((CELLULAR_NVM_TYPE_CERTIFICATE != data_type) && (CELLULAR_NVM_TYPE_PRIVATEKEY != data_type)) || - (CELLULAR_MAX_NVM_CERTIFICATE_INDEX < index) || (NULL == p_data) || - (CELLULAR_NVM_CERTIFICATE_SIZE_L > size) || (CELLULAR_NVM_CERTIFICATE_SIZE_H < size)) - { - ret = CELLULAR_ERR_PARAMETER; - } - else - { - if (CELLULAR_SYSTEM_CLOSE == p_ctrl->system_state) - { - ret = CELLULAR_ERR_NOT_OPEN; - } - else - { - R_BSP_NOP(); - } - } - - - if (CELLULAR_SUCCESS == ret) - { - semaphore_ret = cellular_take_semaphore(p_ctrl->at_semaphore); - if (CELLULAR_SEMAPHORE_SUCCESS != semaphore_ret) - { - ret = CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING; - } - } - - if (CELLULAR_SUCCESS == ret) - { - ret = cellular_write_certificate(p_ctrl, data_type, index, p_data, size); - cellular_give_semaphore(p_ctrl->at_semaphore); - } - - return ret; -} -/********************************************************************************************************************** - * End of function R_CELLULAR_WriteCertificate - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn cellular_write_certificate - * Description @details Send data to the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] data_type - - * Socket number for sending data. - * @param[in] index - - * Pointer to send data. - * @param[in] p_data - - * Pointer to send data. - * @param[in] size - - * Send data size. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_SOCKET_NUM - - * No available socket. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ************************************************************************************************/ -static e_cellular_err_t cellular_write_certificate(st_cellular_ctrl_t * const p_ctrl, - const e_cellular_nvm_type_t data_type, - const uint8_t index, const uint8_t * p_data, const uint32_t size) -{ - - uint32_t complete_length = 0; - uint32_t send_size = 0; - sci_err_t sci_ret = SCI_SUCCESS; - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_timeout_check_t timeout = CELLULAR_NOT_TIMEOUT; - e_cellular_atc_return_t atc_res = ATC_RETURN_NONE; - - ret = atc_sqnsnvw(p_ctrl, data_type, index, size); - if (CELLULAR_SUCCESS != ret) - { - goto cellular_write_certificate_fail; - } - - cellular_set_atc_number(p_ctrl, ATC_SQNSSENDEXT_END); - - while (complete_length < size) - { - cellular_bytetimeout_init(&p_ctrl->sci_ctrl.timeout_ctrl, p_ctrl->sci_ctrl.atc_timeout); - send_size = cellular_send_size_check(p_ctrl, size, complete_length); - - p_ctrl->sci_ctrl.tx_end_flg = CELLULAR_TX_END_FLAG_OFF; - - sci_ret = R_SCI_Send(p_ctrl->sci_ctrl.sci_hdl, (uint8_t SCI_FAR *)p_data + complete_length, send_size); - - if (SCI_SUCCESS == sci_ret) - { - /* tx_end_flg check loop */ - while (1) - { - if (CELLULAR_TX_END_FLAG_ON == p_ctrl->sci_ctrl.tx_end_flg) - { - complete_length += send_size; - break; /* Break the tx_end_flg check loop */ - } - - timeout = cellular_check_bytetimeout(&p_ctrl->sci_ctrl.timeout_ctrl); - if (CELLULAR_TIMEOUT == timeout) - { - ret = CELLULAR_ERR_MODULE_COM; - goto cellular_write_certificate_fail; - } - } - } - else - { - ret = CELLULAR_ERR_MODULE_COM; - goto cellular_write_certificate_fail; - } - } - - cellular_bytetimeout_init(&p_ctrl->sci_ctrl.timeout_ctrl, p_ctrl->sci_ctrl.atc_timeout); - while (1) - { - atc_res = cellular_get_atc_response(p_ctrl); - if (ATC_RETURN_NONE != atc_res) - { - if (ATC_RETURN_OK == atc_res) - { - break; - } - else - { - ret = CELLULAR_ERR_MODULE_COM; - goto cellular_write_certificate_fail; - } - } - - timeout = cellular_check_bytetimeout(&p_ctrl->sci_ctrl.timeout_ctrl); - if (CELLULAR_TIMEOUT == timeout) - { - ret = CELLULAR_ERR_MODULE_COM; - goto cellular_write_certificate_fail; - } - } - -cellular_write_certificate_fail: - { - return ret; - } - -} -/********************************************************************************************************************** - * End of function cellular_write_certificate - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn cellular_send_size_check - * Description @details Check the size of the data to be sent. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] length - - * Send data size. - * @param[in] complete_length - - * Size of the completed transmission to the module. - * Return Value @retval More than 1 - - * Successfully size check. - ************************************************************************************************/ -static uint32_t cellular_send_size_check(st_cellular_ctrl_t * const p_ctrl, const int32_t length, - const int32_t complete_length) -{ - uint32_t send_size = 0; - - if ((length - complete_length) > p_ctrl->sci_ctrl.tx_buff_size) - { - send_size = p_ctrl->sci_ctrl.tx_buff_size; - } - else - { - send_size = (length - complete_length); - } - - if (send_size > p_ctrl->sci_ctrl.tx_process_size) - { - send_size = p_ctrl->sci_ctrl.tx_process_size; - } - - return send_size; -} -/********************************************************************************************************************** - * End of function cellular_send_size_check - *********************************************************************************************************************/ -#endif /* (CELLULAR_IMPLEMENT_TYPE == 'B') */ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/at_command.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/at_command.c deleted file mode 100644 index 31886107d8a..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/at_command.c +++ /dev/null @@ -1,195 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : at_command.c - * Description : Function to generate AT command. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ -const uint8_t g_ryz014_echo_off[] = RYZ014_ATC_ECHO_OFF; -const uint8_t g_ryz014_function_level_check[] = RYZ014_ATC_FUNCTION_LEVEL_CHECK; -const uint8_t g_ryz014_function_level[] = RYZ014_ATC_FUNCTION_LEVEL; -const uint8_t g_ryz014_pin_lock_check[] = RYZ014_ATC_PIN_LOCK_CHECK; -const uint8_t g_ryz014_pin_lock_release[] = RYZ014_ATC_PIN_LOCK_RELEASE; -const uint8_t g_ryz014_connect_socket[] = RYZ014_ATC_CONNECT_SOCKET; -const uint8_t g_ryz014_connect_socket_tohost[] = RYZ014_ATC_CONNECT_SOCKET_TOHOST; -const uint8_t g_ryz014_close_socket[] = RYZ014_ATC_CLOSE_SOCKET; -const uint8_t g_ryz014_send_socket[] = RYZ014_ATC_SEND_SCOKET; -const uint8_t g_ryz014_recv_socket[] = RYZ014_ATC_RECV_SCOKET; -const uint8_t g_ryz014_dns_lookup[] = RYZ014_ATC_DNS_LOOKUP; -const uint8_t g_ryz014_ap_config[] = RYZ014_ATC_AP_CONFIG; -const uint8_t g_ryz014_user_config[] = RYZ014_ATC_USER_CONFIG; -const uint8_t g_ryz014_socket_config_1[] = RYZ014_ATC_SOCKET_CONFIG_1; -const uint8_t g_ryz014_socket_config_2[] = RYZ014_ATC_SOCKET_CONFIG_2; -const uint8_t g_ryz014_connect_check[] = RYZ014_ATC_CONNECT_CHECK; -const uint8_t g_ryz014_set_connect_status[] = RYZ014_ATC_SET_CONNECT_STATUS; -const uint8_t g_ryz014_shutdown[] = RYZ014_ATC_SHUTDOWN; -const uint8_t g_ryz014_get_time[] = RYZ014_ATC_GET_TIME; -const uint8_t g_ryz014_set_time[] = RYZ014_ATC_SET_TIME; -const uint8_t g_ryz014_reset[] = RYZ014_ATC_RESET; -const uint8_t g_ryz014_cereg_off[] = RYZ014_ATC_CEREG_OFF; -const uint8_t g_ryz014_auto_connect_off[] = RYZ014_ATC_AUTO_CONNECT_OFF; -const uint8_t g_ryz014_sim_st_off[] = RYZ014_ATC_SIM_ST_OFF; -const uint8_t g_ryz014_get_service_status[] = RYZ014_ATC_GET_SERVICE_STATUS; -const uint8_t g_ryz014_set_provider[] = RYZ014_ATC_SET_PROVIDER; -const uint8_t g_ryz014_get_pdn_state[] = RYZ014_ATC_GET_PDN_STATE; -const uint8_t g_ryz014_activate_pdn[] = RYZ014_ATC_ACTIVATE_PDN; -const uint8_t g_ryz014_atc_get_ipaddr[] = RYZ014_ATC_GET_IPADDR; -const uint8_t g_ryz014_atc_get_psm[] = RYZ014_ATC_GET_PSM; -const uint8_t g_ryz014_atc_set_psm[] = RYZ014_ATC_SET_PSM; -const uint8_t g_ryz014_atc_get_edrx[] = RYZ014_ATC_GET_EDRX; -const uint8_t g_ryz014_atc_set_edrx[] = RYZ014_ATC_SET_EDRX; -const uint8_t g_ryz014_atc_get_signal[] = RYZ014_ATC_GET_SIGNAL_STRENGTH; -const uint8_t g_ryz014_atc_get_sw_version[] = RYZ014_ATC_GET_SW_VERSION; -const uint8_t g_ryz014_atc_get_serial_num[] = RYZ014_ATC_GET_SERIAL_NUMBER; -const uint8_t g_ryz014_atc_get_module_name[] = RYZ014_ATC_GET_MODULE_NAME; -const uint8_t g_ryz014_atc_get_maker_name[] = RYZ014_ATC_GET_MAKER_NAME; -const uint8_t g_ryz014_atc_get_imsi[] = RYZ014_ATC_GET_IMSI; -const uint8_t g_ryz014_atc_send_command_sim[] = RYZ014_ATC_SEND_COMMAND_TO_SIM; -const uint8_t g_ryz014_atc_set_psm_config[] = RYZ014_ATC_SET_PSM_CONFIG; -const uint8_t g_ryz014_atc_set_ring_config[] = RYZ014_ATC_SET_RING_CONFIG; -const uint8_t g_ryz014_atc_set_ind_notify[] = RYZ014_ATC_SET_IND_NOTIFY; -const uint8_t g_ryz014_no_command[] = RYZ014_NO_COMMAND; -#if (CELLULAR_IMPLEMENT_TYPE == 'B') -const uint8_t g_ryz014_write_certificate[] = RYZ014_ATC_WRITE_CERTIFICATE; -const uint8_t g_ryz014_erase_certificate[] = RYZ014_ATC_ERASE_CERTIFICATE; -const uint8_t g_ryz014_config_ssl_profile[] = RYZ014_ATC_CONFIG_SSL_PROFILE; -const uint8_t g_ryz014_config_ssl_socket[] = RYZ014_ATC_CONFIG_SSL_SOCKET; -#endif - -const uint8_t * const gp_at_command[ATC_LIST_MAX] = -{ - {g_ryz014_echo_off}, - {g_ryz014_function_level_check}, - {g_ryz014_function_level}, - {g_ryz014_pin_lock_check}, - {g_ryz014_pin_lock_release}, - {g_ryz014_connect_socket}, - {g_ryz014_connect_socket_tohost}, - {g_ryz014_close_socket}, - {g_ryz014_send_socket}, - {g_ryz014_recv_socket}, - {g_ryz014_dns_lookup}, - {g_ryz014_ap_config}, - {g_ryz014_user_config}, - {g_ryz014_socket_config_1}, - {g_ryz014_socket_config_2}, - {g_ryz014_connect_check}, - {g_ryz014_set_connect_status}, - {g_ryz014_shutdown}, - {g_ryz014_get_time}, - {g_ryz014_set_time}, - {g_ryz014_reset}, - {g_ryz014_cereg_off}, - {g_ryz014_auto_connect_off}, - {g_ryz014_sim_st_off}, - {g_ryz014_get_service_status}, - {g_ryz014_set_provider}, - {g_ryz014_get_pdn_state}, - {g_ryz014_activate_pdn}, - {g_ryz014_atc_get_ipaddr}, - {g_ryz014_atc_get_psm}, - {g_ryz014_atc_set_psm}, - {g_ryz014_atc_get_edrx}, - {g_ryz014_atc_set_edrx}, - {g_ryz014_atc_get_signal}, - {g_ryz014_atc_get_sw_version}, - {g_ryz014_atc_get_serial_num}, - {g_ryz014_atc_get_module_name}, - {g_ryz014_atc_get_maker_name}, - {g_ryz014_atc_get_imsi}, - {g_ryz014_atc_send_command_sim}, - {g_ryz014_atc_set_psm_config}, - {g_ryz014_atc_set_ring_config}, - {g_ryz014_atc_set_ind_notify}, - {g_ryz014_no_command}, -#if (CELLULAR_IMPLEMENT_TYPE == 'B') - {g_ryz014_write_certificate}, - {g_ryz014_erase_certificate}, - {g_ryz014_config_ssl_profile}, - {g_ryz014_config_ssl_socket}, -#endif -}; - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/***************************************************************************** - * Function Name @fn atc_generate - * Description @details Generate the AT command. - * Arguments @param[in/out] p_command_buff - - * Pointer to store the command. - * @param[in] pp_command - - * Pointer to AT command. - * @param[in] pp_command_arg - - * Pointer to the argument of the AT command. - ****************************************************************************/ -void atc_generate(uint8_t * const p_command_buff, const uint8_t * const p_command, - const uint8_t ** const pp_command_arg) -{ - memset(p_command_buff, 0, CELLULAR_ATC_BUFF_SIZE); - if (NULL == pp_command_arg) - { - sprintf((char *)p_command_buff, // (uint8_t *) -> (char *) - (const char *)p_command); // (uint8_t *) -> (char *) - } - else - { - sprintf((char *)p_command_buff, // (uint8_t *) -> (char *) - (const char *)p_command, // (uint8_t *) -> (char *) - pp_command_arg[0], - pp_command_arg[1], - pp_command_arg[2], - pp_command_arg[3], - pp_command_arg[4], - pp_command_arg[5], - pp_command_arg[6], - pp_command_arg[7]); - } - CELLULAR_LOG_DEBUG(("generated AT command: %s", p_command_buff)); - return; -} -/********************************************************************************************************************** - * End of function atc_generate - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/ate0.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/ate0.c deleted file mode 100644 index 7f498c3a9aa..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/ate0.c +++ /dev/null @@ -1,77 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : ate0.c - * Description : Function to execute the AT command (ATE0) - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_ate0 - ************************************************************************************************/ -e_cellular_err_t atc_ate0(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_ECHO_OFF][0], // (const uint8_t * const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_ECHO_OFF); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_ate0 - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cclk.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cclk.c deleted file mode 100644 index 0ab2ba34d4b..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cclk.c +++ /dev/null @@ -1,113 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cclk.c - * Description : Function to execute the AT command (CCLK). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cclk - ************************************************************************************************/ -e_cellular_err_t atc_cclk(st_cellular_ctrl_t * const p_ctrl, const st_cellular_datetime_t * const p_time) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[CELLULAR_MAX_ARG_COUNT][10] = {0}; - - sprintf((char *)str[0], "%02d", p_time->year); // (uint8_t *)->(char *) - sprintf((char *)str[1], "%02d", p_time->month); // (uint8_t *)->(char *) - sprintf((char *)str[2], "%02d", p_time->day); // (uint8_t *)->(char *) - sprintf((char *)str[3], "%02d", p_time->hour); // (uint8_t *)->(char *) - sprintf((char *)str[4], "%02d", p_time->min); // (uint8_t *)->(char *) - sprintf((char *)str[5], "%02d", p_time->sec); // (uint8_t *)->(char *) - sprintf((char *)str[6], "%+03d", p_time->timezone); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = - {str[0], str[1], str[2], str[3], str[4], str[5], str[6]}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_SET_TIME][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_SET_TIME); - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cclk - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cclk_check - ************************************************************************************************/ -e_cellular_err_t atc_cclk_check(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_GET_TIME][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_GET_TIME); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cclk_check - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cereg.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cereg.c deleted file mode 100644 index bcb7c3989f0..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cereg.c +++ /dev/null @@ -1,77 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cereg.c - * Description : Function to execute the AT command (CEREG) - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cereg_off - ************************************************************************************************/ -e_cellular_err_t atc_cereg_off(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_CEREG_OFF][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_CEREG_OFF); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cereg_off - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cfun.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cfun.c deleted file mode 100644 index 77193a6327f..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cfun.c +++ /dev/null @@ -1,111 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cfun.c - * Description : Function to execute the AT command (CFUN). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cfun - ************************************************************************************************/ -e_cellular_err_t atc_cfun(st_cellular_ctrl_t * const p_ctrl, const e_cellular_module_status_t mode) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[10] = {0}; - - sprintf((char *)str, "%d", mode); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {str}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_FUNCTION_LEVEL][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, - ATC_RETURN_OK, ATC_FUNCTION_LEVEL); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - cellular_delay_task(CELLULAR_CFUN_WAIT); - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cfun - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cfun_check - ************************************************************************************************/ -e_cellular_err_t atc_cfun_check(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_FUNCTION_LEVEL_CHECK][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_FUNCTION_LEVEL_CHECK); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cfun_check - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgact.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgact.c deleted file mode 100644 index 00144100844..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgact.c +++ /dev/null @@ -1,109 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cgact.c - * Description : Function to execute the AT command (CGACT). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cgact - ************************************************************************************************/ -e_cellular_err_t atc_cgact(st_cellular_ctrl_t * const p_ctrl, const uint8_t mode, const uint8_t context_id) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[2][5] = {0}; - - sprintf((char *)str[0], "%d", mode); // (uint8_t *)->(char *) - sprintf((char *)str[1], "%d", context_id); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {str[0], str[1]}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_ACTIVATE_PDN][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_ACTIVATE_PDN); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cgact - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cgact_check - ************************************************************************************************/ -e_cellular_err_t atc_cgact_check(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_GET_PDN_STATE][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, - ATC_RETURN_OK, ATC_GET_PDN_STATE); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cgact_check - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgatt.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgatt.c deleted file mode 100644 index f7dff0ef48c..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgatt.c +++ /dev/null @@ -1,118 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cgatt.c - * Description : Function to execute the AT command (CGATT). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cgatt - ************************************************************************************************/ -e_cellular_err_t atc_cgatt(st_cellular_ctrl_t * const p_ctrl, const e_atc_ap_status_t mode) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[10] = {0}; - - sprintf((char *)str, "%d", mode); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {str}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_SET_CONNECT_STATUS][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - if (ATC_AP_CONNECT == mode) - { - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, - ATC_RETURN_OK, ATC_SET_CONNECT_STATUS); - } - else - { - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, - ATC_RETURN_OK, ATC_SET_CONNECT_STATUS); - } - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cgatt - *********************************************************************************************************************/ - - -/************************************************************************************************* - * Function Name @fn atc_cgatt_check - ************************************************************************************************/ -e_cellular_err_t atc_cgatt_check(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_CONNECT_CHECK][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, - ATC_RETURN_OK, ATC_CONNECT_CHECK); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cgatt_check - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgauth.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgauth.c deleted file mode 100644 index 226324870cd..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgauth.c +++ /dev/null @@ -1,81 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cgauth.c - * Description : Function to execute the AT command (CGAUTH). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cgauth - ************************************************************************************************/ -e_cellular_err_t atc_cgauth(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = - {(uint8_t *)&p_ctrl->ap_user_name, // (&uint8_t[])->(uint8_t *) - (uint8_t *)&p_ctrl->ap_pass}; // (&uint8_t[])->(uint8_t *) - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_USER_CONFIG][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_USER_CONFIG); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cgauth - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgdcont.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgdcont.c deleted file mode 100644 index a75e05b0d19..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgdcont.c +++ /dev/null @@ -1,80 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cgdcont.c - * Description : Function to execute the AT command (CGDCONT). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cgdcont - ************************************************************************************************/ -e_cellular_err_t atc_cgdcont(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = - {(uint8_t *)&p_ctrl->ap_name}; // &uint8_t[]->uint8_t * - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_AP_CONFIG][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_AP_CONFIG); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cgdcont - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgmi.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgmi.c deleted file mode 100644 index 334ad419c93..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgmi.c +++ /dev/null @@ -1,77 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cgmi.c - * Description : Function to execute the AT command (CGMI). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cgmi - ************************************************************************************************/ -e_cellular_err_t atc_cgmi(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_GET_MAKER_NAME][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_GET_MAKER_NAME); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cgmi - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgmm.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgmm.c deleted file mode 100644 index d527f5580ee..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgmm.c +++ /dev/null @@ -1,77 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cgmm.c - * Description : Function to execute the AT command (CGMM). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cgmm - ************************************************************************************************/ -e_cellular_err_t atc_cgmm(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_GET_MODULE_NAME][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_GET_MODULE_NAME); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cgmm - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgmr.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgmr.c deleted file mode 100644 index 767d324dfca..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgmr.c +++ /dev/null @@ -1,77 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cgmr.c - * Description : Function to execute the AT command (CGMR). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cgmr - ************************************************************************************************/ -e_cellular_err_t atc_cgmr(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_GET_SW_VERSION][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_GET_SW_VERSION); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cgmr - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgpaddr.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgpaddr.c deleted file mode 100644 index 6d8a7386dc2..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgpaddr.c +++ /dev/null @@ -1,82 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cgpaddr.c - * Description : Function to execute the AT command (CGPADDR). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cgpaddr - ************************************************************************************************/ -e_cellular_err_t atc_cgpaddr(st_cellular_ctrl_t * const p_ctrl, const uint8_t context_id) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[1] = {0}; - - sprintf((char *)str, "%d", context_id); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {str}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_GET_IPADDR][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_GET_IPADDR); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cgpaddr - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgsn.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgsn.c deleted file mode 100644 index 31ec99364d6..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cgsn.c +++ /dev/null @@ -1,77 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cgsn.c - * Description : Function to execute the AT command (CGSN). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cgsn - ************************************************************************************************/ -e_cellular_err_t atc_cgsn(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_GET_SERIAL_NUMBER][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_GET_SERIAL_NUMBER); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cgsn - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cimi.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cimi.c deleted file mode 100644 index 4eb1c37cc34..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cimi.c +++ /dev/null @@ -1,77 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cimi.c - * Description : Function to execute the AT command (CIMI). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cimi - ************************************************************************************************/ -e_cellular_err_t atc_cimi(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_GET_IMSI][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_GET_IMSI); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cimi - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cmer.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cmer.c deleted file mode 100644 index ad21b9443ac..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cmer.c +++ /dev/null @@ -1,82 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cmer.c - * Description : Function to execute the AT command (CMER). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cmer - ************************************************************************************************/ -e_cellular_err_t atc_cmer(st_cellular_ctrl_t * const p_ctrl, e_cellular_psm_mode_t mode) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[2] = {0}; - - sprintf((char *)str, "%d", mode); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {str}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_SET_IND_NOTIFY][0], // (const uint8_t * const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t * const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_SET_IND_NOTIFY); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cmer - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cops.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cops.c deleted file mode 100644 index fe482ef6753..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cops.c +++ /dev/null @@ -1,110 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cops.c - * Description : Function to execute the AT command (COPS). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cops - ************************************************************************************************/ -e_cellular_err_t atc_cops(st_cellular_ctrl_t * const p_ctrl, const uint8_t mode, const uint16_t mcc, const uint8_t mnc) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[3][10] = {0}; - - sprintf((char *)str[0], "%d", mode); // (uint8_t *)->(char *) - sprintf((char *)str[1], "%d", mcc); // (uint8_t *)->(char *) - sprintf((char *)str[2], "%d", mnc); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {str[0], str[1], str[2]}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_SET_PROVIDER][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_SET_PROVIDER); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cops - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cops_check - ************************************************************************************************/ -e_cellular_err_t atc_cops_check(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_GET_SERVICE_STATUS][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, - ATC_RETURN_OK, ATC_GET_SERVICE_STATUS); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cops_check - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cpin.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cpin.c deleted file mode 100644 index 525215f5bb6..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cpin.c +++ /dev/null @@ -1,106 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cpin.c - * Description : Function to execute the AT command (CPIN). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cpin - ************************************************************************************************/ -e_cellular_err_t atc_cpin(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = - {(uint8_t *)&p_ctrl->sim_pin_code}; // &uint8_t[]->uint8_t * - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_PIN_LOCK_RELEASE][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_PIN_LOCK_RELEASE); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cpin - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cpin_check - ************************************************************************************************/ -e_cellular_err_t atc_cpin_check(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_PIN_LOCK_CHECK][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, - ATC_RETURN_CPIN_READY, ATC_PIN_LOCK_CHECK); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cpin_check - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cpsms.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cpsms.c deleted file mode 100644 index 963d8abb08a..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/cpsms.c +++ /dev/null @@ -1,136 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cpsms.c - * Description : Function to execute the AT command (CPSMS). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cpsms - ************************************************************************************************/ -e_cellular_err_t atc_cpsms(st_cellular_ctrl_t * const p_ctrl, const e_cellular_psm_mode_t mode, - const e_cellular_psm_cycle_t tau, const e_cellular_cycle_multiplier_t tau_multiplier, - const e_cellular_psm_cycle_t active, const e_cellular_cycle_multiplier_t active_multiplier) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[3][9] = {0}; - - uint8_t value; - - str[0][0] = mode + 0x30; - - value = tau; - str[1][0] = ((value & 0x04) >> 2) + 0x30; - str[1][1] = ((value & 0x02) >> 1) + 0x30; - str[1][2] = (value & 0x01) + 0x30; - - value = tau_multiplier; - str[1][3] = ((value & 0x10) >> 4) + 0x30; - str[1][4] = ((value & 0x08) >> 3) + 0x30; - str[1][5] = ((value & 0x04) >> 2) + 0x30; - str[1][6] = ((value & 0x02) >> 1) + 0x30; - str[1][7] = (value & 0x01) + 0x30; - - value = active; - str[2][0] = ((value & 0x04) >> 2) + 0x30; - str[2][1] = ((value & 0x02) >> 1) + 0x30; - str[2][2] = (value & 0x01) + 0x30; - - value = active_multiplier; - str[2][3] = ((value & 0x10) >> 4) + 0x30; - str[2][4] = ((value & 0x08) >> 3) + 0x30; - str[2][5] = ((value & 0x04) >> 2) + 0x30; - str[2][6] = ((value & 0x02) >> 1) + 0x30; - str[2][7] = (value & 0x01) + 0x30; - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {str[0], str[1], str[2]}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_SET_PSM][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_SET_PSM); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cpsms - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_cpsms_check - ************************************************************************************************/ -e_cellular_err_t atc_cpsms_check(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_GET_PSM][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, - ATC_RETURN_OK, ATC_GET_PSM); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_cpsms_check - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/crsm.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/crsm.c deleted file mode 100644 index 951dccc46e7..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/crsm.c +++ /dev/null @@ -1,89 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : crsm.c - * Description : Function to execute the AT command (CRSM). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_crsm - ************************************************************************************************/ -e_cellular_err_t atc_crsm(st_cellular_ctrl_t * const p_ctrl, const uint8_t command, const uint16_t fileid, - const uint8_t para_1, const uint8_t para_2, const uint8_t para_3, - const uint8_t * data, const uint8_t * pathid) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[5][10] = {0}; - - sprintf((char *)str[0], "%d", command); // (uint8_t *)->(char *) - sprintf((char *)str[1], "%d", fileid); // (uint8_t *)->(char *) - sprintf((char *)str[2], "%d", para_1); // (uint8_t *)->(char *) - sprintf((char *)str[3], "%d", para_2); // (uint8_t *)->(char *) - sprintf((char *)str[4], "%d", para_3); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = - {str[0], str[1], str[2], str[3], str[4], data, pathid}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_SEND_COMMAND_TO_SIM][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_SEND_COMMAND_TO_SIM); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_crsm - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/csq.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/csq.c deleted file mode 100644 index 1bd2e198992..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/csq.c +++ /dev/null @@ -1,77 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : csq.c - * Description : Function to execute the AT command (CSQ). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_csq - ************************************************************************************************/ -e_cellular_err_t atc_csq(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_GET_SIGNAL_STRENGTH][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_GET_SIGNAL_STRENGTH); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_csq - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/include/at_command.h b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/include/at_command.h deleted file mode 100644 index 80a7138eaf4..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/include/at_command.h +++ /dev/null @@ -1,762 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : at_command.h - * Description : Configures the AT command. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "r_cellular_if.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ -#ifndef AT_COMMAND_H -#define AT_COMMAND_H - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ -extern const uint8_t * const gp_at_command[ATC_LIST_MAX]; - -/************************************************************************************************* - * Function Name @fn atc_ate0 - * Description @details Execute the AT command (ATE0). / echo-off. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_ate0 (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************************************* - * Function Name @fn atc_cfun - * Description @details Execute the AT command (CFUN). / ctrol of module operation. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] mode - - * Function to be set for the module. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_cfun (st_cellular_ctrl_t * const p_ctrl, const e_cellular_module_status_t mode); - -/************************************************************************************************* - * Function Name @fn atc_cfun_check - * Description @details Execute the AT command (CFUN?). Check control level of modules. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_cfun_check (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************************************* - * Function Name @fn atc_cgatt - * Description @details Execute the AT command (CGATT). / Attach/detach to AP. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] mode - - * Select Connect/Disconnect. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_cgatt (st_cellular_ctrl_t * const p_ctrl, const e_atc_ap_status_t mode); - -/**************************************************************************************************************** - * Function Name @fn atc_cgatt_check - * Description @details Execute the AT command (CGATT?). / Check the status of the connection to the AP. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ***************************************************************************************************************/ -e_cellular_err_t atc_cgatt_check (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************************************* - * Function Name @fn atc_cgauth - * Description @details Execute the AT command (CGAUTH). / Set AP user name and password. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_cgauth (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************************************* - * Function Name @fn atc_cgdcont - * Description @details Execute the AT command (CGDCONT). / Set AP name. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_cgdcont (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************************************* - * Function Name @fn atc_cpin - * Description @details Execute the AT command (CPIN). / PIN/PUK code entry. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_cpin (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************************************* - * Function Name @fn atc_cpin_check - * Description @details Execute the AT command (CPIN?). / Check PIN/PUK lock status. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_cpin_check (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************************************* - * Function Name @fn atc_sqndnslkup - * Description @details Execute the AT command (SQNDNSLKUP). / Execute DNS query. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] p_dmain_name - - * Pointer to the domain name. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_sqndnslkup (st_cellular_ctrl_t * const p_ctrl, const uint8_t * const p_domain_name); - -/************************************************************************************************* - * Function Name @fn atc_sqnscfg - * Description @details Execute the AT command (SQNSCFG). / Configured the socket. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Socket number for configuring. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_sqnscfg (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no); - -/************************************************************************************************* - * Function Name @fn atc_sqnscfgext - * Description @details Execute the AT command (SQNSCFGEXT). / Configured the socket. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Socket number. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_sqnscfgext (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no); - -/******************************************************************************************************* - * Function Name @fn atc_sqnsd - * Description @details Execute the AT command (SQNSD). / Perform socket connect by IP address. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Number to connect socket. - * @param[in] ip_address - - * Destination IP address. - * @param[in] port - - * Destination port number. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ******************************************************************************************************/ -e_cellular_err_t atc_sqnsd (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, - const uint32_t ip_address, const uint16_t port); - -/**************************************************************************************************** - * Function Name @fn atc_sqnsd_host - * Description @details Execute the AT command (SQNSD) / Perform socket connect by hostname. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Number to connect socket. - * @param[in] p_hostname - - * Destination Host Name. - * @param[in] port - - * Destination port number. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ***************************************************************************************************/ -e_cellular_err_t atc_sqnsd_host (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, - const uint8_t * p_hostname, const uint16_t port); - -/************************************************************************************************* - * Function Name @fn atc_sqnsh - * Description @details Execute the AT command (SQNSH). / Close Socket Connect. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Socket number to disconnect. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_sqnsh (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no); - -/************************************************************************************************************ - * Function Name @fn atc_sqnsrecv - * Description @details Execute the AT command (SQNSRECV). / Receive data from the specified socket. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Socket number to receive data. - * @param[in] length - - * Number of bytes to receive. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ***********************************************************************************************************/ -e_cellular_err_t atc_sqnsrecv (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, const int32_t length); - -/************************************************************************************************* - * Function Name @fn atc_sqnssendext - * Description @details Execute the AT command (SQNSSENDEXT). / Send data to the specified socket. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Socket number to send data. - * @param[in] length - - * Number of bytes to send. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_sqnssendext (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, const int32_t length); - -/***************************************************************************************************************** - * Function Name @fn atc_sqnsshdn - * Description @details Execute the AT command (SQNSSHDN). / Device detach from the network and shutdown. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ****************************************************************************************************************/ -e_cellular_err_t atc_sqnsshdn (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************************************* - * Function Name @fn atc_cclk - * Description @details Execute the AT command (CCLK). / Set the time. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] p_time - - * Pointer to the structure that stores the date and time. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_cclk (st_cellular_ctrl_t * const p_ctrl, const st_cellular_datetime_t * const p_time); - -/************************************************************************************************* - * Function Name @fn atc_cclk_check - * Description @details Execute the AT command (CCLK?). / Get the time. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_cclk_check (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************************************* - * Function Name @fn atc_reset - * Description @details Execute the AT command (AT^RESET). / Reset the device. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_reset (st_cellular_ctrl_t * const p_ctrl); - -/******************************************************************************************************** - * Function Name @fn atc_cereg_off - * Description @details Execute the AT command (AT+CEREG=0). / Disable notification of - * network registration information. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - *******************************************************************************************************/ -e_cellular_err_t atc_cereg_off (st_cellular_ctrl_t * const p_ctrl); - -/********************************************************************************************************** - * Function Name @fn atc_sqnautoconnect - * Description @details Execute the AT command (AT+SQNAUTOCONNECT=0). / Disable Auto-Connect mode. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - *********************************************************************************************************/ -e_cellular_err_t atc_sqnautoconnect (st_cellular_ctrl_t * const p_ctrl); - -/********************************************************************************************************** - * Function Name @fn atc_sqnsimst - * Description @details Execute the AT command (AT+SQNSIMST=0). / Disable SIM status notification. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - *********************************************************************************************************/ -e_cellular_err_t atc_sqnsimst (st_cellular_ctrl_t * const p_ctrl); - -/*************************************************************************************************************** - * Function Name @fn atc_cops - * Description @details Execute the AT command (AT+COPS). / Specify the method of connecting to the AP. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] mode - - * Mode to set. 0=auto / 1=manual / 2=disconnect / 3=No mapping / 4=No support - * @param[in] mcc - - * Country Code. - * @param[in] mnc - - * Network number. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - **************************************************************************************************************/ -e_cellular_err_t atc_cops (st_cellular_ctrl_t * const p_ctrl, const uint8_t mode, - const uint16_t mcc, const uint8_t mnc); - -/**************************************************************************************************** - * Function Name @fn atc_cops_check - * Description @details Execute the AT command (AT+COPS?). / Check how to connect to the AP. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ***************************************************************************************************/ -e_cellular_err_t atc_cops_check (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************************************* - * Function Name @fn atc_cgact - * Description @details Execute the AT command (AT+CGACT). / Enable/Disable PDP context. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] mode - - * Setting the context ID. 0=deactivated / 1=activated - * @param[in] context_id - - * Context ID number. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_cgact (st_cellular_ctrl_t * const p_ctrl, const uint8_t mode, const uint8_t context_id); - -/******************************************************************************************************** - * Function Name @fn atc_cgact_check - * Description @details Execute the AT command (AT+CGACT). / Check the status of the PDP context - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - *******************************************************************************************************/ -e_cellular_err_t atc_cgact_check (st_cellular_ctrl_t * const p_ctrl); - -/********************************************************************************************************************** - * Function Name @fn atc_cgpaddr - * Description @details Execute the AT command (AT+CGPADDR). / Get the IP address assigned to the PDP context. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] context_id - - * Context ID number to check the configured IP address. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - *********************************************************************************************************************/ -e_cellular_err_t atc_cgpaddr (st_cellular_ctrl_t * const p_ctrl, const uint8_t context_id); - -/************************************************************************************************************ - * Function Name @fn atc_cpsms - * Description @details Execute the AT command (AT+CPSMS). / Configure PSM. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] mode - - * Mode to set. - * @param[in] tau - - * Set the TAU cycle. - * @param[in] tau_multiplier - - * Multiplier for TAU cycle. - * @param[in] active - - * Set the active time cycle. - * @param[in] active_multiplier - - * Multiplier for active time cycle. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ***********************************************************************************************************/ -e_cellular_err_t atc_cpsms (st_cellular_ctrl_t * const p_ctrl, const e_cellular_psm_mode_t mode, - const e_cellular_psm_cycle_t tau, const e_cellular_cycle_multiplier_t tau_multiplier, - const e_cellular_psm_cycle_t active, const e_cellular_cycle_multiplier_t active_multiplier); - -/************************************************************************************************* - * Function Name @fn atc_cpsms_check - * Description @details Execute the AT command (AT+CPSMS?). / Check PSM Configure. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_cpsms_check (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************************************* - * Function Name @fn atc_sqnedrx - * Description @details Execute the AT command (AT+SQNEDRX). / Configure eDRX. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] mode - - * Mode to set. - * @param[in] edrx_value - - * Set the edrx cycle. - * @param[in] ptw - - * Set the PTW cycle. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_sqnedrx (st_cellular_ctrl_t * const p_ctrl, const e_cellular_edrx_mode_t mode, - const e_cellular_edrx_cycle_t edrx_value, const e_cellular_edrx_cycle_t ptw); - -/************************************************************************************************* - * Function Name @fn atc_sqnedrx_check - * Description @details Execute the AT command (AT+SQNEDRX?). / Check eDRX Configure. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_sqnedrx_check (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************************************* - * Function Name @fn atc_csq - * Description @details Execute the AT command (AT+CSQ). / Get RSSI and BER. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_csq (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************************************* - * Function Name @fn atc_cgmr - * Description @details Execute the AT command (AT+CGMR). / Get software version. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_cgmr (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************************************* - * Function Name @fn atc_cgsn - * Description @details Execute the AT command (AT+CGSN). / Get serial number. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_cgsn (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************************************* - * Function Name @fn atc_cgmm - * Description @details Execute the AT command (AT+CGMM). / Get module name. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_cgmm (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************************************* - * Function Name @fn atc_cgmi - * Description @details Execute the AT command (AT+CGMI). / Get manufacturer name. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_cgmi (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************************************* - * Function Name @fn atc_cimi - * Description @details Execute the AT command (AT+CIMI). / Get IMSI. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_cimi (st_cellular_ctrl_t * const p_ctrl); - -/******************************************************************************************************************* - * Function Name @fn atc_crsm - * Description @details Execute the AT command (AT+CRSM). / Read/write data from SIM card. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] command - - * Commands passed to the SIM. 176=READ BINARY / 178=READ RECORD / 192=GET RESPONSE - * 214=UPDATE BINARY / 220=UPDATE RECORD / 242=STATUS - * 203=RETRIEVE DATA / 219=SET DATA - * @param[in] fileid - - * Identifier of an elementary data file on SIM. - * @param[in] para_1 - - * Parameters passed to the SIM. - * @param[in] para_2 - - * Parameters passed to the SIM. - * @param[in] para_3 - - * Parameters passed to the SIM. - * @param[in] data - - * Information that shall be written to the SIM. - * @param[in] pathid - - * Contains the path of an elementary file on the SIM/UICC. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ******************************************************************************************************************/ -e_cellular_err_t atc_crsm (st_cellular_ctrl_t * const p_ctrl, const uint8_t command, const uint16_t fileid, - const uint8_t para_1, const uint8_t para_2, const uint8_t para_3, - const uint8_t * data, const uint8_t * pathid); - -/****************************************************************************************************************** - * Function Name @fn atc_sqnipscfg - * Description @details Execute the AT command (AT+SQNIPSCFG). / Set the UARTs power saving configuration. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] mode - - * Enable(1)/Disable(0) the power saving mode. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - *****************************************************************************************************************/ -e_cellular_err_t atc_sqnipscfg (st_cellular_ctrl_t * const p_ctrl, e_cellular_psm_mode_t mode); - -/*************************************************************************************************** - * Function Name @fn atc_sqnricfg - * Description @details Execute the AT command (AT+SQNRICFG). / Set the RING line behavior. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] mode - - * Enable(1)/Disable(0) the ring line. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - **************************************************************************************************/ -e_cellular_err_t atc_sqnricfg (st_cellular_ctrl_t * const p_ctrl, e_cellular_psm_mode_t mode); - -/********************************************************************************************************************* - * Function Name @fn atc_cmer - * Description @details Execute the AT command (AT+CMER). / Indicator status change notification setting. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] mode - - * Enable(1)/Disable(0) indicator event notification. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ********************************************************************************************************************/ -e_cellular_err_t atc_cmer (st_cellular_ctrl_t * const p_ctrl, e_cellular_psm_mode_t mode); - -#if (CELLULAR_IMPLEMENT_TYPE == 'B') -/**************************************************************************************************************** - * Function Name @fn atc_sqnsnvw - * Description @details Execute the AT command (SQNSNVW). / Writing certificates and other data - * to non-volatile memory - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] data_type - - * Information to write. - * @param[in] index - - * Destination index. - * @param[in] p_data - - * Pointer to the data to write. - * @param[in] size - - * Size of the data to be written. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ***************************************************************************************************************/ -e_cellular_err_t atc_sqnsnvw (st_cellular_ctrl_t * const p_ctrl, const e_cellular_nvm_type_t data_type, - const uint8_t index, const uint32_t size); - -/******************************************************************************************************** - * Function Name @fn atc_sqnsnvw_erase - * Description @details Execute the AT command (SQNSNVW). / Deleting certificates and other data - * from non-volatile memory - * @param[in] data_type - - * Information to write. - * @param[in] index - - * Destination index. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - *******************************************************************************************************/ -e_cellular_err_t atc_sqnsnvw_erase (st_cellular_ctrl_t * const p_ctrl, const e_cellular_nvm_type_t data_type, - const uint8_t index); - -/***************************************************************************************************** - * Function Name @fn atc_sqnspcfg - * Description @details Execute the AT command (SQNSPCFG). / Configure the necessary settings - * for SSL/TLS connection. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] security_profile_id - - * Security Profile identifier - * @param[in] cert_valid_level - - * Server certificate validation - * @param[in] ca_certificate_id - - * Certificate ID of a trusted certification authority - * by written to non-volatile memory. - * @param[in] client_certificate_id - - * Client certificate ID by written to non-volatile memory. - * @param[in] client_privatekey_id - - * Privatekey ID by written to non-volatile memory. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ****************************************************************************************************/ -e_cellular_err_t atc_sqnspcfg (st_cellular_ctrl_t * const p_ctrl, - const uint8_t security_profile_id, - const e_cellular_cert_validate_level_t cert_valid_level, - const uint8_t ca_certificate_id, - const uint8_t client_certificate_id, - const uint8_t client_privatekey_id); - -/************************************************************************************************* - * Function Name @fn atc_sqnsscfg - * Description @details Execute the AT command (SQNSSCFG). / Enable/Disable SSL/TLS connection. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Socket number to configurate. - * @param[in] active - - * Pointer to store IP address. - * @param[in] security_profile_id - - * Link to Security Profile identifier. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - ************************************************************************************************/ -e_cellular_err_t atc_sqnsscfg (st_cellular_ctrl_t * const p_ctrl, - const uint8_t socket_no, - const e_cellular_ssl_active_t active, - const uint8_t security_profile_id); -#endif /* (CELLULAR_IMPLEMENT_TYPE == 'B') */ - -/***************************************************************************** - * Function Name @fn atc_generate - * Description @details Generate the AT command. - * Arguments @param[in/out] p_command_buff - - * Pointer to store the command. - * @param[in] pp_command - - * Pointer to AT command. - * @param[in] pp_command_arg - - * Pointer to the argument of the AT command. - ****************************************************************************/ -void atc_generate (uint8_t * const p_command_buff, const uint8_t * p_command , const uint8_t ** pp_command_arg); - - -#endif /* AT_COMMAND_H */ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/reset.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/reset.c deleted file mode 100644 index a374a7fb68a..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/reset.c +++ /dev/null @@ -1,82 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : reset.c - * Description : Function to execute the AT command (AT^RESET) - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_reset - ************************************************************************************************/ -e_cellular_err_t atc_reset(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_RESET][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_RESET); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - else - { - cellular_delay_task(CELLULAR_RESET_WAIT); - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_reset - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnautoconnect.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnautoconnect.c deleted file mode 100644 index f2ed334d5cb..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnautoconnect.c +++ /dev/null @@ -1,77 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : sqnautoconnect.c - * Description : Function to execute the AT command (SQNAUTOCONNECT) - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_sqnautoconnect - ************************************************************************************************/ -e_cellular_err_t atc_sqnautoconnect(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_AUTO_CONNECT_OFF][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_AUTO_CONNECT_OFF); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqnautoconnect - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqndnslkup.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqndnslkup.c deleted file mode 100644 index 99504866d7d..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqndnslkup.c +++ /dev/null @@ -1,78 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : sqndnslkup.c - * Description : Function to execute the AT command (SQNDNSLKUP). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_sqndnslkup - ************************************************************************************************/ -e_cellular_err_t atc_sqndnslkup(st_cellular_ctrl_t * const p_ctrl, const uint8_t * const p_domain_name) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {p_domain_name}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_DNS_LOOKUP][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_DNS_LOOKUP); - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqndnslkup - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnedrx.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnedrx.c deleted file mode 100644 index f8cfc3d46ae..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnedrx.c +++ /dev/null @@ -1,122 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : sqnedrx.c - * Description : Function to execute the AT command (SQNEDRX). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_sqnedrx - ************************************************************************************************/ -e_cellular_err_t atc_sqnedrx(st_cellular_ctrl_t * const p_ctrl, const e_cellular_edrx_mode_t mode, - const e_cellular_edrx_cycle_t edrx_value, const e_cellular_edrx_cycle_t ptw) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[3][5] = {0}; - uint8_t value; - - str[0][0] = mode + 0x30; - - value = edrx_value; - str[1][0] = ((value & 0x08) >> 3) + 0x30; - str[1][1] = ((value & 0x04) >> 2) + 0x30; - str[1][2] = ((value & 0x02) >> 1) + 0x30; - str[1][3] = (value & 0x01) + 0x30; - - value = ptw; - str[2][0] = ((value & 0x08) >> 3) + 0x30; - str[2][1] = ((value & 0x04) >> 2) + 0x30; - str[2][2] = ((value & 0x02) >> 1) + 0x30; - str[2][3] = (value & 0x01) + 0x30; - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {str[0], str[1], str[2]}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_SET_EDRXS][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_SET_EDRXS); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqnedrx - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_sqnedrx_check - ************************************************************************************************/ -e_cellular_err_t atc_sqnedrx_check(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_GET_EDRXS][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, - ATC_RETURN_OK, ATC_GET_EDRXS); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqnedrx_check - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnipscfg.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnipscfg.c deleted file mode 100644 index 6f943681721..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnipscfg.c +++ /dev/null @@ -1,82 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : sqnipscfg.c - * Description : Function to execute the AT command (SQNIPSCFG). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_sqnipscfg - ************************************************************************************************/ -e_cellular_err_t atc_sqnipscfg(st_cellular_ctrl_t * const p_ctrl, e_cellular_psm_mode_t mode) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[2] = {0}; - - sprintf((char *)str, "%d", mode); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {str}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_SET_PSM_CONFIG][0], // (const uint8_t * const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t * const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_SET_PSM_CONFIG); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqnipscfg - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnricfg.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnricfg.c deleted file mode 100644 index 9c00421f28c..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnricfg.c +++ /dev/null @@ -1,82 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : sqnipscfg.c - * Description : Function to execute the AT command (SQNIPSCFG). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_sqnricfg - ************************************************************************************************/ -e_cellular_err_t atc_sqnricfg(st_cellular_ctrl_t * const p_ctrl, e_cellular_psm_mode_t mode) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[2] = {0}; - - sprintf((char *)str, "%d", mode); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {str}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_SET_RING_CONFIG][0], // (const uint8_t * const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t * const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_SET_RING_CONFIG); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqnricfg - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnscfg.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnscfg.c deleted file mode 100644 index aaf1fb13d90..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnscfg.c +++ /dev/null @@ -1,90 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : sqnscfg.c - * Description : Function to execute the AT command (SQNSCFG). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_sqnscfg - ************************************************************************************************/ -e_cellular_err_t atc_sqnscfg(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[5][10] = {0}; - - sprintf((char *)str[0], "%d", socket_no); // (&uint8_t[])->(char *) - sprintf((char *)str[1], "%d", // (&uint8_t[])->(char *) - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].packet_data_size); - sprintf((char *)str[2], "%d", // (&uint8_t[])->(char *) - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].exchange_timeout); - sprintf((char *)str[3], "%d", // (&uint8_t[])->(char *) - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].connect_timeout); - sprintf((char *)str[4], "%d", // (&uint8_t[])->(char *) - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].send_timeout); - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {str[0], str[1], str[2], str[3], str[4]}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_SOCKET_CONFIG_1][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_SOCKET_CONFIG_1); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqnscfg - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnscfgext.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnscfgext.c deleted file mode 100644 index f32d877e67a..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnscfgext.c +++ /dev/null @@ -1,82 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : sqnscfgext.c - * Description : Function to execute the AT command (SQNSCFGEXT). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_sqnscfgext - ************************************************************************************************/ -e_cellular_err_t atc_sqnscfgext(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[10] = {0}; - - sprintf((char *)str, "%d", socket_no); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {str}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_SOCKET_CONFIG_2][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_SOCKET_CONFIG_2); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqnscfgext - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsd.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsd.c deleted file mode 100644 index 36cdd5aad79..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsd.c +++ /dev/null @@ -1,160 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : sqnsd.c - * Description : Function to execute the AT command (SQNSD). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_sqnsd - ************************************************************************************************/ -e_cellular_err_t atc_sqnsd(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, - const uint32_t ip_address, const uint16_t port) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[CELLULAR_MAX_ARG_COUNT][10] = {0}; - - sprintf((char *)str[0], "%d", socket_no); // (uint8_t *)->(char *) - if (CELLULAR_SOCKET_IP_PROTOCOL_TCP == p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].protocol) - { - sprintf((char *)str[1], "%d", 0); // (uint8_t *)->(char *) - } - else - { - sprintf((char *)str[1], "%d", 1); // (uint8_t *)->(char *) - } - sprintf((char *)str[2], "%u", port); // (uint8_t *)->(char *) - sprintf((char *)str[3], "%d", (uint8_t)(ip_address >> 24)); // (uint8_t *)->(char *) / (uint32_t)->(uint8_t) - sprintf((char *)str[4], "%d", (uint8_t)(ip_address >> 16)); // (uint8_t *)->(char *) / (uint32_t)->(uint8_t) - sprintf((char *)str[5], "%d", (uint8_t)(ip_address >> 8)); // (uint8_t *)->(char *) / (uint32_t)->(uint8_t) - sprintf((char *)str[6], "%d", (uint8_t)(ip_address)); // (uint8_t *)->(char *) / (uint32_t)->(uint8_t) - sprintf((char *)str[7], "%u", port); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = - {str[0], str[1], str[2], str[3], str[4], str[5], str[6], str[7]}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_CONNECT_SOCKET][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - if (p_ctrl->sci_ctrl.atc_timeout > - ((p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].connect_timeout * 100) + CELLULAR_SOCKETCONNECT_DELAY)) - { - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_CONNECT_SOCKET); - } - else - { - at_ret = cellular_execute_at_command(p_ctrl, - ((uint32_t)p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].connect_timeout * 100) + CELLULAR_SOCKETCONNECT_DELAY, - ATC_RETURN_OK, ATC_CONNECT_SOCKET); - } - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqnsd - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_sqnsd_host - ************************************************************************************************/ -e_cellular_err_t atc_sqnsd_host(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, - const uint8_t * p_hostname, const uint16_t port) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[4][10] = {0}; - - sprintf((char *)str[0], "%d", socket_no); // (uint8_t *)->(char *) - if (CELLULAR_SOCKET_IP_PROTOCOL_TCP == p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].protocol) - { - sprintf((char *)str[1], "%d", 0); // (uint8_t *)->(char *) - } - else - { - sprintf((char *)str[1], "%d", 1); // (uint8_t *)->(char *) - } - sprintf((char *)str[2], "%u", port); // (uint8_t *)->(char *) - sprintf((char *)str[3], "%u", port); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {str[0], str[1], str[2], p_hostname, str[3]}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_CONNECT_SOCKET_TOHOST][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - if (p_ctrl->sci_ctrl.atc_timeout > - ((p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].connect_timeout * 100) + CELLULAR_SOCKETCONNECT_DELAY)) - { - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_CONNECT_SOCKET); - } - else - { - at_ret = cellular_execute_at_command(p_ctrl, - ((uint32_t)p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].connect_timeout * 100) + CELLULAR_SOCKETCONNECT_DELAY, - ATC_RETURN_OK, ATC_CONNECT_SOCKET_TOHOST); - } - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqnsd_host - *********************************************************************************************************************/ - diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsh.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsh.c deleted file mode 100644 index 2c683e73912..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsh.c +++ /dev/null @@ -1,82 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : sqnsh.c - * Description : Function to execute the AT command (SQNSH). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_sqnsh - ************************************************************************************************/ -e_cellular_err_t atc_sqnsh(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[10] = {0}; - - sprintf((char *)str, "%d", socket_no); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {str}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_CLOSE_SOCKET][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_CLOSE_SOCKET); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqnsh - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsimst.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsimst.c deleted file mode 100644 index c11ff8b8693..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsimst.c +++ /dev/null @@ -1,77 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : sqnsimst.c - * Description : Function to execute the AT command (SQNSIMST) - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_sqnsimst - ************************************************************************************************/ -e_cellular_err_t atc_sqnsimst(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_SIM_ST_OFF][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_SIM_ST_OFF); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqnsimst - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsnvw.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsnvw.c deleted file mode 100644 index c23042edd8a..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsnvw.c +++ /dev/null @@ -1,135 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : sqnssendext.c - * Version : 1.0 - * Description : Function to execute the AT command (SQNSSENDEXT). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -#if (CELLULAR_IMPLEMENT_TYPE == 'B') -/************************************************************************************************* - * Function Name @fn atc_sqnsnvw - ************************************************************************************************/ -e_cellular_err_t atc_sqnsnvw(st_cellular_ctrl_t * const p_ctrl, const e_cellular_nvm_type_t data_type, - const uint8_t index, const uint32_t size) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[3][12] = {0}; - - if (CELLULAR_NVM_TYPE_CERTIFICATE == data_type) - { - strcpy((char *)&str[0][0], "certificate"); //(uint8_t[])->(char *) - } - else - { - strcpy((char *)&str[0][0], "privatekey"); //(uint8_t[])->(char *) - } - sprintf((char *)str[1], "%d", index); // (uint8_t *)->(char *) - sprintf((char *)str[2], "%d", size); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {str[0], str[1], str[2]}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_WRITE_CERTIFICATE][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, - ATC_RETURN_OK_GO_SEND, ATC_WRITE_CERTIFICATE); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqnsnvw - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_sqnsnvw_erase - ************************************************************************************************/ -e_cellular_err_t atc_sqnsnvw_erase(st_cellular_ctrl_t * const p_ctrl, const e_cellular_nvm_type_t data_type, - const uint8_t index) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[2][12] = {0}; - - if (CELLULAR_NVM_TYPE_CERTIFICATE == data_type) - { - strcpy((char *)&str[0][0], "certificate"); //(uint8_t[])->(char *) - } - else - { - strcpy((char *)&str[0][0], "privatekey"); //(uint8_t[])->(char *) - } - sprintf((char *)str[1], "%d", index); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {str[0], str[1]}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_ERASE_CERTIFICATE][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_ERASE_CERTIFICATE); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqnsnvw_erase - *********************************************************************************************************************/ -#endif /* (CELLULAR_IMPLEMENT_TYPE == 'B') */ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnspcfg.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnspcfg.c deleted file mode 100644 index 52ec35a381f..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnspcfg.c +++ /dev/null @@ -1,115 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : sqnspcfg.c - * Description : Function to execute the AT command (SQNSPCFG). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -#if (CELLULAR_IMPLEMENT_TYPE == 'B') -/************************************************************************************************* - * Function Name @fn atc_sqnspcfg - ************************************************************************************************/ -e_cellular_err_t atc_sqnspcfg(st_cellular_ctrl_t * const p_ctrl, - const uint8_t security_profile_id, - const e_cellular_cert_validate_level_t cert_valid_level, - const uint8_t ca_certificate_id, - const uint8_t client_certificate_id, - const uint8_t client_privatekey_id) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[5][4] = {0}; - - sprintf((char *)str[0], "%d", security_profile_id); // (uint8_t *)->(char *) - sprintf((char *)str[1], "%d", cert_valid_level); // (uint8_t *)->(char *) - if (CELLULAR_MAX_NVM_CERTIFICATE_INDEX >= ca_certificate_id) - { - sprintf((char *)str[2], "%d", ca_certificate_id); // (uint8_t *)->(char *) - } - else - { - str[2][0] = '\0'; - } - if (CELLULAR_MAX_NVM_CERTIFICATE_INDEX >= client_certificate_id) - { - sprintf((char *)str[3], "%d", client_certificate_id); // (uint8_t *)->(char *) - } - else - { - str[3][0] = '\0'; - } - if (CELLULAR_MAX_NVM_CERTIFICATE_INDEX >= client_privatekey_id) - { - sprintf((char *)str[4], "%d", client_privatekey_id); // (uint8_t *)->(char *) / (uint32_t)->(uint8_t) - } - else - { - str[4][0] = '\0'; - } - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = - {str[0], str[1], str[2], str[3], str[4]}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_CONFIG_SSL_PROFILE][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_CONFIG_SSL_PROFILE); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqnspcfg - *********************************************************************************************************************/ -#endif /* (CELLULAR_IMPLEMENT_TYPE == 'B') */ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsrecv.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsrecv.c deleted file mode 100644 index 65bf0ff06ee..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsrecv.c +++ /dev/null @@ -1,83 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : sqnsrecv.c - * Description : Function to execute the AT command (SQNSRECV). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_sqnsrecv - ************************************************************************************************/ -e_cellular_err_t atc_sqnsrecv(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, const int32_t length) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[2][10] = {0}; - - sprintf((char *)str[0], "%d", socket_no); // (uint8_t *)->(char *) - sprintf((char *)str[1], "%d", length); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {str[0], str[1]}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_RECV_SOCKET][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_RECV_SOCKET); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqnsrecv - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsscfg.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsscfg.c deleted file mode 100644 index e3ead7ddd9f..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsscfg.c +++ /dev/null @@ -1,90 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : sqnsscfg.c - * Description : Function to execute the AT command (SQNSSCFG). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -#if (CELLULAR_IMPLEMENT_TYPE == 'B') -/************************************************************************************************* - * Function Name @fn atc_sqnsscfg - ************************************************************************************************/ -e_cellular_err_t atc_sqnsscfg(st_cellular_ctrl_t * const p_ctrl, - const uint8_t socket_no, - const e_cellular_ssl_active_t active, - const uint8_t security_profile_id) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[3][3] = {0}; - - sprintf((char *)str[0], "%d", socket_no); // (uint8_t *)->(char *) - sprintf((char *)str[1], "%d", active); // (uint8_t *)->(char *) - sprintf((char *)str[2], "%d", security_profile_id); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = - {str[0], str[1], str[2]}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_CONFIG_SSL_SOCKET][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_CONFIG_SSL_SOCKET); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqnsscfg - *********************************************************************************************************************/ -#endif /* (CELLULAR_IMPLEMENT_TYPE == 'B') */ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnssendext.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnssendext.c deleted file mode 100644 index 8023da5e87a..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnssendext.c +++ /dev/null @@ -1,83 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : sqnssendext.c - * Description : Function to execute the AT command (SQNSSENDEXT). - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_sqnssendext - ************************************************************************************************/ -e_cellular_err_t atc_sqnssendext(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no, const int32_t length) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - uint8_t str[2][10] = {0}; - - sprintf((char *)str[0], "%d", socket_no); // (uint8_t *)->(char *) - sprintf((char *)str[1], "%d", length); // (uint8_t *)->(char *) - - const uint8_t * const p_command_arg[CELLULAR_MAX_ARG_COUNT] = {str[0], str[1]}; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_SEND_SOCKET][0], // (const uint8_t *const *)->(const uint8_t **) - (const uint8_t **)&p_command_arg); // (const uint8_t *const *)->(const uint8_t **) - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK_GO_SEND, ATC_SEND_SOCKET); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqnssendext - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsshdn.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsshdn.c deleted file mode 100644 index ae1e03e2a72..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/at_command/ryz014/sqnsshdn.c +++ /dev/null @@ -1,77 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : sqnsshdn.c - * Description : Function to execute the AT command (SQNSSHDN) - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "at_command.h" -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************************************* - * Function Name @fn atc_sqnsshdn - ************************************************************************************************/ -e_cellular_err_t atc_sqnsshdn(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_atc_t at_ret = CELLULAR_ATC_OK; - - atc_generate(p_ctrl->sci_ctrl.atc_buff, - (const uint8_t *)&gp_at_command[ATC_SHUTDOWN][0], // (const uint8_t *const *)->(const uint8_t **) - NULL); - - at_ret = cellular_execute_at_command(p_ctrl, p_ctrl->sci_ctrl.atc_timeout, ATC_RETURN_OK, ATC_SHUTDOWN); - - if (CELLULAR_ATC_OK != at_ret) - { - ret = CELLULAR_ERR_MODULE_COM; - } - - return ret; -} -/********************************************************************************************************************** - * End of function atc_sqnsshdn - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/include/r_cellular_private.h b/vendors/renesas/rx_driver_package/v132/r_cellular/src/include/r_cellular_private.h deleted file mode 100644 index 61833824f35..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/include/r_cellular_private.h +++ /dev/null @@ -1,128 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_private.h - * Description : Configures the driver. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -#ifndef CELLULAR_PRIVATE_H -#define CELLULAR_PRIVATE_H - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include -#include -#include -#include - -#if defined(__CCRX__) || defined(__ICCRX__) || defined(__RX__) -#include "platform.h" -#endif - -#include "r_cellular_config.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ -#define CELLULAR_SOCKET_IP_PROTOCOL_TCP (6) -#define CELLULAR_SOCKET_IP_PROTOCOL_UDP (17) -#define CELLULAR_SOCKET_IP_VERSION_4 (4) - -#define CELLULAR_ATC_BUFF_SIZE (300) -#define CELLULAR_ATC_RESPONSE_BUFF_SIZE (2048) - -#define CELLULAR_MAIN_TASK_BIT (0x01 << 1) -#define CELLULAR_RECV_TASK_BIT (0x01 << 2) - -#define CELLULAR_TIME_WAIT_TASK_START (10000) -#define CELLULAR_TIME_OUT_MAX_DELAY (0xffffffff) - -#define CELLULAR_MAX_AP_NAME_LENGTH (64) -#define CELLULAR_MAX_AP_ID_LENGTH (32) -#define CELLULAR_MAX_AP_PASS_LENGTH (64) -#define CELLULAR_MAX_SIM_PASS_LENGTH (8) - -/* Convert a macro value to a string */ -#define CELLULAR_STRING_MACRO(str) #str -/* Call CELLULAR_STRING_MACRO */ -#define CELLULAR_STRING_CONVERT(arg) (CELLULAR_STRING_MACRO(arg)) - -#if (defined(__CCRX__) || defined(__ICCRX__) || defined(__RX__) && defined(__LIT)) \ - || (defined(__CCRL__) || defined(__ICCRL78__) || defined(__RL)) -/* Converts IP address to 32 bits in little endian. */ -#define CELLULAR_IP_ADDER_CONVERT(IPv4_0, IPv4_1, IPv4_2, IPv4_3)\ - ( ( ( ( uint32_t ) ( IPv4_3 ) ) << 24UL ) | \ - ( ( ( uint32_t ) ( IPv4_2 ) ) << 16UL ) | \ - ( ( ( uint32_t ) ( IPv4_1 ) ) << 8UL ) | \ - ( ( uint32_t ) ( IPv4_0 ) ) ) -#else -/* Convert IP address to 32 bits in big endian. */ -#define CELLULAR_IP_ADDER_CONVERT(IPv4_0, IPv4_1, IPv4_2, IPv4_3)\ - ( ( ( ( uint32_t ) ( IPv4_0 ) ) << 24UL ) | \ - ( ( ( uint32_t ) ( IPv4_1 ) ) << 16UL ) | \ - ( ( ( uint32_t ) ( IPv4_2 ) ) << 8UL ) | \ - ( ( uint32_t ) ( IPv4_3 ) ) ) -#endif - -#if defined(__CCRX__) || defined(__ICCRX__) || defined(__RX__) -/* Driver Type */ -#define CELLULAR_IMPLEMENT_TYPE ('A') - -/* PDR port macros. */ -#define CELLULAR_SET_DDR(x, y) (CELLULAR_SET_DDR_PREPROC(x, y)) -/* Set the port direction. */ -#define CELLULAR_SET_DDR_PREPROC(x, y) ((PORT ## x .PDR.BIT.B ## y)) - -/* PODR port macros. */ -#define CELLULAR_SET_DR(x, y) (CELLULAR_SET_DR_PREPROC(x, y)) -/* Set the port I/O. */ -#define CELLULAR_SET_DR_PREPROC(x, y) ((PORT ## x .PODR.BIT.B ## y)) - -#define CELLULAR_PIN_DIRECTION_MODE_OUTPUT (1) - -#define BUILD_TIME_ERROR_MESSAGE_MCU_NOT_SUPPORT "your MCU/compiler does not support this driver." -#define BUILD_TIME_ERROR_MESSAGE_BOARD_NOT_SUPPORT "your board does not support this driver, \ - please define board name macro like BSP_BOARD_RX65N_CLOUD_KIT." -#elif defined(__CCRL__) || defined(__ICCRL78__) || defined(__RL) -/* Driver Type */ -#define CELLULAR_IMPLEMENT_TYPE ('B') - -/* PM port macros. */ -#define CELLULAR_SET_DDR(x, y) (CELLULAR_SET_DDR_PREPROC(x, y)) -/* Set the port direction. */ -#define CELLULAR_SET_DDR_PREPROC(x, y) ((PM ## x ## _bit.no ## y)) - -/* P port macros. */ -#define CELLULAR_SET_DR(x, y) (CELLULAR_SET_DR_PREPROC(x, y)) -/* Set the port I/O. */ -#define CELLULAR_SET_DR_PREPROC(x, y) ((P ## x ## _bit.no ## y)) - -#define CELLULAR_PIN_DIRECTION_MODE_OUTPUT (0) -#endif - -#endif /* CELLULAR_PRIVATE_H */ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/include/ryz014/ryz014_private.h b/vendors/renesas/rx_driver_package/v132/r_cellular/src/include/ryz014/ryz014_private.h deleted file mode 100644 index d576428cd8c..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/include/ryz014/ryz014_private.h +++ /dev/null @@ -1,217 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : ryz014_private.h - * Description : Internal configuration settings for RYZ014A driver. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "r_cellular_private.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ -#ifndef RYZ014_PRIVATE_H -#define RYZ014_PRIVATE_H - -#define CELLULAR_MAX_ARG_COUNT (8) /* Maximum number of arguments to an AT command */ - -#define CELLULAR_START_SOCKET_NUMBER (1) /* Start socket number */ -#define CELLULAR_PACKET_DATA_SIZE (0) /* Packet data size (0~1500,0=auto) */ -#define CELLULAR_EX_TIMEOUT (60) /* Exchange timeout (1sec,0~65535,0=no_limit) */ -#define CELLULAR_CONNECT_TIMEOUT (200) /* connection timeout (0.1sec,10~1200,0=no_limit) */ -#define CELLULAR_TX_TIMEOUT (10) /* Transmit timeout (0.1sec,0~255,0=no_limit) */ -#define CELLULAR_BAUDRATE (921600) /* Baudrate */ -#define CELLULAR_CREATABLE_SOCKETS (6) /* Number of sockets to create (1~6) */ -#define CELLULAR_MAX_TX_SIZE (1500) /* Data processing size per transmission (1~1500) */ -#define CELLULAR_MAX_RX_SIZE (1500) /* Data processing size per reception (1~1500) */ - -#define CELLULAR_PACKET_DATA_SIZE_LIMIT (1500) /* Packet data size limit */ -#define CELLULAR_CONNECT_TIMEOUT_LIMIT_L (10) /* Minimum connection time */ -#define CELLULAR_CONNECT_TIMEOUT_LIMIT_H (1200) /* Connection time limit */ -#define CELLULAR_TX_SIZE_LIMIT_L (1) /* Minimum Sending size */ -#define CELLULAR_TX_SIZE_LIMIT_H (1500) /* Sending size limit */ -#define CELLULAR_RX_SIZE_LIMIT_L (1) /* Minimum Receive size */ -#define CELLULAR_RX_SIZE_LIMIT_H (1500) /* Receive size limit */ -#define CELLULAR_YEAR_LIMIT (99) /* Year limit */ -#define CELLULAR_MONTH_LIMIT (12) /* Month limit */ -#define CELLULAR_DAY_LIMIT (31) /* Day limit */ -#define CELLULAR_HOUR_LIMIT (23) /* Hour limit */ -#define CELLULAR_MIN_LIMIT (59) /* Minite limit */ -#define CELLULAR_SEC_LIMIT (59) /* Second limit */ -#define CELLULAR_TIMEZONE_LIMIT_H (96) /* Time Zone limit */ -#define CELLULAR_TIMEZONE_LIMIT_L (-96) /* Minimum Time Zone */ - -#define CELLULAR_AP_CONNECT_RETRY_WAIT (1000) /* Retry interval when connecting to AP */ -#define CELLULAR_CFUN_WAIT (2000) /* Wait time when executing CFUN command */ -#define CELLULAR_RESET_WAIT (5000) /* Wait time when executing RESET command */ -#define CELLULAR_COMMAND_TIMEOUT (10000) /* AT command response wait time */ -#define CELLULAR_MAX_HOSTNAME_LENGTH (253) /* Maximum Host name length */ -#define CELLULAR_SOCKETCONNECT_DELAY (5000) /* Socket Connect Response delay time (millisecond) */ -#if (CELLULAR_IMPLEMENT_TYPE == 'B') -#define CELLULAR_SECURITY_PROFILE_ID_H (6) /* Maximum Security Profile ID Number */ -#define CELLULAR_SECURITY_PROFILE_ID_L (1) /* Minimum Security Profile ID Number */ -#define CELLULAR_MAX_NVM_CERTIFICATE_INDEX (19) /* Maximum Certificate Index Number */ -#define CELLULAR_NVM_CERTIFICATE_SIZE_H (16384) /* Maximum Certificate File Size */ -#define CELLULAR_NVM_CERTIFICATE_SIZE_L (1) /* Minimum Certificate File Size */ -#endif - -#define RYZ014_ATC_ECHO_OFF "ATE0\r" -#define RYZ014_ATC_FUNCTION_LEVEL_CHECK "AT+CFUN?\r" -#define RYZ014_ATC_FUNCTION_LEVEL "AT+CFUN=%s\r" -#define RYZ014_ATC_PIN_LOCK_CHECK "AT+CPIN?\r" -#define RYZ014_ATC_PIN_LOCK_RELEASE "AT+CPIN=\"%s\"\r" -#define RYZ014_ATC_CONNECT_SOCKET "AT+SQNSD=%s,%s,%s,\"%s.%s.%s.%s\",0,%s,1\r" -#define RYZ014_ATC_CONNECT_SOCKET_TOHOST "AT+SQNSD=%s,%s,%s,\"%s\",0,%s,1\r" -#define RYZ014_ATC_CLOSE_SOCKET "AT+SQNSH=%s\r" -#define RYZ014_ATC_SEND_SCOKET "AT+SQNSSENDEXT=%s,%s\r" -#define RYZ014_ATC_RECV_SCOKET "AT+SQNSRECV=%s,%s\r" -#define RYZ014_ATC_DNS_LOOKUP "AT+SQNDNSLKUP=\"%s\",0\r" -#define RYZ014_ATC_AP_CONFIG "AT+CGDCONT=1,\"IPV4V6\",\"%s\",,,,0,0,0,0,0,0,1,,0\r" -#define RYZ014_ATC_USER_CONFIG "AT+CGAUTH=1,1,\"%s\",\"%s\"\r" -#define RYZ014_ATC_SOCKET_CONFIG_1 "AT+SQNSCFG=%s,1,%s,%s,%s,%s\r" -#define RYZ014_ATC_SOCKET_CONFIG_2 "AT+SQNSCFGEXT=%s,1,0,0\r" -#define RYZ014_ATC_CONNECT_CHECK "AT+CGATT?\r" -#define RYZ014_ATC_SET_CONNECT_STATUS "AT+CGATT=%s\r" -#define RYZ014_ATC_SHUTDOWN "AT+SQNSSHDN\r" -#define RYZ014_ATC_GET_TIME "AT+CCLK?\r" -#define RYZ014_ATC_SET_TIME "AT+CCLK=\"%s/%s/%s,%s:%s:%s%s\"\r" -#define RYZ014_ATC_RESET "AT^RESET\r" -#define RYZ014_ATC_CEREG_OFF "AT+CEREG=0\r" -#define RYZ014_ATC_AUTO_CONNECT_OFF "AT+SQNAUTOCONNECT=0\r" -#define RYZ014_ATC_SIM_ST_OFF "AT+SQNSIMST=0\r" -#define RYZ014_ATC_GET_SERVICE_STATUS "AT+COPS?\r" -#define RYZ014_ATC_SET_PROVIDER "AT+COPS=%s,2,\"%s%s\"\r" -#define RYZ014_ATC_GET_PDN_STATE "AT+CGACT?\r" -#define RYZ014_ATC_ACTIVATE_PDN "AT+CGACT=1,%s\r" -#define RYZ014_ATC_GET_IPADDR "AT+CGPADDR=%s\r" -#define RYZ014_ATC_GET_PSM "AT+CPSMS?\r" -#define RYZ014_ATC_SET_PSM "AT+CPSMS=%s,,,\"%s\",\"%s\"\r" -#define RYZ014_ATC_GET_EDRX "AT+SQNEDRX?\r" -#define RYZ014_ATC_SET_EDRX "AT+SQNEDRX=%s,4,\"%s\",\"%s\"\r" -#define RYZ014_ATC_GET_SIGNAL_STRENGTH "AT+CSQ\r" -#define RYZ014_ATC_GET_SW_VERSION "AT+CGMR\r" -#define RYZ014_ATC_GET_SERIAL_NUMBER "AT+CGSN\r" -#define RYZ014_ATC_GET_MODULE_NAME "AT+CGMM\r" -#define RYZ014_ATC_GET_MAKER_NAME "AT+CGMI\r" -#define RYZ014_ATC_GET_IMSI "AT+CIMI\r" -#define RYZ014_ATC_SEND_COMMAND_TO_SIM "AT+CRSM=%s,%s,%s,%s,%s,\"%s\",\"%s\"\r" -#define RYZ014_ATC_SET_PSM_CONFIG "AT+SQNIPSCFG=%s,5000\r" -#define RYZ014_ATC_SET_RING_CONFIG "AT+SQNRICFG=%s,3,1000\r" -#define RYZ014_ATC_SET_IND_NOTIFY "AT+CMER=3,0,0,%s,0,0,0\r" -#define RYZ014_ATC_SET_SQN_PROVIDER "AT+SQNCTM=\"%s\"\r" -#define RYZ014_NO_COMMAND "\r" -#if (CELLULAR_IMPLEMENT_TYPE == 'B') -#define RYZ014_ATC_WRITE_CERTIFICATE "AT+SQNSNVW=\"%s\",%s,%s\r" -#define RYZ014_ATC_ERASE_CERTIFICATE "AT+SQNSNVW=\"%s\",%s,0\r" -#define RYZ014_ATC_CONFIG_SSL_PROFILE "AT+SQNSPCFG=%s,2,,%s,%s,%s,%s,\"\"\r" -#define RYZ014_ATC_CONFIG_SSL_SOCKET "AT+SQNSSCFG=%s,%s,%s\r" -#endif - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ -typedef enum -{ - ATC_ECHO_OFF = 0, - ATC_FUNCTION_LEVEL_CHECK, - ATC_FUNCTION_LEVEL, - ATC_PIN_LOCK_CHECK, - ATC_PIN_LOCK_RELEASE, - ATC_CONNECT_SOCKET, - ATC_CONNECT_SOCKET_TOHOST, - ATC_CLOSE_SOCKET, - ATC_SEND_SOCKET, - ATC_RECV_SOCKET, - ATC_DNS_LOOKUP, - ATC_AP_CONFIG, - ATC_USER_CONFIG, - ATC_SOCKET_CONFIG_1, - ATC_SOCKET_CONFIG_2, - ATC_CONNECT_CHECK, - ATC_SET_CONNECT_STATUS, - ATC_SHUTDOWN, - ATC_GET_TIME, - ATC_SET_TIME, - ATC_RESET, - ATC_CEREG_OFF, - ATC_AUTO_CONNECT_OFF, - ATC_SIM_ST_OFF, - ATC_GET_SERVICE_STATUS, - ATC_SET_PROVIDER, - ATC_GET_PDN_STATE, - ATC_ACTIVATE_PDN, - ATC_GET_IPADDR, - ATC_GET_PSM, - ATC_SET_PSM, - ATC_GET_EDRXS, - ATC_SET_EDRXS, - ATC_GET_SIGNAL_STRENGTH, - ATC_GET_SW_VERSION, - ATC_GET_SERIAL_NUMBER, - ATC_GET_MODULE_NAME, - ATC_GET_MAKER_NAME, - ATC_GET_IMSI, - ATC_SEND_COMMAND_TO_SIM, - ATC_SET_PSM_CONFIG, - ATC_SET_RING_CONFIG, - ATC_SET_IND_NOTIFY, - ATC_SQNSSENDEXT_END, -#if (CELLULAR_IMPLEMENT_TYPE == 'B') - ATC_WRITE_CERTIFICATE, - ATC_ERASE_CERTIFICATE, - ATC_CONFIG_SSL_PROFILE, - ATC_CONFIG_SSL_SOCKET, -#endif - ATC_LIST_MAX -} e_atc_list_t; - -typedef enum -{ - ATC_RETURN_NONE = 0, // No response from the module - ATC_RETURN_OK, // Module response is "OK" - ATC_RETURN_ERROR, // Module response is "ERROR" - ATC_RETURN_OK_GO_SEND, // Module response is ">" - ATC_RETURN_SEND_NO_CARRIER, // Module response is "NO CARRIER" - ATC_RETURN_CPIN_READY, // Module response is "+CPIN: READY" - ATC_RETURN_SIM_LOCK, // Module response is "+CPIN: SIM PIN" - ATC_RETURN_AP_CONNECTING, // Module response is "CONNECT" - ATC_RETURN_AP_NOT_CONNECT, // Module is not connected to the access point - ATC_RETURN_CFUN1, // Module control level is 1 - ATC_RETURN_CFUN4, // Module control level is 4 - ATC_RETURN_ENUM_MAX, // Maximum enumeration value -} e_cellular_atc_return_t; - -typedef enum -{ - ATC_AP_DISCONNECT = 0, // Disconnect from AP - ATC_AP_CONNECT, // Connect to AP -} e_atc_ap_status_t; - -#endif /* #define RYZ014_PRIVATE_H */ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/include/cellular_receive_task.h b/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/include/cellular_receive_task.h deleted file mode 100644 index 466cd6cac5b..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/include/cellular_receive_task.h +++ /dev/null @@ -1,138 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_receive_task.h - * Description : Configures the driver. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -#ifndef CELLULAR_RECEIVE_TASK_H -#define CELLULAR_RECEIVE_TASK_H - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "r_cellular_if.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ -#define CELLULAR_IDLE_PRIORITY (6) - -#define ATC_RES_BEGIN_OR_END "\r\n" -#define ATC_RES_GO_SEND ">" -#define ATC_RES_OK "OK\r\n" -#define ATC_RES_ERROR "ERROR\r\n" -#define ATC_RES_NO_CARRIER "NO CARRIER\r\n" -#define ATC_RES_CONNECT "CONNECT\r\n" -#define ATC_RES_CPIN_READY "READY\r\n" -#define ATC_RES_CPIN_SIM_LOCK "SIM PIN\r\n" -#define ATC_RES_DATA_RECEIVE "+SQNSRING:" -#define ATC_RES_DATA_RECEIVE_QIRD "+SQNSRECV:" -#define ATC_RES_READ_DNS "+SQNDNSLKUP:" -#define ATC_RES_PIN_LOCK_STATUS "+CPIN:" -#define ATC_RES_SOCKET_CLOSE "+SQNSH:" -#define ATC_RES_SYSTEM_START "+SYSSTART" -#define ATC_RES_ATTACH_STATUS "+CGATT:" -#define ATC_RES_FUNCTION_LEVEL "+CFUN:" -#define ATC_RES_TIMEZONE "+CTZE:" -#define ATC_RES_REGIST_STATUS_1 "+CREG:" -#define ATC_RES_REGIST_STATUS_2 "+CEREG:" -#define ATC_RES_GET_TIME "+CCLK:" -#define ATC_RES_FATAL_ERROR "^EXIT: Fatal error\r\n" -#define ATC_RES_GET_SERVICE_STATUS "+COPS:" -#define ATC_RES_GET_PDP_STATUS "+CGACT:" -#define ATC_RES_GET_IP_ADDR "+CGPADDR:" -#define ATC_RES_GET_PSMS "+CPSMS:" -#define ATC_RES_GET_EDRXS "+SQNEDRX:" -#define ATC_RES_SET_EDRXS "+CEDRXP:" -#define ATC_RES_GET_SIGNAL "+CSQ:" -#define ATC_RES_COMMAND_SEND_SIM "+CRSM:" -#define ATC_RES_TIMEZONE_INFO "+CTZV:" -#define ATC_RES_IND_INFO "+CIEV:" - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ -typedef enum -{ - CELLULAR_RES_GO_SEND = 0, // Request for Data Transmission - CELLULAR_RES_OK, // Response is OK - CELLULAR_RES_ERROR, // Response is ERROR - CELLULAR_RES_NO_CARRIER, // Response is NO CARRIER - CELLULAR_RES_CONNECT, // Response is CONNECT - CELLULAR_RES_CPIN_READY, // Response is CPIN READY - CELLULAR_RES_CPIN_SIM_LOCK, // Response is CPIN SIM ROCK - CELLULAR_RES_DATA_RECEIVE, // Data receipt notification - CELLULAR_RES_DATA_RECEIVE_QIRD, // Receipt data delivery request - CELLULAR_RES_READ_DNS, // DNS query results - CELLULAR_RES_PIN_LOCK_STATUS, // Check SIM lock status - CELLULAR_RES_SOCKET_CLOSE, // Socket Disconnection Notification - CELLULAR_RES_SYSTEM_START, // Module activation notification - CELLULAR_RES_ATTACH_STATUS, // Connection status to access point - CELLULAR_RES_FUNCTION_LEVEL, // Module control level - CELLULAR_RES_TIMEZONE, // Time zone notification - CELLULAR_RES_REGIST_STATUS_1, // Connected base station information - CELLULAR_RES_REGIST_STATUS_2, // Connected base station information - CELLULAR_RES_GET_TIME, // Time acquisition process - CELLULAR_RES_FAITAL_ERROR, // Fatal error on the module side, reboot required - CELLULAR_GET_SERVICE_STATUS, // Get service status - CELLULAR_GET_PDP_STATUS, // Get PDP status - CELLULAR_GET_IP_ADDR, // Get the IP address in use - CELLULAR_GET_PSMS, // Get the power save mode setting - CELLULAR_GET_EDRXS, // Get the low power mode setting - CELLULAR_SET_EDRXS, // Setting the low power mode - CELLULAR_GET_SIGNAL_QUALITY, // Get signal strength - CELLULAR_RES_TO_COMMAND_SEND_SIM, // SIM access results - CELLULAR_RES_TIMEZONE_INFO, // Get time zone information - CELLULAR_RES_IND_INFO, // Get indicator notifications - CELLULAR_RES_MAX, // End of analysis result processing - - CELLULAR_RES_PUT_CHAR, // Received data storage process - CELLULAR_RES_CHECK, // Receipt confirmation process - CELLULAR_RES_NONE, // No process -} e_atc_return_code_t; - -typedef enum -{ - JOB_STATUS_NONE = 0, // AT command response being analyzed - JOB_STATUS_FIRST_CHAR_CHECK, // First character check - JOB_STATUS_COLON_CHECK, // Confirm receipt of colon - JOB_STATUS_MAX, // End of enum -} e_job_status_t; - -typedef struct cellular_receive -{ - uint8_t data; // Data received from module - uint8_t overflow_flag; // Receive buffer overflow flag - e_atc_return_code_t job_no; // Execution process number - e_job_status_t job_status; // Execution process confirmation number - uint8_t socket_no; // Socket number - uint32_t recv_count; // Received bytes - uint32_t tmp_recvcnt; // Processing start point -} st_cellular_receive_t; - -#endif /* CELLULAR_RECEIVE_TASK_H */ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_at_cmd_res_ctrl.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_at_cmd_res_ctrl.c deleted file mode 100644 index 62c49bd5006..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_at_cmd_res_ctrl.c +++ /dev/null @@ -1,82 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_at_cmd_res_ctrl.c - * Description : Function to manage AT command responses. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/**************************************************************************** - * Function Name @fn cellular_set_atc_number - ***************************************************************************/ -void cellular_set_atc_number(st_cellular_ctrl_t * const p_ctrl, const e_atc_list_t command) -{ - p_ctrl->sci_ctrl.at_command = command; - p_ctrl->sci_ctrl.atc_flg = CELLULAR_ATC_RESPONCE_UNCONFIRMED; - return; -} -/********************************************************************************************************************** - * End of function cellular_set_atc_number - *********************************************************************************************************************/ - -/**************************************************************************** - * Function Name @fn cellular_get_atc_response - *************************************************************************/ -e_cellular_atc_return_t cellular_get_atc_response(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_atc_return_t res = ATC_RETURN_NONE; - - if (CELLULAR_ATC_RESPONCE_CONFIRMED == p_ctrl->sci_ctrl.atc_flg) - { - res = p_ctrl->sci_ctrl.atc_res; - } - - return res; -} -/********************************************************************************************************************** - * End of function cellular_get_atc_response - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_closesocket.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_closesocket.c deleted file mode 100644 index 7433ad41e4d..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_closesocket.c +++ /dev/null @@ -1,86 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_closesocket.c - * Description : Function to close the socket. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************ - * Function Name @fn cellular_closesocket - ***********************************************************************/ -e_cellular_err_t cellular_closesocket(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - - if (CELLULAR_SOCKET_STATUS_CONNECTED == - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].socket_status) - { - ret = cellular_shutdownsocket(p_ctrl, socket_no); - } - - if (CELLULAR_SUCCESS == ret) - { - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].ipversion = 0; - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].protocol = 0; - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].receive_count = 0; - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].receive_num = 0; - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].receive_unprocessed_size = 0; - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].socket_status - = CELLULAR_SOCKET_STATUS_CLOSED; - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].port = 0; - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].ipaddr = 0; - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].receive_flg = CELLULAR_RECEIVE_FLAG_OFF; - } - - return ret; -} -/********************************************************************************************************************** - * End of function cellular_closesocket - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_disconnect.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_disconnect.c deleted file mode 100644 index 31052c293c8..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_disconnect.c +++ /dev/null @@ -1,82 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_disconnect.c - * Description : Function to disconnect from the access point. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/******************************************************************************* - * Function Name @fn cellular_disconnect - ******************************************************************************/ -e_cellular_err_t cellular_disconnect(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - - semaphore_ret = cellular_take_semaphore(p_ctrl->at_semaphore); - if (CELLULAR_SEMAPHORE_SUCCESS == semaphore_ret) - { - ret = atc_cgatt(p_ctrl, ATC_AP_DISCONNECT); - if (CELLULAR_SUCCESS == ret) - { - p_ctrl->system_state = CELLULAR_SYSTEM_OPEN; - } - cellular_give_semaphore(p_ctrl->at_semaphore); - } - else - { - ret = CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING; - } - - return ret; -} -/********************************************************************************************************************** - * End of function cellular_disconnect - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_execute_at_cmd.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_execute_at_cmd.c deleted file mode 100644 index 62f5ffc5241..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_execute_at_cmd.c +++ /dev/null @@ -1,137 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_execute_at_cmd.c - * Description : Function to send an AT command to a module. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/**************************************************************************** - * Function Name @fn cellular_execute_at_command - ***************************************************************************/ -e_cellular_err_atc_t cellular_execute_at_command(st_cellular_ctrl_t * const p_ctrl, const uint32_t timeout_ms, - const e_cellular_atc_return_t expect_code, - const e_atc_list_t command) -{ - sci_err_t sci_ret = SCI_SUCCESS; - e_cellular_timeout_check_t timeout_ret = CELLULAR_NOT_TIMEOUT; - e_cellular_err_atc_t ret = CELLULAR_ATC_OK; - e_cellular_atc_return_t res = ATC_RETURN_NONE; - - if (NULL == p_ctrl) - { - ret = CELLULAR_ATC_ERR_PARAMETER; - } - - if (CELLULAR_ATC_OK == ret) - { - cellular_bytetimeout_init(&p_ctrl->sci_ctrl.timeout_ctrl, timeout_ms); - cellular_set_atc_number(p_ctrl, command); - p_ctrl->sci_ctrl.tx_end_flg = CELLULAR_TX_END_FLAG_OFF; - - sci_ret = R_SCI_Send(p_ctrl->sci_ctrl.sci_hdl, p_ctrl->sci_ctrl.atc_buff, - strlen((const char *)p_ctrl->sci_ctrl.atc_buff)); // (&uint8_t[])->(char*) - - if (SCI_SUCCESS == sci_ret) - { - while (1) - { - if (CELLULAR_TX_END_FLAG_ON == p_ctrl->sci_ctrl.tx_end_flg) - { - break; - } - - timeout_ret = cellular_check_bytetimeout(&p_ctrl->sci_ctrl.timeout_ctrl); - if (CELLULAR_TIMEOUT == timeout_ret) - { - ret = CELLULAR_ATC_ERR_TIMEOUT; - goto cellular_execute_at_command_fail; - } - } - } - else - { - ret = CELLULAR_ATC_ERR_MODULE_COM; - goto cellular_execute_at_command_fail; - } - } - - if (CELLULAR_ATC_OK == ret) - { - while (1) - { - res = cellular_get_atc_response(p_ctrl); - if (ATC_RETURN_NONE != res) - { - if (res == expect_code) - { - break; - } - else - { - ret = CELLULAR_ATC_ERR_COMPARE; - goto cellular_execute_at_command_fail; - } - } - - timeout_ret = cellular_check_bytetimeout(&p_ctrl->sci_ctrl.timeout_ctrl); - if (CELLULAR_TIMEOUT == timeout_ret) - { - ret = CELLULAR_ATC_ERR_TIMEOUT; - goto cellular_execute_at_command_fail; - } - } - } - -cellular_execute_at_command_fail: - { - return ret; - } -} -/********************************************************************************************************************** - * End of function cellular_execute_at_command - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_power_down.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_power_down.c deleted file mode 100644 index a6775174adf..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_power_down.c +++ /dev/null @@ -1,79 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_power_down.c - * Description : Function to stop power supply to the module. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "at_command.h" -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/**************************************************************************** - * Function Name @fn cellular_power_down - ***************************************************************************/ -void cellular_power_down(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - - while (1) - { - ret = atc_sqnsshdn(p_ctrl); - if (CELLULAR_SUCCESS == ret) - { - break; - } - else - { - cellular_delay_task(1000); - } - } - - return; -} -/********************************************************************************************************************** - End of function cellular_power_down - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_sci_ctrl.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_sci_ctrl.c deleted file mode 100644 index c2ba4cabef3..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_sci_ctrl.c +++ /dev/null @@ -1,171 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_sci_ctrl.c - * Description : Functions to manage serial communication functions. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ -static volatile st_cellular_ctrl_t * sp_cellular_ctrl; - -static void cellular_uart_callback (void * const p_Args); - -/********************************************************************************************** - * Function Name @fn cellular_serial_open - *********************************************************************************************/ -e_cellular_err_t cellular_serial_open(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - sci_err_t sci_ret = SCI_SUCCESS; - sci_cfg_t sci_cfg = {0}; -#if defined(__CCRX__) || defined(__ICCRX__) || defined(__RX__) - uint8_t priority = CELLULAR_CFG_INT_PRIORITY - 1; -#endif - - sp_cellular_ctrl = p_ctrl; - - p_ctrl->sci_ctrl.tx_buff_size = R_SCI_CFG_TX_BUFSIZE; - p_ctrl->sci_ctrl.rx_buff_size = R_SCI_CFG_RX_BUFSIZE; - sci_cfg.async.baud_rate = p_ctrl->sci_ctrl.baud_rate; - sci_cfg.async.clk_src = SCI_CLK_INT; - sci_cfg.async.data_size = SCI_DATA_8BIT; - sci_cfg.async.parity_en = SCI_PARITY_OFF; - sci_cfg.async.parity_type = SCI_EVEN_PARITY; - sci_cfg.async.stop_bits = SCI_STOPBITS_1; - sci_cfg.async.int_priority = CELLULAR_CFG_INT_PRIORITY; // 1=lowest, 15=highest - - sci_ret = R_SCI_Open(R_SCI_CFG_CELLULAR_SERIAL_CH, SCI_MODE_ASYNC, &sci_cfg, - cellular_uart_callback, &p_ctrl->sci_ctrl.sci_hdl); - - if (SCI_SUCCESS != sci_ret) - { - ret = CELLULAR_ERR_SERIAL_OPEN; - } - else - { - R_SCI_Control(p_ctrl->sci_ctrl.sci_hdl, SCI_CMD_EN_CTS_IN, NULL); -#if defined(__CCRX__) || defined(__ICCRX__) || defined(__RX__) - R_SCI_Control(p_ctrl->sci_ctrl.sci_hdl, SCI_CMD_SET_TXI_PRIORITY, &priority); -#endif - R_SCI_CFG_PINSET_CELLULAR_SERIAL(); - CELLULAR_SET_DR(CELLULAR_CFG_RTS_PORT, CELLULAR_CFG_RTS_PIN) = 0; - CELLULAR_SET_DDR(CELLULAR_CFG_RTS_PORT, CELLULAR_CFG_RTS_PIN) = CELLULAR_PIN_DIRECTION_MODE_OUTPUT; - } - - return ret; -} -/********************************************************************************************************************** - * End of function cellular_serial_open - *********************************************************************************************************************/ - -/********************************************************************************************** - * Function Name @fn cellular_serial_close - * Description @details Terminate the serial communication function. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - *********************************************************************************************/ -void cellular_serial_close(st_cellular_ctrl_t * const p_ctrl) -{ - R_SCI_Close(p_ctrl->sci_ctrl.sci_hdl); - return; -} -/********************************************************************************************************************** - * End of function cellular_serial_close - *********************************************************************************************************************/ - -/********************************************************************************************** - * Function Name @fn cellular_uart_callback - * Description @details Callback function for serial communication. - * Arguments @param[in/out] p_Args - - * callback arguments. - *********************************************************************************************/ -static void cellular_uart_callback(void * const p_Args) -{ - sci_cb_args_t * const p_args = (sci_cb_args_t *)p_Args; //(void *)->(sci_cb_args_t *) - - switch (p_args->event) - { - case SCI_EVT_RX_CHAR: - { - /* Do Nothing */ - break; - } -#if SCI_CFG_TEI_INCLUDED - case SCI_EVT_TEI: - { - sp_cellular_ctrl->sci_ctrl.tx_end_flg = CELLULAR_TX_END_FLAG_ON; - break; - } -#endif - case SCI_EVT_RXBUF_OVFL: - { - sp_cellular_ctrl->sci_ctrl.sci_err_flg = SCI_EVT_RXBUF_OVFL; - break; - } - case SCI_EVT_OVFL_ERR: - { - sp_cellular_ctrl->sci_ctrl.sci_err_flg = SCI_EVT_OVFL_ERR; - break; - } - case SCI_EVT_FRAMING_ERR: - { - sp_cellular_ctrl->sci_ctrl.sci_err_flg = SCI_EVT_FRAMING_ERR; - break; - } - case SCI_EVT_PARITY_ERR: - { - sp_cellular_ctrl->sci_ctrl.sci_err_flg = SCI_EVT_PARITY_ERR; - break; - } - default: - { - break; - } - } -} -/********************************************************************************************************************** - * End of function cellular_uart_callback - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_semaphore_ctrl.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_semaphore_ctrl.c deleted file mode 100644 index 418bc08df3b..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_semaphore_ctrl.c +++ /dev/null @@ -1,88 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_semaphore_ctrl.c - * Description : Function to manage semaphore functions. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/**************************************************************************** - * Function Name @fn cellular_semaphore_init - ***************************************************************************/ -e_cellular_err_t cellular_semaphore_init(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - uint8_t semaphore_name[20] = {0}; - uint8_t count = 0; - - p_ctrl->at_semaphore = cellular_create_semaphore("atc_semaphore"); - if (NULL == p_ctrl->at_semaphore) - { - ret = CELLULAR_ERR_SEMAPHORE_INIT; - } - else - { - for (count = 0; count < p_ctrl->creatable_socket; count++ ) - { - sprintf((char *)semaphore_name, //(uint8_t * ) -> (char *) - "socket-%d_semaphore", count + CELLULAR_START_SOCKET_NUMBER); - p_ctrl->p_socket_ctrl[count].rx_semaphore = - cellular_create_semaphore((const char *)semaphore_name); //(uint8_t * ) -> (const char *) - if (NULL == p_ctrl->p_socket_ctrl[count].rx_semaphore) - { - ret = CELLULAR_ERR_SEMAPHORE_INIT; - } - } - - } - - return ret; -} -/********************************************************************************************************************** - * End of function cellular_semaphore_init - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_shutdownsocket.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_shutdownsocket.c deleted file mode 100644 index edc1f0d30b1..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_shutdownsocket.c +++ /dev/null @@ -1,99 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_shutdownsocket.c - * Description : Function to disconnect a socket connection. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "at_command.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/************************************************************************ - * Function Name @fn cellular_shutdownsocket - * Description @details Disconnect the socket connection. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Number to close socket. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully disconnected the socket connection. - * @retval CELLULAR_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ERR_SOCKET_NUM - - * No available socket. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ***********************************************************************/ -e_cellular_err_t cellular_shutdownsocket(st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no) -{ - e_cellular_err_semaphore_t semaphore_ret = CELLULAR_SEMAPHORE_SUCCESS; - e_cellular_err_t ret = CELLULAR_SUCCESS; - - semaphore_ret = cellular_take_semaphore(p_ctrl->at_semaphore); - if (CELLULAR_SEMAPHORE_SUCCESS == semaphore_ret) - { - ret = atc_sqnsh(p_ctrl, socket_no); - if (CELLULAR_SUCCESS == ret) - { - p_ctrl->p_socket_ctrl[socket_no - CELLULAR_START_SOCKET_NUMBER].socket_status - = CELLULAR_SOCKET_STATUS_SOCKET; - } - - cellular_give_semaphore(p_ctrl->at_semaphore); - } - else - { - ret = CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING; - } - - return ret; -} -/********************************************************************************************************************** - End of function cellular_shutdownsocket - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_task_ctrl.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_task_ctrl.c deleted file mode 100644 index 01c24d06226..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_task_ctrl.c +++ /dev/null @@ -1,94 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_task_ctrl.c - * Description : Functions to manage tasks. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" -#include "cellular_receive_task.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/**************************************************************************** - * Function Name @fn cellular_start_recv_task - ***************************************************************************/ -e_cellular_err_t cellular_start_recv_task(st_cellular_ctrl_t * const p_ctrl) -{ - e_cellular_err_t ret = CELLULAR_SUCCESS; - - p_ctrl->eventgroup = cellular_create_event_group("task_event"); - if (NULL == p_ctrl->eventgroup) - { - ret = CELLULAR_ERR_EVENT_GROUP_INIT; - } - else - { -#if BSP_CFG_RTOS_USED == (1) - ret = cellular_create_task(cellular_recv_task, - "cellular_recv_task", - 2048, - (void *)p_ctrl, //(st_cellular_ctrl_t *)->(void *) - CELLULAR_IDLE_PRIORITY, - &p_ctrl->recv_taskhandle); -#elif BSP_CFG_RTOS_USED == (5) - p_ctrl->recv_taskhandle = cellular_create_task(cellular_recv_task, - "cellular_recv_task", - 2048, - (void *)p_ctrl, //(st_cellular_ctrl_t *)->(void *) - CELLULAR_IDLE_PRIORITY, - &p_ctrl->recv_taskhandle); - if (NULL == p_ctrl->recv_taskhandle) - { - ret = CELLULAR_ERR_CREATE_TASK; - } -#endif - } - - return ret; -} -/********************************************************************************************************************** - End of function cellular_start_recv_task - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_timeout_ctrl.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_timeout_ctrl.c deleted file mode 100644 index 88bac1f8823..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/cellular_timeout_ctrl.c +++ /dev/null @@ -1,215 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_timeout_ctrl.c - * Description : Functions to manage timeouts. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "cellular_private_api.h" -#include "cellular_freertos.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ - -/******************************************************************************* - * Function Name @fn cellular_timeout_init - ******************************************************************************/ -void cellular_timeout_init(st_cellular_socket_time_ctrl_t * const p_timeout_ctrl, const uint32_t timeout_ms) -{ - uint32_t timeout = timeout_ms; - - if (0 == timeout_ms) - { - timeout = CELLULAR_TIME_OUT_MAX_DELAY; - } - - p_timeout_ctrl->start_time = cellular_get_tickcount(); - p_timeout_ctrl->end_time = p_timeout_ctrl->start_time + timeout; - p_timeout_ctrl->remain_time = timeout; - - if (p_timeout_ctrl->end_time < p_timeout_ctrl->start_time) - { - p_timeout_ctrl->timeout_overflow_flag = CELLULAR_TIMEOUT_OVERFLOW; - } - else - { - p_timeout_ctrl->timeout_overflow_flag = CELLULAR_TIMEOUT_NOT_OVERFLOW; - } -} -/********************************************************************************************************************** - * End of function cellular_timeout_init - *********************************************************************************************************************/ - -/******************************************************************************* - * Function Name @fn cellular_bytetimeout_init - ******************************************************************************/ -void cellular_bytetimeout_init(st_cellular_module_time_ctrl_t * const p_timeout_ctrl, const uint32_t timeout_ms) -{ - p_timeout_ctrl->start_time = cellular_get_tickcount(); - p_timeout_ctrl->end_time = p_timeout_ctrl->start_time + timeout_ms; - - if (p_timeout_ctrl->end_time < p_timeout_ctrl->start_time) - { - p_timeout_ctrl->timeout_overflow_flag = CELLULAR_TIMEOUT_OVERFLOW; - } - else - { - p_timeout_ctrl->timeout_overflow_flag = CELLULAR_TIMEOUT_NOT_OVERFLOW; - } -} -/********************************************************************************************************************** - * End of function cellular_bytetimeout_init - *********************************************************************************************************************/ - -/******************************************************************************* - * Function Name @fn cellular_check_timeout - ******************************************************************************/ -e_cellular_timeout_check_t cellular_check_timeout(st_cellular_socket_time_ctrl_t * const p_timeout_ctrl) -{ - p_timeout_ctrl->this_time = cellular_get_tickcount(); - - if (CELLULAR_TIMEOUT_NOT_OVERFLOW == p_timeout_ctrl->timeout_overflow_flag) - { - if ((p_timeout_ctrl->this_time >= p_timeout_ctrl->end_time) || - (p_timeout_ctrl->this_time < p_timeout_ctrl->start_time)) - { - return CELLULAR_TIMEOUT; - } - } - else - { - if ((p_timeout_ctrl->this_time < p_timeout_ctrl->start_time) && - (p_timeout_ctrl->this_time >= p_timeout_ctrl->end_time)) - { - return CELLULAR_TIMEOUT; - } - } - - cellular_delay_task(1); - - return CELLULAR_NOT_TIMEOUT; -} -/********************************************************************************************************************** - * End of function cellular_check_timeout - *********************************************************************************************************************/ - -/******************************************************************************* - * Function Name @fn cellular_check_bytetimeout - ******************************************************************************/ -e_cellular_timeout_check_t cellular_check_bytetimeout(st_cellular_module_time_ctrl_t * const p_timeout_ctrl) -{ - p_timeout_ctrl->this_time = cellular_get_tickcount(); - - if (CELLULAR_TIMEOUT_NOT_OVERFLOW == p_timeout_ctrl->timeout_overflow_flag) - { - if ((p_timeout_ctrl->this_time >= p_timeout_ctrl->end_time) || - (p_timeout_ctrl->this_time < p_timeout_ctrl->start_time)) - { - return CELLULAR_TIMEOUT; - } - } - else - { - if ((p_timeout_ctrl->this_time < p_timeout_ctrl->start_time) && - (p_timeout_ctrl->this_time >= p_timeout_ctrl->end_time)) - { - return CELLULAR_TIMEOUT; - } - } - - cellular_delay_task(1); - - return CELLULAR_NOT_TIMEOUT; -} -/********************************************************************************************************************** - * End of function cellular_check_bytetimeout - *********************************************************************************************************************/ - -/******************************************************************************* - * Function Name @fn cellular_check_timeout_remain - ******************************************************************************/ -e_cellular_timeout_check_t cellular_check_timeout_remain(st_cellular_socket_time_ctrl_t * p_timeout_ctrl, - const uint32_t timeout_ms) -{ - p_timeout_ctrl->this_time = cellular_get_tickcount(); - - if (CELLULAR_TIMEOUT_NOT_OVERFLOW == p_timeout_ctrl->timeout_overflow_flag) - { - if ((p_timeout_ctrl->this_time >= p_timeout_ctrl->end_time) || - (p_timeout_ctrl->this_time < p_timeout_ctrl->start_time)) - { - return CELLULAR_TIMEOUT; - } - else - { - p_timeout_ctrl->remain_time = p_timeout_ctrl->end_time - - p_timeout_ctrl->this_time; - } - } - else - { - if ((p_timeout_ctrl->this_time < p_timeout_ctrl->start_time) && - (p_timeout_ctrl->this_time >= p_timeout_ctrl->end_time)) - { - return CELLULAR_TIMEOUT; - } - else - { - if (p_timeout_ctrl->this_time < p_timeout_ctrl->start_time) - { - p_timeout_ctrl->remain_time = p_timeout_ctrl->end_time - p_timeout_ctrl->this_time; - } - else - { - p_timeout_ctrl->remain_time = timeout_ms - (p_timeout_ctrl->this_time - p_timeout_ctrl->start_time); - } - } - } - - cellular_delay_task(1); - - return CELLULAR_NOT_TIMEOUT; -} -/********************************************************************************************************************** - * End of function cellular_check_timeout_remain - *********************************************************************************************************************/ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/include/cellular_private_api.h b/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/include/cellular_private_api.h deleted file mode 100644 index be0fea138ae..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/private_api/include/cellular_private_api.h +++ /dev/null @@ -1,399 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : cellular_private_api.h - * Description : Configures the driver. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -#ifndef CELLULAR_PRIVATE_API_H -#define CELLULAR_PRIVATE_API_H - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "r_cellular_if.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ -#ifndef CELLULAR_CFG_UART_SCI_CH -#error "Error! Need to define CELLULAR_CFG_UART_SCI_CH in cellular_config.h" -#elif CELLULAR_CFG_UART_SCI_CH == (0) -#if defined(__CCRX__) || defined(__ICCRX__) || defined(__RX__) -/* Store R_SCI_PinSet_SCI0() in R_SCI_CFG_PINSET_CELLULAR_SERIAL() */ -#define R_SCI_CFG_PINSET_CELLULAR_SERIAL() (R_SCI_PinSet_SCI0()) -#elif defined(__CCRL__) || defined(__ICCRL78__) || defined(__RL) -/* */ -#define R_SCI_CFG_PINSET_CELLULAR_SERIAL() -#endif -#define R_SCI_CFG_CELLULAR_SERIAL_CH (SCI_CH0) -#define R_SCI_CFG_TX_BUFSIZE (SCI_CFG_CH0_TX_BUFSIZ) -#define R_SCI_CFG_RX_BUFSIZE (SCI_CFG_CH0_RX_BUFSIZ) -#elif CELLULAR_CFG_UART_SCI_CH == (1) -#if defined(__CCRX__) || defined(__ICCRX__) || defined(__RX__) -/* Store R_SCI_PinSet_SCI1() in R_SCI_CFG_PINSET_CELLULAR_SERIAL() */ -#define R_SCI_CFG_PINSET_CELLULAR_SERIAL() (R_SCI_PinSet_SCI1()) -#elif defined(__CCRL__) || defined(__ICCRL78__) || defined(__RL) -/* Emptying R_SCI_CFG_PINSET_CELLULAR_SERIAL() */ -#define R_SCI_CFG_PINSET_CELLULAR_SERIAL() -#endif -#define R_SCI_CFG_CELLULAR_SERIAL_CH (SCI_CH1) -#define R_SCI_CFG_TX_BUFSIZE (SCI_CFG_CH1_TX_BUFSIZ) -#define R_SCI_CFG_RX_BUFSIZE (SCI_CFG_CH1_RX_BUFSIZ) -#elif CELLULAR_CFG_UART_SCI_CH == (2) -#if defined(__CCRX__) || defined(__ICCRX__) || defined(__RX__) -/* Store R_SCI_PinSet_SCI2() in R_SCI_CFG_PINSET_CELLULAR_SERIAL() */ -#define R_SCI_CFG_PINSET_CELLULAR_SERIAL() (R_SCI_PinSet_SCI2()) -#elif defined(__CCRL__) || defined(__ICCRL78__) || defined(__RL) -/* Emptying R_SCI_CFG_PINSET_CELLULAR_SERIAL() */ -#define R_SCI_CFG_PINSET_CELLULAR_SERIAL() -#endif -#define R_SCI_CFG_CELLULAR_SERIAL_CH (SCI_CH2) -#define R_SCI_CFG_TX_BUFSIZE (SCI_CFG_CH2_TX_BUFSIZ) -#define R_SCI_CFG_RX_BUFSIZE (SCI_CFG_CH2_RX_BUFSIZ) -#elif CELLULAR_CFG_UART_SCI_CH == (3) -#if defined(__CCRX__) || defined(__ICCRX__) || defined(__RX__) -/* Store R_SCI_PinSet_SCI3() in R_SCI_CFG_PINSET_CELLULAR_SERIAL() */ -#define R_SCI_CFG_PINSET_CELLULAR_SERIAL() (R_SCI_PinSet_SCI3()) -#elif defined(__CCRL__) || defined(__ICCRL78__) || defined(__RL) -/* Emptying R_SCI_CFG_PINSET_CELLULAR_SERIAL() */ -#define R_SCI_CFG_PINSET_CELLULAR_SERIAL() -#endif -#define R_SCI_CFG_CELLULAR_SERIAL_CH (SCI_CH3) -#define R_SCI_CFG_TX_BUFSIZE (SCI_CFG_CH3_TX_BUFSIZ) -#define R_SCI_CFG_RX_BUFSIZE (SCI_CFG_CH3_RX_BUFSIZ) -#elif CELLULAR_CFG_UART_SCI_CH == (4) -/* Store R_SCI_PinSet_SCI4() in R_SCI_CFG_PINSET_CELLULAR_SERIAL() */ -#define R_SCI_CFG_PINSET_CELLULAR_SERIAL() (R_SCI_PinSet_SCI4()) -#define R_SCI_CFG_CELLULAR_SERIAL_CH (SCI_CH4) -#define R_SCI_CFG_TX_BUFSIZE (SCI_CFG_CH4_TX_BUFSIZ) -#define R_SCI_CFG_RX_BUFSIZE (SCI_CFG_CH4_RX_BUFSIZ) -#elif CELLULAR_CFG_UART_SCI_CH == (5) -/* Store R_SCI_PinSet_SCI5() in R_SCI_CFG_PINSET_CELLULAR_SERIAL() */ -#define R_SCI_CFG_PINSET_CELLULAR_SERIAL() (R_SCI_PinSet_SCI5()) -#define R_SCI_CFG_CELLULAR_SERIAL_CH (SCI_CH5) -#define R_SCI_CFG_TX_BUFSIZE (SCI_CFG_CH5_TX_BUFSIZ) -#define R_SCI_CFG_RX_BUFSIZE (SCI_CFG_CH5_RX_BUFSIZ) -#elif CELLULAR_CFG_UART_SCI_CH == (6) -/* Store R_SCI_PinSet_SCI6() in R_SCI_CFG_PINSET_CELLULAR_SERIAL() */ -#define R_SCI_CFG_PINSET_CELLULAR_SERIAL() (R_SCI_PinSet_SCI6()) -#define R_SCI_CFG_CELLULAR_SERIAL_CH (SCI_CH6) -#define R_SCI_CFG_TX_BUFSIZE (SCI_CFG_CH6_TX_BUFSIZ) -#define R_SCI_CFG_RX_BUFSIZE (SCI_CFG_CH6_RX_BUFSIZ) -#elif CELLULAR_CFG_UART_SCI_CH == (7) -/* Store R_SCI_PinSet_SCI7() in R_SCI_CFG_PINSET_CELLULAR_SERIAL() */ -#define R_SCI_CFG_PINSET_CELLULAR_SERIAL() (R_SCI_PinSet_SCI7()) -#define R_SCI_CFG_CELLULAR_SERIAL_CH (SCI_CH7) -#define R_SCI_CFG_TX_BUFSIZE (SCI_CFG_CH7_TX_BUFSIZ) -#define R_SCI_CFG_RX_BUFSIZE (SCI_CFG_CH7_RX_BUFSIZ) -#elif CELLULAR_CFG_UART_SCI_CH == (8) -/* Store R_SCI_PinSet_SCI8() in R_SCI_CFG_PINSET_CELLULAR_SERIAL() */ -#define R_SCI_CFG_PINSET_CELLULAR_SERIAL() (R_SCI_PinSet_SCI8()) -#define R_SCI_CFG_CELLULAR_SERIAL_CH (SCI_CH8) -#define R_SCI_CFG_TX_BUFSIZE (SCI_CFG_CH8_TX_BUFSIZ) -#define R_SCI_CFG_RX_BUFSIZE (SCI_CFG_CH8_RX_BUFSIZ) -#elif CELLULAR_CFG_UART_SCI_CH == (9) -/* Store R_SCI_PinSet_SCI9() in R_SCI_CFG_PINSET_CELLULAR_SERIAL() */ -#define R_SCI_CFG_PINSET_CELLULAR_SERIAL() (R_SCI_PinSet_SCI9()) -#define R_SCI_CFG_CELLULAR_SERIAL_CH (SCI_CH9) -#define R_SCI_CFG_TX_BUFSIZE (SCI_CFG_CH9_TX_BUFSIZ) -#define R_SCI_CFG_RX_BUFSIZE (SCI_CFG_CH9_RX_BUFSIZ) -#elif CELLULAR_CFG_UART_SCI_CH == (10) -/* Store R_SCI_PinSet_SCI10() in R_SCI_CFG_PINSET_CELLULAR_SERIAL() */ -#define R_SCI_CFG_PINSET_CELLULAR_SERIAL() (R_SCI_PinSet_SCI10()) -#define R_SCI_CFG_CELLULAR_SERIAL_CH (SCI_CH10) -#define R_SCI_CFG_TX_BUFSIZE (SCI_CFG_CH10_TX_BUFSIZ) -#define R_SCI_CFG_RX_BUFSIZE (SCI_CFG_CH10_RX_BUFSIZ) -#elif CELLULAR_CFG_UART_SCI_CH == (11) -/* Store R_SCI_PinSet_SCI11() in R_SCI_CFG_PINSET_CELLULAR_SERIAL() */ -#define R_SCI_CFG_PINSET_CELLULAR_SERIAL() (R_SCI_PinSet_SCI11()) -#define R_SCI_CFG_CELLULAR_SERIAL_CH (SCI_CH11) -#define R_SCI_CFG_TX_BUFSIZE (SCI_CFG_CH11_TX_BUFSIZ) -#define R_SCI_CFG_RX_BUFSIZE (SCI_CFG_CH11_RX_BUFSIZ) -#elif CELLULAR_CFG_UART_SCI_CH == (12) -/* Store R_SCI_PinSet_SCI12() in R_SCI_CFG_PINSET_CELLULAR_SERIAL() */ -#define R_SCI_CFG_PINSET_CELLULAR_SERIAL() (R_SCI_PinSet_SCI12()) -#define R_SCI_CFG_CELLULAR_SERIAL_CH (SCI_CH12) -#define R_SCI_CFG_TX_BUFSIZE (SCI_CFG_CH12_TX_BUFSIZ) -#define R_SCI_CFG_RX_BUFSIZE (SCI_CFG_CH12_RX_BUFSIZ) -#else -#error "Error! Invalid setting for CELLULAR_UART_SCI_CH in cellular_config.h" -#endif /* CELLULAR_CFG_UART_SCI_CH */ - -/***************************************************************************** - * Private Functions - *****************************************************************************/ -/**************************************************************************** - * Function Name @fn cellular_power_down - * Description @details Stop the power supply to the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - ***************************************************************************/ -void cellular_power_down (st_cellular_ctrl_t * const p_ctrl); - -/********************************************************************************************** - * Function Name @fn cellular_serial_open - * Description @details Initializing the serial communication function. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully initialized the serial communication function. - * @retval CELLULAR_ERR_SERIAL_OPEN - - * Serial initialization failed. - *********************************************************************************************/ -e_cellular_err_t cellular_serial_open (st_cellular_ctrl_t * const p_ctrl); - -/********************************************************************************************** - * Function Name @fn cellular_serial_close - * Description @details Terminate the serial communication function. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - *********************************************************************************************/ -void cellular_serial_close (st_cellular_ctrl_t * const p_ctrl); - -/**************************************************************************** - * Function Name @fn cellular_semaphore_init - * Description @details Initialize the semaphore function. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully semaphore initialization. - * @retval CELLULAR_ERR_SEMAPHORE_INIT - - * Failed to initialize the semaphore. - ***************************************************************************/ -e_cellular_err_t cellular_semaphore_init (st_cellular_ctrl_t * const p_ctrl); - -/**************************************************************************** - * Function Name @fn cellular_socket_init - * Description @details Send AT command to the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully Socket initialization. - * @retval CELLULAR_ERR_BYTEQ_OPEN - - * Failed to initialize the byte queue. - ***************************************************************************/ -e_cellular_err_t cellular_socket_init (st_cellular_ctrl_t * const p_ctrl); - -/******************************************************************************* - * Function Name @fn cellular_timeout_init - * Description @details Configure the timeout settings. - * Arguments @param[in/out] p_timeout_ctrl - - * Pointer to the timeout management structure. - * @param[in] timeout_ms - - * Timeout millisecond. - ******************************************************************************/ -void cellular_timeout_init (st_cellular_socket_time_ctrl_t * const p_timeout_ctrl, const uint32_t timeout_ms); - -/******************************************************************************* - * Function Name @fn cellular_bytetimeout_init - * Description @details Set the communication timeout with the module. - * Arguments @param[in/out] p_timeout_ctrl - - * Pointer to the timeout management structure. - * @param[in] timeout_ms - - * Timeout millisecond. - ******************************************************************************/ -void cellular_bytetimeout_init (st_cellular_module_time_ctrl_t * const p_timeout_ctrl, const uint32_t timeout_ms); - -/******************************************************************************* - * Function Name @fn cellular_check_timeout - * Description @details Check the timeout. - * Arguments @param[in/out] p_timeout_ctrl - - * Pointer to the timeout management structure. - * Return Value @retval CELLULAR_NOT_TIMEOUT - - * No timeout occurred. - * @retval CELLULAR_TIMEOUT; - - * Timeout occurs. - ******************************************************************************/ -e_cellular_timeout_check_t cellular_check_timeout (st_cellular_socket_time_ctrl_t * const p_timeout_ctrl); - -/******************************************************************************* - * Function Name @fn cellular_check_bytetimeout - * Description @details Check communication timeout with the module. - * Arguments @param[in/out] p_timeout_ctrl - - * Pointer to the timeout management structure. - * Return Value @retval CELLULAR_NOT_TIMEOUT - - * No timeout occurred. - * @retval CELLULAR_TIMEOUT; - - * Timeout occurs. - ******************************************************************************/ -e_cellular_timeout_check_t cellular_check_bytetimeout (st_cellular_module_time_ctrl_t * const p_timeout_ctrl); - -/******************************************************************************* - * Function Name @fn cellular_check_timeout_remain - * Description @details Check the time remaining until the set time. - * Arguments @param[in/out] p_timeout_ctrl - - * Pointer to the timeout management structure. - * @param[in/out] timeout_ms - - * Timeout millisecond. - * Return Value @retval CELLULAR_NOT_TIMEOUT - - * No timeout occurred. - * @retval CELLULAR_TIMEOUT; - - * Timeout occurs. - ******************************************************************************/ -e_cellular_timeout_check_t cellular_check_timeout_remain (st_cellular_socket_time_ctrl_t * p_timeout_ctrl, - const uint32_t timeout_ms); - -/************************************************************************ - * Function Name @fn cellular_shutdownsocket - * Description @details Disconnect the socket connection. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Number to close socket. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully disconnected the socket connection. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ***********************************************************************/ -e_cellular_err_t cellular_shutdownsocket (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no); - -/************************************************************************ - * Function Name @fn cellular_closesocket - * Description @details Close the socket. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] socket_no - - * Number to close socket. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully closed the socket. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ***********************************************************************/ -e_cellular_err_t cellular_closesocket (st_cellular_ctrl_t * const p_ctrl, const uint8_t socket_no); - -/******************************************************************************* - * Function Name @fn cellular_disconnect - * Description @details Disconnect from the access point. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully disconnected from access point. - * @retval CELLULAR_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ERR_OTHER_ATCOMMAND_RUNNING - - * Other AT commands are running. - ******************************************************************************/ -e_cellular_err_t cellular_disconnect (st_cellular_ctrl_t * const p_ctrl); - -/*********************************************************************************************** - * Function Name @fn cellular_recv_task - * Description @details Process incoming data from the module. - * Arguments @param[in/out] p_pvParameters - - * Pointer to the parameter given at the time of task creation. - **********************************************************************************************/ -#if BSP_CFG_RTOS_USED == (1) -void cellular_recv_task (void * p_pvParameters); -#elif BSP_CFG_RTOS_USED == (5) -void cellular_recv_task (ULONG p_pvParameters); -#endif - -/**************************************************************************** - * Function Name @fn cellular_start_recv_task - * Description @details Start receiving task. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval CELLULAR_SUCCESS - - * Successfully executed AT command. - * @retval CELLULAR_ERR_EVENT_GROUP_INIT - - * Failed to initialize the event group. - * @retval CELLULAR_ERR_CREATE_TASK - - * Failed to create task. - ***************************************************************************/ -e_cellular_err_t cellular_start_recv_task (st_cellular_ctrl_t * const p_ctrl); - -/**************************************************************************** - * Function Name @fn cellular_set_atc_number - * Description @details Stores the AT command number being executed. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] command - - * Running AT command number. - ***************************************************************************/ -void cellular_set_atc_number (st_cellular_ctrl_t * const p_ctrl, const e_atc_list_t command); - -/**************************************************************************** - * Function Name @fn cellular_get_atc_response - * Description @details Get the response from the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * Return Value @retval ATC_RETURN_NONE - - * No response from the module. - * @retval ATC_RETURN_OK - - * Module response is "OK". - * @retval ATC_RETURN_ERROR - - * Module response is "ERROR". - * @retval ATC_RETURN_OK_GO_SEND - - * Module response is ">". - * @retval ATC_RETURN_SEND_NO_CARRIER - - * Module response is "NO CARRIER". - * @retval ATC_RETURN_CPIN_READY - - * Module response is "+CPIN: READY". - * @retval ATC_RETURN_SIM_LOCK - - * Module response is "+CPIN: SIM PIN". - * @retval ATC_RETURN_AP_CONNECTING - - * Module response is "CONNECT". - * @retval ATC_RETURN_AP_NOT_CONNECT - - * Module is not connected to the access point. - * @retval ATC_RETURN_CFUN1 - - * Module control level is 1 - * @retval ATC_RETURN_CFUN4 - - * Module control level is 4 - *************************************************************************/ -e_cellular_atc_return_t cellular_get_atc_response (st_cellular_ctrl_t * const p_ctrl); - -/************************************************************************************* - * Function Name @fn cellular_execute_at_command - * Description @details Send AT command to the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] timeout_ms - - * Timeout millisecond. - * @param[in] expect_code - - * Response expectancy. - * @param[in] command - - * Running AT command number. - * Return Value @retval CELLULAR_ATC_OK - - * Successfully executed AT command. - * @retval CELLULAR_ATC_ERR_PARAMETER - - * Argument is abnormal. - * @retval CELLULAR_ATC_ERR_MODULE_COM - - * Communication with module failed. - * @retval CELLULAR_ATC_ERR_COMPARE - - * The return value from the module is disappointing. - * @retval CELLULAR_ATC_ERR_TIMEOUT - - * Time out. - ************************************************************************************/ -e_cellular_err_atc_t cellular_execute_at_command (st_cellular_ctrl_t * const p_ctrl, const uint32_t timeout_ms, - const e_cellular_atc_return_t expect_code, - const e_atc_list_t command); - -#endif /* CELLULAR_PRIVATE_API_H */ diff --git a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/r_cellular_receive_task.c b/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/r_cellular_receive_task.c deleted file mode 100644 index 327473456ea..00000000000 --- a/vendors/renesas/rx_driver_package/v132/r_cellular/src/private/r_cellular_receive_task.c +++ /dev/null @@ -1,1607 +0,0 @@ -/********************************************************************************************************************** - * DISCLAIMER - * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No - * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all - * applicable laws, including copyright laws. - * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING - * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM - * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES - * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO - * THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of - * this software. By using this software, you agree to the additional terms and conditions found by accessing the - * following link: - * http://www.renesas.com/disclaimer - * - * Copyright (C) 2019 Renesas Electronics Corporation. All rights reserved. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * File Name : r_cellular_receive_task.c - * Description : Functions of the receiving task. - *********************************************************************************************************************/ -/********************************************************************************************************************** - * History : DD.MM.YYYY Version Description - * : xx.xx.xxxx 1.00 First Release - * : 02.09.2021 1.01 Fixed reset timing - * : 21.10.2021 1.02 Support for Azure RTOS - * Support for GCC for Renesas GNURX Toolchain - * : 15.11.2021 1.03 Improved receiving behavior, removed socket buffers - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Includes , "Project Includes" - *********************************************************************************************************************/ -#include "r_cellular_if.h" -#include "cellular_freertos.h" -#include "cellular_receive_task.h" - -/********************************************************************************************************************** - * Macro definitions - *********************************************************************************************************************/ -#define CHAR_CHECK_1 ('+') -#define CHAR_CHECK_2 ('>') -#define CHAR_CHECK_3 (':') -#define CHAR_CHECK_4 ('\n') -#define CHAR_CHECK_5 (',') -#define CHAR_CHECK_6 (' ') - -/********************************************************************************************************************** - * Typedef definitions - *********************************************************************************************************************/ - -/********************************************************************************************************************** - * Exported global variables - *********************************************************************************************************************/ -#if BSP_CFG_RTOS_USED == (5) -extern st_cellular_ctrl_t * gp_cellular_ctrl; -#endif -//static irq_handle_t g_irq_handle = NULL; - -/********************************************************************************************************************** - * Private (static) variables and functions - *********************************************************************************************************************/ -static const uint8_t s_atc_res_go_send[] = ATC_RES_GO_SEND; -static const uint8_t s_atc_res_ok[] = ATC_RES_OK; -static const uint8_t s_atc_res_error[] = ATC_RES_ERROR; -static const uint8_t s_atc_res_no_carrier[] = ATC_RES_NO_CARRIER; -static const uint8_t s_atc_res_connect[] = ATC_RES_CONNECT; -static const uint8_t s_atc_res_cpin_ready[] = ATC_RES_CPIN_READY; -static const uint8_t s_atc_res_spin_sim_lock[] = ATC_RES_CPIN_SIM_LOCK; -static const uint8_t s_atc_res_data_receive[] = ATC_RES_DATA_RECEIVE; -static const uint8_t s_atc_res_data_receive_qird[] = ATC_RES_DATA_RECEIVE_QIRD; -static const uint8_t s_atc_res_read_dns[] = ATC_RES_READ_DNS; -static const uint8_t s_atc_res_pin_lock_status[] = ATC_RES_PIN_LOCK_STATUS; -static const uint8_t s_atc_res_socket_close[] = ATC_RES_SOCKET_CLOSE; -static const uint8_t s_atc_res_system_start[] = ATC_RES_SYSTEM_START; -static const uint8_t s_atc_res_attach_status[] = ATC_RES_ATTACH_STATUS; -static const uint8_t s_atc_res_function_level[] = ATC_RES_FUNCTION_LEVEL; -static const uint8_t s_atc_res_timezone[] = ATC_RES_TIMEZONE; -static const uint8_t s_atc_res_regist_status_1[] = ATC_RES_REGIST_STATUS_1; -static const uint8_t s_atc_res_regist_status_2[] = ATC_RES_REGIST_STATUS_2; -static const uint8_t s_atc_res_get_time[] = ATC_RES_GET_TIME; -static const uint8_t s_atc_res_faital_error[] = ATC_RES_FATAL_ERROR; -static const uint8_t s_atc_res_get_service_status[] = ATC_RES_GET_SERVICE_STATUS; -static const uint8_t s_atc_res_get_pdp_status[] = ATC_RES_GET_PDP_STATUS; -static const uint8_t s_atc_res_get_ip_addr[] = ATC_RES_GET_IP_ADDR; -static const uint8_t s_atc_res_get_psms[] = ATC_RES_GET_PSMS; -static const uint8_t s_atc_res_get_edrxs[] = ATC_RES_GET_EDRXS; -static const uint8_t s_atc_res_set_edrxs[] = ATC_RES_SET_EDRXS; -static const uint8_t s_atc_res_get_signal[] = ATC_RES_GET_SIGNAL; -static const uint8_t s_atc_res_command_send_sim[] = ATC_RES_COMMAND_SEND_SIM; -static const uint8_t s_atc_res_timezene_info[] = ATC_RES_TIMEZONE_INFO; -static const uint8_t s_atc_res_ind_info[] = ATC_RES_IND_INFO; - -static const uint8_t * const sp_cellular_atc_res_tbl[CELLULAR_RES_MAX] = -{ - s_atc_res_go_send, - s_atc_res_ok, - s_atc_res_error, - s_atc_res_no_carrier, - s_atc_res_connect, - s_atc_res_cpin_ready, - s_atc_res_spin_sim_lock, - s_atc_res_data_receive, - s_atc_res_data_receive_qird, - s_atc_res_read_dns, - s_atc_res_pin_lock_status, - s_atc_res_socket_close, - s_atc_res_system_start, - s_atc_res_attach_status, - s_atc_res_function_level, - s_atc_res_timezone, - s_atc_res_regist_status_1, - s_atc_res_regist_status_2, - s_atc_res_get_time, - s_atc_res_faital_error, - s_atc_res_get_service_status, - s_atc_res_get_pdp_status, - s_atc_res_get_ip_addr, - s_atc_res_get_psms, - s_atc_res_get_edrxs, - s_atc_res_set_edrxs, - s_atc_res_get_signal, - s_atc_res_command_send_sim, - s_atc_res_timezene_info, - s_atc_res_ind_info -}; - -static void cellular_job_check (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static e_atc_return_code_t cellular_response_string_check (uint8_t * p_string); - -static void cellular_responce_check (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_data_send_command (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_get_data_reception (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_request_data (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_store_data (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_dns_result (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_get_ap_connect_status (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_station_info (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_control_level (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_cpin_status (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_get_time (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_disconnect_socket (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_get_timezone (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_get_service_status (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_get_pdp_status (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_get_ip_addr (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_get_psms (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_get_edrx (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_get_signal (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_res_command_send_sim (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_timezone_info (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); -static void cellular_response_skip (st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive); - -static e_atc_list_t cellular_get_at_command (st_cellular_ctrl_t * const p_ctrl); -static void cellular_set_atc_response (st_cellular_ctrl_t * const p_ctrl, const e_cellular_atc_return_t result); -static void irq_callback (void * const p_Args); - -/*********************************************************************************************** - * Function Name @fn cellular_recv_task - * Description @details Process incoming data from the module. - * Arguments @param[in/out] p_pvParameters - - * Pointer to the parameter given at the time of task creation. - **********************************************************************************************/ - -#if BSP_CFG_RTOS_USED == (1) -void cellular_recv_task(void * const p_pvParameters) -#elif BSP_CFG_RTOS_USED == (5) -void cellular_recv_task(ULONG p_pvParameters) -#endif -{ -#if BSP_CFG_RTOS_USED == (1) - st_cellular_ctrl_t * const p_ctrl = p_pvParameters; -#elif BSP_CFG_RTOS_USED == (5) - st_cellular_ctrl_t * const p_ctrl = gp_cellular_ctrl; -#endif - - sci_err_t sci_ret = SCI_SUCCESS; - st_cellular_receive_t cellular_receive = {0,0,CELLULAR_RES_NONE,JOB_STATUS_NONE,0,0,0}; - - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - - cellular_synchro_event_group(p_ctrl->eventgroup, CELLULAR_RECV_TASK_BIT, - (CELLULAR_MAIN_TASK_BIT | CELLULAR_RECV_TASK_BIT), CELLULAR_TIME_WAIT_TASK_START); - - while (1) - { - sci_ret = R_SCI_Receive(p_ctrl->sci_ctrl.sci_hdl, &cellular_receive.data, 1); - if (SCI_SUCCESS != sci_ret) - { - cellular_delay_task(1); - } - else - { - if (cellular_receive.recv_count > CELLULAR_ATC_RESPONSE_BUFF_SIZE) - { - cellular_receive.overflow_flag = 1; - CELLULAR_LOG_ERROR(("sci buffer overflow\n")); - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(&cellular_receive, 0, sizeof(st_cellular_receive_t)); - cellular_receive.job_no = CELLULAR_RES_NONE; - } - else - { - p_ctrl->sci_ctrl.receive_buff[cellular_receive.recv_count] = cellular_receive.data; - cellular_receive.recv_count++; - } - switch (cellular_receive.job_no) - { - case CELLULAR_RES_NONE: - cellular_job_check(p_ctrl, &cellular_receive); - break; - case CELLULAR_RES_CHECK: - cellular_responce_check(p_ctrl, &cellular_receive); - break; - case CELLULAR_RES_GO_SEND: - cellular_data_send_command(p_ctrl, &cellular_receive); - break; - case CELLULAR_RES_DATA_RECEIVE: - cellular_get_data_reception(p_ctrl, &cellular_receive); - break; - case CELLULAR_RES_DATA_RECEIVE_QIRD: - cellular_request_data(p_ctrl, &cellular_receive); - break; - case CELLULAR_RES_PUT_CHAR: - cellular_store_data(p_ctrl, &cellular_receive); - break; - case CELLULAR_RES_READ_DNS: - cellular_dns_result(p_ctrl, &cellular_receive); - break; - case CELLULAR_RES_ATTACH_STATUS: - cellular_get_ap_connect_status(p_ctrl, &cellular_receive); - break; - case CELLULAR_RES_REGIST_STATUS_1: - case CELLULAR_RES_REGIST_STATUS_2: - cellular_station_info(p_ctrl, &cellular_receive); - break; - case CELLULAR_RES_FUNCTION_LEVEL: - cellular_control_level(p_ctrl, &cellular_receive); - break; - case CELLULAR_RES_PIN_LOCK_STATUS: - cellular_cpin_status(p_ctrl, &cellular_receive); - break; - case CELLULAR_RES_GET_TIME: - cellular_get_time(p_ctrl, &cellular_receive); - break; - case CELLULAR_RES_SOCKET_CLOSE: - cellular_disconnect_socket(p_ctrl, &cellular_receive); - break; - case CELLULAR_RES_TIMEZONE: - cellular_get_timezone(p_ctrl, &cellular_receive); - break; - case CELLULAR_GET_SERVICE_STATUS: - cellular_get_service_status(p_ctrl, &cellular_receive); - break; - case CELLULAR_GET_PDP_STATUS: - cellular_get_pdp_status(p_ctrl, &cellular_receive); - break; - case CELLULAR_GET_IP_ADDR: - cellular_get_ip_addr(p_ctrl, &cellular_receive); - break; - case CELLULAR_GET_PSMS: - cellular_get_psms(p_ctrl, &cellular_receive); - break; - case CELLULAR_GET_EDRXS: - case CELLULAR_SET_EDRXS: - cellular_get_edrx(p_ctrl, &cellular_receive); - break; - case CELLULAR_GET_SIGNAL_QUALITY: - cellular_get_signal(p_ctrl, &cellular_receive); - break; - case CELLULAR_RES_TO_COMMAND_SEND_SIM: - cellular_res_command_send_sim(p_ctrl, &cellular_receive); - break; - case CELLULAR_RES_TIMEZONE_INFO: - cellular_timezone_info(p_ctrl, &cellular_receive); - break; - case CELLULAR_RES_IND_INFO: - cellular_timezone_info(p_ctrl, &cellular_receive); - break; - case CELLULAR_RES_MAX: - cellular_response_skip(p_ctrl, &cellular_receive); - break; - default: - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(&cellular_receive, 0, sizeof(st_cellular_receive_t)); - cellular_receive.job_no = CELLULAR_RES_NONE; - break; - } - } - } -} -/********************************************************************************************************************** - * End of function cellular_recv_task - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_job_check - * Description @details Analyze incoming data. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_job_check(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - switch (p_cellular_receive->job_status) - { - case JOB_STATUS_NONE: - { - if ((char)p_cellular_receive->data == (CHAR_CHECK_4)) // (uint8_t)->(char) - { - if (NULL != strstr((char *) &p_ctrl->sci_ctrl.receive_buff[0], //(uint8_t *)->(char *) - ATC_RES_BEGIN_OR_END)) - { - p_cellular_receive->job_status = JOB_STATUS_FIRST_CHAR_CHECK; - p_cellular_receive->tmp_recvcnt = p_cellular_receive->recv_count; - } - else - { - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - } - break; - } - case JOB_STATUS_FIRST_CHAR_CHECK: - { - if ((char)p_cellular_receive->data == (CHAR_CHECK_1)) //(uint8_t)->(char) - { - p_cellular_receive->job_status = JOB_STATUS_COLON_CHECK; - } - else if ((char)p_cellular_receive->data == (CHAR_CHECK_2)) //(uint8_t)->(char) - { - p_cellular_receive->job_no = CELLULAR_RES_GO_SEND; - } - else - { - p_cellular_receive->job_no = CELLULAR_RES_CHECK; - } - break; - } - case JOB_STATUS_COLON_CHECK: - { - if ((char)p_cellular_receive->data == (CHAR_CHECK_3)) //(uint8_t)->(char) - { - p_cellular_receive->job_no - = cellular_response_string_check(&p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt]); - p_cellular_receive->tmp_recvcnt = p_cellular_receive->recv_count; - } - else if ((char)p_cellular_receive->data == (CHAR_CHECK_4)) //(uint8_t)->(char) - { - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - else - { - /* Do Nothing */ - R_BSP_NOP(); - } - break; - } - default : - { - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - break; - } - } - return; -} -/********************************************************************************************************************** - * End of function cellular_job_check - *********************************************************************************************************************/ - - -/************************************************************************************************ - * Function Name @fn cellular_response_string_check - * Description @details Parse a string. - * Arguments @param[in] p_string - - * Pointer to parsing string. - * Return Value @retval e_atc_return_code_t - - * Returns the e-num value corresponding to the analysis result. - ***********************************************************************************************/ -static e_atc_return_code_t cellular_response_string_check(uint8_t * p_string) -{ - uint8_t i = 0; - e_atc_return_code_t res = CELLULAR_RES_MAX; - - while (i < CELLULAR_RES_MAX) - { - if (NULL != strstr((const char *)&p_string[0], //(uint8_t *)->(char *) - (const char *)sp_cellular_atc_res_tbl[i])) //(uint8_t *)->(char *) - { - break; - } - else - { - i++; - } - } - if (i < CELLULAR_RES_MAX) - { - res = (e_atc_return_code_t)i; //(uint8_t)->(e_atc_return_code_t) - } - - return res; -} -/********************************************************************************************************************** - * End of function cellular_response_string_check - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_responce_check - * Description @details Parses the received string and returns the result. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_responce_check(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - if ((char)p_cellular_receive->data == (CHAR_CHECK_4)) //(uint8_t)->(char) - { - p_cellular_receive->job_no = cellular_response_string_check(&p_ctrl->sci_ctrl.receive_buff[0]); - - switch (p_cellular_receive->job_no) - { - case CELLULAR_RES_OK: - case CELLULAR_RES_CONNECT: - { - cellular_set_atc_response(p_ctrl, ATC_RETURN_OK); - break; - } - case CELLULAR_RES_ERROR: - { - cellular_set_atc_response(p_ctrl, ATC_RETURN_ERROR); - break; - } - case CELLULAR_RES_NO_CARRIER: - { - cellular_set_atc_response(p_ctrl, ATC_RETURN_SEND_NO_CARRIER); - break; - } - case CELLULAR_RES_FAITAL_ERROR: - { - CELLULAR_LOG_ERROR(("The module froze up\n")); - break; - } - default: - { - if (ATC_GET_SW_VERSION == p_ctrl->sci_ctrl.at_command) - { - R_BSP_NOP(); - } - if (ATC_GET_SERIAL_NUMBER == p_ctrl->sci_ctrl.at_command) - { - R_BSP_NOP(); - } - if (ATC_GET_MODULE_NAME == p_ctrl->sci_ctrl.at_command) - { - R_BSP_NOP(); - } - if (ATC_GET_MAKER_NAME == p_ctrl->sci_ctrl.at_command) - { - R_BSP_NOP(); - } - if (ATC_GET_IMSI == p_ctrl->sci_ctrl.at_command) - { - R_BSP_NOP(); - } - break; - } - } - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_responce_check - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_data_send_command - * Description @details Process of sending data to the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_data_send_command(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_6: - { - cellular_set_atc_response(p_ctrl, ATC_RETURN_OK_GO_SEND); - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_data_send_command - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_get_data_reception - * Description @details Get data reception notification from module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_get_data_reception(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - uint8_t sscanf_ret = 0; - int32_t socket_no = 0; - int32_t length = 0; - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_4: - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_BEGIN_OR_END)) - { - sscanf_ret = sscanf((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - " %d,%d", &socket_no, &length); - if (2 == sscanf_ret) - { - p_cellular_receive->socket_no = socket_no; - p_cellular_receive->socket_no -= CELLULAR_START_SOCKET_NUMBER; - p_ctrl->p_socket_ctrl[p_cellular_receive->socket_no].receive_unprocessed_size += length; - p_ctrl->p_socket_ctrl[p_cellular_receive->socket_no].receive_count = 0; - p_ctrl->p_socket_ctrl[p_cellular_receive->socket_no].receive_flg = CELLULAR_RECEIVE_FLAG_ON; - } - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_get_data_reception - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_request_data - * Description @details Processing of requests to pass data to the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_request_data(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - int32_t sscanf_ret = 0; - int32_t socket_no = 0; - int32_t length = 0; - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_4: - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_BEGIN_OR_END)) - { - sscanf_ret = sscanf((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - " %d,%d", &socket_no, &length); - if (2 == sscanf_ret) - { - p_cellular_receive->socket_no = socket_no; - p_cellular_receive->socket_no -= CELLULAR_START_SOCKET_NUMBER; - p_ctrl->p_socket_ctrl[p_cellular_receive->socket_no].receive_unprocessed_size -= length; - - if (0 >= p_ctrl->p_socket_ctrl[p_cellular_receive->socket_no].receive_unprocessed_size) - { - p_ctrl->p_socket_ctrl[p_cellular_receive->socket_no].receive_unprocessed_size = 0; - p_ctrl->p_socket_ctrl[p_cellular_receive->socket_no].receive_flg = CELLULAR_RECEIVE_FLAG_OFF; - } - p_ctrl->p_socket_ctrl[p_cellular_receive->socket_no].receive_num = length; - p_ctrl->p_socket_ctrl[p_cellular_receive->socket_no].receive_count = 0; - p_cellular_receive->job_no = CELLULAR_RES_PUT_CHAR; - } - else - { - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - cellular_set_atc_response(p_ctrl, ATC_RETURN_ERROR); - } - } - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_request_data - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_store_data - * Description @details Store data received from the module in the byte queue. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_store_data(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - if (p_ctrl->p_socket_ctrl[p_cellular_receive->socket_no].receive_count < - p_ctrl->p_socket_ctrl[p_cellular_receive->socket_no].receive_num) - { - *(p_ctrl->p_socket_ctrl[p_cellular_receive->socket_no].p_recv + - p_ctrl->p_socket_ctrl[p_cellular_receive->socket_no].total_recv_count) = p_cellular_receive->data; - p_ctrl->p_socket_ctrl[p_cellular_receive->socket_no].receive_count++; - p_ctrl->p_socket_ctrl[p_cellular_receive->socket_no].total_recv_count++; - } - else - { - if (4 <= p_cellular_receive->recv_count) - { - p_cellular_receive->tmp_recvcnt = p_cellular_receive->recv_count - 4; - } - else - { - p_cellular_receive->tmp_recvcnt = 0; - } - - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_OK)) - { - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - p_ctrl->p_socket_ctrl[p_cellular_receive->socket_no].receive_count = 0; - p_ctrl->p_socket_ctrl[p_cellular_receive->socket_no].receive_num = 0; - cellular_set_atc_response(p_ctrl, ATC_RETURN_OK); - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_store_data - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_dns_result - * Description @details Process the results of dns query execution. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_dns_result(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - int32_t sscanf_ret; - int32_t dns_1 = 0; - int32_t dns_2 = 0; - int32_t dns_3 = 0; - int32_t dns_4 = 0; - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_5: - { - p_cellular_receive->tmp_recvcnt = p_cellular_receive->recv_count; - break; - } - case CHAR_CHECK_4: - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_OK)) - { - sscanf_ret = sscanf((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - "%d.%d.%d.%d", &dns_1, &dns_2, &dns_3, &dns_4); - if (4 == sscanf_ret) - { - p_ctrl->dns_address[0] = dns_1; - p_ctrl->dns_address[1] = dns_2; - p_ctrl->dns_address[2] = dns_3; - p_ctrl->dns_address[3] = dns_4; - cellular_set_atc_response(p_ctrl, ATC_RETURN_OK); - } - else - { - cellular_set_atc_response(p_ctrl, ATC_RETURN_ERROR); - } - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_dns_result - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_get_ap_connect_status - * Description @details Process connection status notification to the access point. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_get_ap_connect_status(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - int32_t sscanf_ret = 0; - int32_t status = 0; - e_atc_list_t active_atc; - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_4: - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_OK)) - { - active_atc = cellular_get_at_command(p_ctrl); - - if (ATC_CONNECT_CHECK == active_atc) - { - sscanf_ret = sscanf((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - " %d" , &status); - if ((1 == sscanf_ret) && (1 == status)) - { - p_ctrl->system_state = CELLULAR_SYSTEM_CONNECT; - cellular_set_atc_response(p_ctrl, ATC_RETURN_OK); - } - else - { - p_ctrl->system_state = CELLULAR_SYSTEM_CLOSE; - cellular_set_atc_response(p_ctrl, ATC_RETURN_AP_NOT_CONNECT); - } - } - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_get_ap_connect_status - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_station_info - * Description @details Notification of connected base station information. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_station_info(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_4: - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_BEGIN_OR_END)) - { - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_station_info - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_control_level - * Description @details Process module control level notifications. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_control_level(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - int32_t sscanf_ret = 0; - int32_t status = 0; - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_4: - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_OK)) - { - sscanf_ret = sscanf((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - " %d", &status); - - if ((1 == sscanf_ret) && (1 == status)) - { - p_ctrl->module_status = CELLULAR_MODULE_OPERATING_LEVEL1; - } - else if ((1 == sscanf_ret) && (4 == status)) - { - p_ctrl->module_status = CELLULAR_MODULE_OPERATING_LEVEL4; - } - else - { - /* Do Nothing */ - CELLULAR_LOG_DEBUG(("Received unexpected string")); - } - cellular_set_atc_response(p_ctrl, ATC_RETURN_OK); - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_control_level - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_cpin_status - * Description @details Handle notification of sim card lock status. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_cpin_status(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_4: - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_OK)) - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_CPIN_READY)) - { - cellular_set_atc_response(p_ctrl, ATC_RETURN_CPIN_READY); - } - else - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_CPIN_SIM_LOCK)) - { - cellular_set_atc_response(p_ctrl, ATC_RETURN_SIM_LOCK); - } - else - { - cellular_set_atc_response(p_ctrl, ATC_RETURN_ERROR); - } - } - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_cpin_status - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_get_time - * Description @details Process the results of getting the date and time. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_get_time(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - int32_t year = 0; - int32_t month = 0; - int32_t day = 0; - int32_t hour = 0; - int32_t min = 0; - int32_t sec = 0; - int32_t timezone = 0; - int32_t ret = 0; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_4: - { - memset((void *)&p_ctrl->sci_ctrl.time, //(st_cellular_datetime_t *)->(void *) - 0, sizeof(p_ctrl->sci_ctrl.time)); - - ret = sscanf((char *)&p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], //(&uint8_t[]->char*) - " \"%2d/%2d/%2d,%2d:%2d:%2d%3d\"\r\n", - &year, &month, &day, &hour, &min, &sec, &timezone); - - if (7 == ret) - { - p_ctrl->sci_ctrl.time.year = year; - p_ctrl->sci_ctrl.time.month = month; - p_ctrl->sci_ctrl.time.day = day; - p_ctrl->sci_ctrl.time.hour = hour; - p_ctrl->sci_ctrl.time.min = min; - p_ctrl->sci_ctrl.time.sec = sec; - p_ctrl->sci_ctrl.time.timezone = timezone; - } - - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_get_time - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_disconnect_socket - * Description @details Handling of Socket Disconnection Notification. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_disconnect_socket(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_4: - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_BEGIN_OR_END)) - { - sscanf((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - " %d" , &p_cellular_receive->socket_no); - - p_ctrl->p_socket_ctrl[p_cellular_receive->socket_no - CELLULAR_START_SOCKET_NUMBER].socket_status - = CELLULAR_SOCKET_STATUS_SOCKET; - - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_disconnect_socket - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_get_timezone - * Description @details Processing of notification of timezone information from modules. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_get_timezone(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_4: - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_BEGIN_OR_END)) - { - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_get_timezone - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_get_service_status - * Description @details Processing of network service status notification from the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_get_service_status(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - int32_t status_1 = 0; - int32_t status_2 = 0; - int32_t status_3 = 0; - int32_t status_4 = 0; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_4: - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_BEGIN_OR_END)) - { - sscanf((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - " %d,%d,\"%d\",%d", - &status_1, &status_2, &status_3, &status_4); - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_get_service_status - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_get_pdp_status - * Description @details Processing of network service status notification from the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_get_pdp_status(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - int32_t status_1 = 0; - int32_t status_2 = 0; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_4: - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_BEGIN_OR_END)) - { - sscanf((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - " %d,%d", &status_1, &status_2); - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_get_pdp_status - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_get_ip_addr - * Description @details Processing of network service status notification from the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_get_ip_addr(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - int32_t context_id = 0; - int32_t ip_addr_1 = 0; - int32_t ip_addr_2 = 0; - int32_t ip_addr_3 = 0; - int32_t ip_addr_4 = 0; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_4: - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_BEGIN_OR_END)) - { - sscanf((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - " %d,\"%d.%d.%d.%d\"", - &context_id, &ip_addr_1, &ip_addr_2, &ip_addr_3, &ip_addr_4); - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_get_ip_addr - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_get_psms - * Description @details Processing of network service status notification from the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_get_psms(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - int32_t status = 0; - int32_t tau = 0; - int32_t active_time = 0; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_4: - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_BEGIN_OR_END)) - { - sscanf((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - " %d,,,\"%d\",\"%d\"", - &status, &tau, &active_time); - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_get_psms - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_get_edrx - * Description @details Processing of network service status notification from the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_get_edrx(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - int32_t status = 0; - int32_t act_type = 0; - int32_t requested_edrx = 0; - int32_t provided_edrx = 0; - int32_t ptw = 0; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_4: - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_BEGIN_OR_END)) - { - if (ATC_GET_EDRXS == p_ctrl->sci_ctrl.at_command) - { - sscanf((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - " %d,%d,\"%d\",\"%d\"", - &status, &act_type, &provided_edrx, &ptw); - - } - else - { - sscanf((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - " %d,\"%d\",\"%d\",\"%d\"", - &status, &requested_edrx, &provided_edrx, &ptw); - - } - - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_get_edrx - *********************************************************************************************************************/ - - -/*********************************************************************************************** - * Function Name @fn cellular_get_signal - * Description @details Processing of network service status notification from the module. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_get_signal(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - int32_t rssi = 0; - int32_t ber = 0; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_4: - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_BEGIN_OR_END)) - { - sscanf((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - " %d,%d", &rssi, &ber); - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_get_signal - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_res_command_send_sim - * Description @details Get the number of the AT command being executed. - * Arguments @param[in] p_ctrl - - * Pointer to managed structure. - * Return Value @retval e_atc_list_t - - * AT command number being executed. - **********************************************************************************************/ -static void cellular_res_command_send_sim(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - uint8_t responce[100 + 1] = {0}; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_4: - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_BEGIN_OR_END)) - { - sscanf((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - " %s", &responce); - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_res_command_send_sim - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_timezone_info - * Description @details Processing of notification of timezone information from modules. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_timezone_info(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_4: - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_BEGIN_OR_END)) - { - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_timezone_info - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_ind_info - * Description @details Processing of notification of indicator information from modules. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_ind_info(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - uint8_t ind = 0; - uint8_t value = 0; - - switch (p_cellular_receive->data) - { - case CHAR_CHECK_4: - { - if (NULL != strstr((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - ATC_RES_BEGIN_OR_END)) - { - sscanf((char *) //(uint8_t *)->(char *) - &p_ctrl->sci_ctrl.receive_buff[p_cellular_receive->tmp_recvcnt], - " %d,%d", &ind, &value); - if ((0 == ind) && (0 == value)) - { - /* Start of Power Saving Mode */ - CELLULAR_SET_DR(CELLULAR_CFG_RTS_PORT, CELLULAR_CFG_RTS_PIN) = CELLULAR_PIN_DIRECTION_MODE_OUTPUT; - //R_IRQ_Open(IRQ_NUM_4, IRQ_TRIG_FALLING, IRQ_PRI_1, &s_irq_handle, irq_callback); - } - else - { - //R_IRQ_Close(s_irq_handle); - } - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - break; - } - default: - { - break; - } - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_ind_info - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_response_skip - * Description @details Processing of notification of time information from modules. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in/out] cellular_receive - - * Pointer to structure for analysis processing. - **********************************************************************************************/ -static void cellular_response_skip(st_cellular_ctrl_t * p_ctrl, st_cellular_receive_t * cellular_receive) -{ - st_cellular_receive_t * p_cellular_receive = cellular_receive; - - if (CHAR_CHECK_4 == p_cellular_receive->data) - { - memset(p_ctrl->sci_ctrl.receive_buff, 0, sizeof(p_ctrl->sci_ctrl.receive_buff)); - memset(p_cellular_receive, 0, sizeof(st_cellular_receive_t)); - p_cellular_receive->job_no = CELLULAR_RES_NONE; - } - - return; -} -/********************************************************************************************************************** - * End of function cellular_response_skip - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_get_at_command - * Description @details Get the number of the AT command being executed. - * Arguments @param[in] p_ctrl - - * Pointer to managed structure. - * Return Value @retval e_atc_list_t - - * AT command number being executed. - **********************************************************************************************/ -static e_atc_list_t cellular_get_at_command(st_cellular_ctrl_t * const p_ctrl) -{ - return p_ctrl->sci_ctrl.at_command; -} -/********************************************************************************************************************** - * End of function cellular_get_at_command - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn cellular_set_atc_response - * Description @details Stores responses to AT commands. - * Arguments @param[in/out] p_ctrl - - * Pointer to managed structure. - * @param[in] result - - * Response from module. - **********************************************************************************************/ -static void cellular_set_atc_response(st_cellular_ctrl_t * const p_ctrl, const e_cellular_atc_return_t result) -{ - if (CELLULAR_ATC_RESPONCE_UNCONFIRMED == p_ctrl->sci_ctrl.atc_flg) - { - p_ctrl->sci_ctrl.atc_res = result; - p_ctrl->sci_ctrl.atc_flg = CELLULAR_ATC_RESPONCE_CONFIRMED; - CELLULAR_LOG_DEBUG(("received AT command response: %s", p_ctrl->sci_ctrl.receive_buff)); - } - return; -} -/********************************************************************************************************************** - * End of function cellular_set_atc_response - *********************************************************************************************************************/ - -/*********************************************************************************************** - * Function Name @fn irq_callback - * Description @details Callback function for irq. - **********************************************************************************************/ -static void irq_callback(void * const p_Args) -{ - /* End of Power Saving Mode */ - CELLULAR_SET_DR(CELLULAR_CFG_RTS_PORT, CELLULAR_CFG_RTS_PIN) = 0; -} -/********************************************************************************************************************** - * End of function irq_callback - *********************************************************************************************************************/