diff --git a/LE910Cx_L/80000NT11840A_AppZone_m2mb_Sample_Apps_r1.pdf b/LE910Cx_L/80000NT11840A_AppZone_m2mb_Sample_Apps_r1.pdf index d763956c..518d371e 100644 Binary files a/LE910Cx_L/80000NT11840A_AppZone_m2mb_Sample_Apps_r1.pdf and b/LE910Cx_L/80000NT11840A_AppZone_m2mb_Sample_Apps_r1.pdf differ diff --git a/LE910Cx_L/AZX_Docs/html/annotated.html b/LE910Cx_L/AZX_Docs/html/annotated.html index 5f995c6a..5f396c0c 100644 --- a/LE910Cx_L/AZX_Docs/html/annotated.html +++ b/LE910Cx_L/AZX_Docs/html/annotated.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -97,48 +97,49 @@
Here are the data structures with brief descriptions:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 CAZX_CJSON_TAGA structure to allow you walk through array/object json chains
 CAZX_EASY_AT_ATCOMMAND_TAGSingle custom command utility struct
 CAZX_EASY_AT_HANDLES_TAG
 CAZX_EASY_AT_MODULE_TAG
 CAZX_EEPROM_TEEPROM handle structure This structure holds the parameters of the EEPROM handle, used by all communication functions
 CAZX_FTP_BUFFERGeneric buffer information structure
 CAZX_FTP_BUFFER_TAG
 CAZX_FTP_CALLBACK_OPTIONS_TAG
 CAZX_FTP_FILE_INFOGeneric file information structure
 CAZX_FTP_FILE_INFO_TAG
 CAZX_FTP_NET_BUF_TAGFtp Client parameters structure
 CAZX_FTP_OPTIONS_TAGFTP initialization options structure
 CAZX_FTP_XFER_TAGGeneric transfer information structure
 CAZX_HTTP_HEADERHTTP header structure
 CAZX_HTTP_INFOThe HTTP operation structure
 CAZX_HTTP_OPTIONS
 CAZX_HTTP_SSLHTTP SSL structure
 CAZX_HTTP_URLHTTP URL structure
 Cazx_httpCallbackOptionsThe HTTP callback options structure
 CAZX_HTTPS_OPTIONSThe HTTP configuration options
 CAZX_LFS_CONTEXT
 CAZX_LFS_INFO_FILE
 CAZX_LFS_STATUS_UTILS
 CAZX_LOG_CFG_TLogging configuration structure
 CAZX_RAM_DISK_S
 CAZX_SPI_FLASH_DESCRIPTOR
 CAZX_SPI_FLASH_ECCLAYOUT
 CAZX_SPI_FLASH_EVENT_CALLBACK
 CAZX_SPI_FLASH_JSC_EVENT_RES_T
 CAZX_SPI_FLASH_MICRO_SPI_PARAMS
 CAZX_SPI_FLASH_MTD_OOB_OPS
 CAZX_SPI_FLASH_OOBFREE
 CAZX_SPI_FLASH_SPI_CHIP
 CAZX_SPI_FLASH_SPI_SLAVE
 CAZX_TASKS_MESSAGE_TStructure holding the task message data
 Cdcs_struct
 CEASY_AT_HANDLES_TAGStructure containing atpHandle and atpI info for a specific command
 CEASY_AT_MODULE_TAGThe module structure retrieved by azx_easy_at_init()
 CFtpCallbackOptionsStructure that holds status callback function parameters
 Cpdu_struct
 Csockaddr_storage
 Ctimezone
 Caddrinfo
 CAZX_CJSON_TAGA structure to allow you walk through array/object json chains
 CAZX_EASY_AT_ATCOMMAND_TAGSingle custom command utility struct
 CAZX_EASY_AT_HANDLES_TAG
 CAZX_EASY_AT_MODULE_TAG
 CAZX_EEPROM_TEEPROM handle structure This structure holds the parameters of the EEPROM handle, used by all communication functions
 CAZX_FTP_BUFFERGeneric buffer information structure
 CAZX_FTP_BUFFER_TAG
 CAZX_FTP_CALLBACK_OPTIONS_TAG
 CAZX_FTP_FILE_INFOGeneric file information structure
 CAZX_FTP_FILE_INFO_TAG
 CAZX_FTP_NET_BUF_TAGFtp Client parameters structure
 CAZX_FTP_OPTIONS_TAGFTP initialization options structure
 CAZX_FTP_XFER_TAGGeneric transfer information structure
 CAZX_HTTP_HEADERHTTP header structure
 CAZX_HTTP_INFOThe HTTP operation structure
 CAZX_HTTP_OPTIONS
 CAZX_HTTP_SSLHTTP SSL structure
 CAZX_HTTP_URLHTTP URL structure
 Cazx_httpCallbackOptionsThe HTTP callback options structure
 CAZX_HTTPS_OPTIONSThe HTTP configuration options
 CAZX_LFS_CONTEXT
 CAZX_LFS_INFO_FILE
 CAZX_LFS_STATUS_UTILS
 CAZX_LOG_CFG_TLogging configuration structure
 CAZX_RAM_DISK_S
 CAZX_SPI_FLASH_DESCRIPTOR
 CAZX_SPI_FLASH_ECCLAYOUT
 CAZX_SPI_FLASH_EVENT_CALLBACK
 CAZX_SPI_FLASH_JSC_EVENT_RES_T
 CAZX_SPI_FLASH_MICRO_SPI_PARAMS
 CAZX_SPI_FLASH_MTD_OOB_OPS
 CAZX_SPI_FLASH_OOBFREE
 CAZX_SPI_FLASH_SPI_CHIP
 CAZX_SPI_FLASH_SPI_SLAVE
 CAZX_TASKS_MESSAGE_TStructure holding the task message data
 Cdcs_struct
 CEASY_AT_HANDLES_TAGStructure containing atpHandle and atpI info for a specific command
 CEASY_AT_MODULE_TAGThe module structure retrieved by azx_easy_at_init()
 CFtpCallbackOptionsStructure that holds status callback function parameters
 Cpdu_struct
 Csockaddr_storage
 Ctimezone
diff --git a/LE910Cx_L/AZX_Docs/html/annotated_dup.js b/LE910Cx_L/AZX_Docs/html/annotated_dup.js index 656394d4..23d87f29 100644 --- a/LE910Cx_L/AZX_Docs/html/annotated_dup.js +++ b/LE910Cx_L/AZX_Docs/html/annotated_dup.js @@ -1,5 +1,6 @@ var annotated_dup = [ + [ "addrinfo", "structaddrinfo.html", "structaddrinfo" ], [ "AZX_CJSON_TAG", "struct_a_z_x___c_j_s_o_n___t_a_g.html", "struct_a_z_x___c_j_s_o_n___t_a_g" ], [ "AZX_EASY_AT_ATCOMMAND_TAG", "struct_a_z_x___e_a_s_y___a_t___a_t_c_o_m_m_a_n_d___t_a_g.html", "struct_a_z_x___e_a_s_y___a_t___a_t_c_o_m_m_a_n_d___t_a_g" ], [ "AZX_EASY_AT_HANDLES_TAG", "struct_a_z_x___e_a_s_y___a_t___h_a_n_d_l_e_s___t_a_g.html", "struct_a_z_x___e_a_s_y___a_t___h_a_n_d_l_e_s___t_a_g" ], diff --git a/LE910Cx_L/AZX_Docs/html/app__cfg_8h.html b/LE910Cx_L/AZX_Docs/html/app__cfg_8h.html index 5f03ae18..39a0149c 100644 --- a/LE910Cx_L/AZX_Docs/html/app__cfg_8h.html +++ b/LE910Cx_L/AZX_Docs/html/app__cfg_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/app__cfg_8h_source.html b/LE910Cx_L/AZX_Docs/html/app__cfg_8h_source.html index 77111f31..438b8d9b 100644 --- a/LE910Cx_L/AZX_Docs/html/app__cfg_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/app__cfg_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__base64_8h.html b/LE910Cx_L/AZX_Docs/html/azx__base64_8h.html index e2f4a40a..06560c89 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__base64_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__base64_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -114,7 +114,7 @@

Detailed Description

Base64 utilities.

-

azx_base64.h

Version
1.1.0
+

azx_base64.h

Version
1.1.2
Dependencies

Porting of base64 de/encoder from https://sources.debian.org/src/fetchmail/6.4.16-1/base64.c refer to COPYING-base64 file in this folder for attributions

diff --git a/LE910Cx_L/AZX_Docs/html/azx__base64_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__base64_8h_source.html index e6761293..85e78166 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__base64_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__base64_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__cjson_8h.html b/LE910Cx_L/AZX_Docs/html/azx__cjson_8h.html index 83eed202..7916f066 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__cjson_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__cjson_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__cjson_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__cjson_8h_source.html index 544a0e0d..d0fac2ed 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__cjson_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__cjson_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__easy__at_8h.html b/LE910Cx_L/AZX_Docs/html/azx__easy__at_8h.html index 83c6fbac..ca338c5f 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__easy__at_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__easy__at_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -134,22 +134,22 @@ #define AZX_EASY_AT_ARRAY_SIZE(a)   ( sizeof(a)/sizeof(a[0]) )   -#define AZX_EASY_AT_TRACE_FATAL(a, ...)   AZX_LOG_CRITICAL( a, ##__VA_ARGS__) +#define AZX_EASY_AT_TRACE_FATAL(a, ...)   AZX_LOG_CRITICAL( a, ##__VA_ARGS__)   -#define AZX_EASY_AT_TRACE_ERROR(a, ...)   AZX_LOG_ERROR( a, ##__VA_ARGS__) +#define AZX_EASY_AT_TRACE_ERROR(a, ...)   AZX_LOG_ERROR( a, ##__VA_ARGS__)   -#define AZX_EASY_AT_TRACE_WARNING(a, ...)   AZX_LOG_WARN( a, ##__VA_ARGS__) +#define AZX_EASY_AT_TRACE_WARNING(a, ...)   AZX_LOG_WARN( a, ##__VA_ARGS__)   -#define AZX_EASY_AT_TRACE_INFO(a, ...)   AZX_LOG_INFO( a, ##__VA_ARGS__) +#define AZX_EASY_AT_TRACE_INFO(a, ...)   AZX_LOG_INFO( a, ##__VA_ARGS__)   -#define AZX_EASY_AT_TRACE_DEBUG(a, ...)   AZX_LOG_DEBUG( a, ##__VA_ARGS__) +#define AZX_EASY_AT_TRACE_DEBUG(a, ...)   AZX_LOG_DEBUG( a, ##__VA_ARGS__)   -#define AZX_EASY_AT_TRACE_DETAIL(a, ...)   AZX_LOG_TRACE( a, ##__VA_ARGS__) +#define AZX_EASY_AT_TRACE_DETAIL(a, ...)   AZX_LOG_TRACE( a, ##__VA_ARGS__)   #define AZX_EASY_AT_ASSERT_REGISTER(result)   diff --git a/LE910Cx_L/AZX_Docs/html/azx__easy__at_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__easy__at_8h_source.html index 4576910f..aa87da0e 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__easy__at_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__easy__at_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__eeprom__24_x_x_8h.html b/LE910Cx_L/AZX_Docs/html/azx__eeprom__24_x_x_8h.html index c90a685d..38d3181a 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__eeprom__24_x_x_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__eeprom__24_x_x_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -178,7 +178,7 @@

Supports any memory address (refer to AZX_EEPROM_24XX256T_SLAVE_ADDR macro)

Supported read modes: 1) Current address read byte 2) Random read (byte or stream) 3) Sequential read (byte or stream)

Refer to https://ww1.microchip.com/downloads/en/DeviceDoc/24AA256-24LC256-24FC256-Data-Sheet-20001203W.pdf for further details

-
Version
1.0.1
+
Version
1.0.3
Dependencies
azx_log
Note
Dependencies: m2mb_types.h i2c_utils.h
Author
Fabio Pintus
diff --git a/LE910Cx_L/AZX_Docs/html/azx__eeprom__24_x_x_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__eeprom__24_x_x_8h_source.html index 30361948..bcc1d1a9 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__eeprom__24_x_x_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__eeprom__24_x_x_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__ftp_8h.html b/LE910Cx_L/AZX_Docs/html/azx__ftp_8h.html index 2bf6e44f..be1dde3d 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__ftp_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__ftp_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -217,10 +217,10 @@  FTP user callback events. When data is received, one of the events is reported. More...
  enum  AZX_FTP_XFER_E { AZX_FTP_XFER_FILE, -AZX_FTP_XFER_BUFF +AZX_FTP_XFER_BUFF, +AZX_FTP_XFER_MAX =0xFFFFFFFF } - FTP transfer type.
- More...
+ FTP transfer type. More...
 

@@ -297,7 +297,7 @@

Detailed Description

FTP Library routines.

-
Version
1.0.4
+
Version
1.2.0
Dependencies
Note
Dependencies: m2mb_types.h
Author
Fabio Pintus
diff --git a/LE910Cx_L/AZX_Docs/html/azx__ftp_8h.js b/LE910Cx_L/AZX_Docs/html/azx__ftp_8h.js index f0a87608..c82d401d 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__ftp_8h.js +++ b/LE910Cx_L/AZX_Docs/html/azx__ftp_8h.js @@ -43,7 +43,8 @@ var azx__ftp_8h = ] ], [ "AZX_FTP_XFER_E", "group___a_z_x___f_t_p___u_s_a_g_e.html#ga93677062f9160355dea103b8049695f2", [ [ "AZX_FTP_XFER_FILE", "group___a_z_x___f_t_p___u_s_a_g_e.html#gga93677062f9160355dea103b8049695f2ac9f6fc2bf068a4a3f96e6eff260c3d27", null ], - [ "AZX_FTP_XFER_BUFF", "group___a_z_x___f_t_p___u_s_a_g_e.html#gga93677062f9160355dea103b8049695f2a5902786cfaa7660a0a2f89d084ce22ff", null ] + [ "AZX_FTP_XFER_BUFF", "group___a_z_x___f_t_p___u_s_a_g_e.html#gga93677062f9160355dea103b8049695f2a5902786cfaa7660a0a2f89d084ce22ff", null ], + [ "AZX_FTP_XFER_MAX", "group___a_z_x___f_t_p___u_s_a_g_e.html#gga93677062f9160355dea103b8049695f2ad539bce8f02fdec09cd3b2f279e27735", null ] ] ], [ "azx_ftp_cdUp", "group___a_z_x___f_t_p___u_s_a_g_e.html#ga14bdbe2e63b0c3a7eaf7d2ede2befa11", null ], [ "azx_ftp_chdir", "group___a_z_x___f_t_p___u_s_a_g_e.html#gaf9617c8c28b79495063d2259ee56e10f", null ], diff --git a/LE910Cx_L/AZX_Docs/html/azx__ftp_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__ftp_8h_source.html index ab343544..0fd3a914 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__ftp_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__ftp_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -144,8 +144,8 @@
75 #define __UINT64_MAX ULLONG_MAX
76 #define _REENTRANT 0
77 #if defined(__ARMCLIB_VERSION)
-
78  #undef memccpy
-
79  #define NEED_MEMCCPY
+
78 #undef memccpy
+
79 #define NEED_MEMCCPY
80 #endif
81 #endif
82 
@@ -208,10 +208,10 @@
239 
244 typedef enum
245 {
- - - - + + + +
251 
252 /*-----------------------------------------------------------------------------------------------*/
@@ -225,9 +225,9 @@
344 /*-----------------------------------------------------------------------------------------------*/
345 
346 typedef struct AZX_FTP_OPTIONS_TAG{
- - -
349  unsigned char cid;
+ + +
349  unsigned char cid;
350  void *cbArg;
352 
@@ -239,9 +239,9 @@
359 
367 typedef enum
368 {
- - - + + +
377 
378 /*-----------------------------------------------------------------------------------------------*/
@@ -253,8 +253,8 @@
468 /*-----------------------------------------------------------------------------------------------*/
469 typedef struct AZX_FTP_FILE_INFO_TAG
470 {
-
471  CHAR *path;
-
472  UINT32 fileSize;
+
471  CHAR *path;
+
472  UINT32 fileSize;
474 
475 
@@ -270,174 +270,175 @@
510 
519 typedef enum
520 {
- - - -
524 
+ + +
523  AZX_FTP_XFER_MAX=0xFFFFFFFF
+
525 
-
526 /*-----------------------------------------------------------------------------------------------*/
-
551 /*-----------------------------------------------------------------------------------------------*/
-
552 typedef struct AZX_FTP_XFER_TAG
-
553 {
- -
555  union
-
556  {
- - -
559  } payload;
- -
561 
+
526 
+
527 /*-----------------------------------------------------------------------------------------------*/
+
552 /*-----------------------------------------------------------------------------------------------*/
+
553 typedef struct AZX_FTP_XFER_TAG
+
554 {
+ +
556  union
+
557  {
+ + +
560  } payload;
+
562 
-
563 /*-----------------------------------------------------------------------------------------------*/
-
579 /*-----------------------------------------------------------------------------------------------*/
- -
581 {
- -
583  void *cbArg;
-
584  UINT32 bytesXferred;
-
585  UINT32 idleTime;
- -
590 /*-----------------------------------------------------------------------------------------------*/
-
606 /*-----------------------------------------------------------------------------------------------*/
-
607 INT32 azx_ftp_init(const AZX_FTP_OPTIONS_T *opt);
-
613 /*-----------------------------------------------------------------------------------------------*/
-
633 /*-----------------------------------------------------------------------------------------------*/
-
634 CHAR *azx_ftp_lastResponse(AZX_FTP_NET_BUF_T *nControl);
-
635 
+
563 
+
564 /*-----------------------------------------------------------------------------------------------*/
+
580 /*-----------------------------------------------------------------------------------------------*/
+ +
582 {
+ +
584  void *cbArg;
+
585  UINT32 bytesXferred;
+
586  UINT32 idleTime;
+ +
591 /*-----------------------------------------------------------------------------------------------*/
+
607 /*-----------------------------------------------------------------------------------------------*/
+
608 INT32 azx_ftp_init(const AZX_FTP_OPTIONS_T *opt);
+
614 /*-----------------------------------------------------------------------------------------------*/
+
634 /*-----------------------------------------------------------------------------------------------*/
+
635 CHAR *azx_ftp_lastResponse(AZX_FTP_NET_BUF_T *nControl);
636 
-
637 /*-----------------------------------------------------------------------------------------------*/
-
660 /*-----------------------------------------------------------------------------------------------*/
-
661 INT32 azx_ftp_connect(const CHAR *host, AZX_FTP_NET_BUF_T **nControl);
-
662 
+
637 
+
638 /*-----------------------------------------------------------------------------------------------*/
+
661 /*-----------------------------------------------------------------------------------------------*/
+
662 INT32 azx_ftp_connect(const CHAR *host, AZX_FTP_NET_BUF_T **nControl);
663 
-
664 /*-----------------------------------------------------------------------------------------------*/
-
695 /*-----------------------------------------------------------------------------------------------*/
-
696 INT32 azx_ftp_options(INT32 opt, INT32 val, AZX_FTP_NET_BUF_T *nControl);
-
697 
-
698 /*-----------------------------------------------------------------------------------------------*/
-
719 /*-----------------------------------------------------------------------------------------------*/
- -
721 
-
722 /*-----------------------------------------------------------------------------------------------*/
-
741 /*-----------------------------------------------------------------------------------------------*/
- -
743 
+
664 
+
665 /*-----------------------------------------------------------------------------------------------*/
+
696 /*-----------------------------------------------------------------------------------------------*/
+
697 INT32 azx_ftp_options(INT32 opt, INT32 val, AZX_FTP_NET_BUF_T *nControl);
+
698 
+
699 /*-----------------------------------------------------------------------------------------------*/
+
720 /*-----------------------------------------------------------------------------------------------*/
+ +
722 
+
723 /*-----------------------------------------------------------------------------------------------*/
+
742 /*-----------------------------------------------------------------------------------------------*/
+
744 
745 
-
746 /*-----------------------------------------------------------------------------------------------*/
-
771 /*-----------------------------------------------------------------------------------------------*/
-
772 INT32 azx_ftp_login(const CHAR *user, const CHAR *pass, AZX_FTP_NET_BUF_T *nControl);
-
773 
+
746 
+
747 /*-----------------------------------------------------------------------------------------------*/
+
772 /*-----------------------------------------------------------------------------------------------*/
+
773 INT32 azx_ftp_login(const CHAR *user, const CHAR *pass, AZX_FTP_NET_BUF_T *nControl);
774 
-
777 /*-----------------------------------------------------------------------------------------------*/
-
812 /*-----------------------------------------------------------------------------------------------*/
-
813 INT32 azx_ftp_access(const CHAR *path, INT32 typ, INT32 mode, AZX_FTP_NET_BUF_T *nControl,
-
814  AZX_FTP_NET_BUF_T **nData, INT32 offset);
-
815 
-
816 
-
817 INT32 azx_ftp_read(void *buf, INT32 max, AZX_FTP_NET_BUF_T *nData);
-
818 INT32 azx_ftp_write(const void *buf, INT32 len, AZX_FTP_NET_BUF_T *nData);
-
819 INT32 azx_ftp_close(AZX_FTP_NET_BUF_T *nData);
-
823 /*-----------------------------------------------------------------------------------------------*/
-
847 /*-----------------------------------------------------------------------------------------------*/
-
848 INT32 azx_ftp_site(const CHAR *cmd, AZX_FTP_NET_BUF_T *nControl);
-
849 
-
850 /*-----------------------------------------------------------------------------------------------*/
-
879 /*-----------------------------------------------------------------------------------------------*/
-
880 INT32 azx_ftp_sysType(CHAR *buf, INT32 max, AZX_FTP_NET_BUF_T *nControl);
-
881 
-
882 /*-----------------------------------------------------------------------------------------------*/
-
905 /*-----------------------------------------------------------------------------------------------*/
-
906 INT32 azx_ftp_mkdir(const CHAR *path, AZX_FTP_NET_BUF_T *nControl);
-
907 
-
908 /*-----------------------------------------------------------------------------------------------*/
-
931 /*-----------------------------------------------------------------------------------------------*/
-
932 INT32 azx_ftp_chdir(const CHAR *path, AZX_FTP_NET_BUF_T *nControl);
-
933 
-
934 /*-----------------------------------------------------------------------------------------------*/
-
955 /*-----------------------------------------------------------------------------------------------*/
-
956 INT32 azx_ftp_cdUp(AZX_FTP_NET_BUF_T *nControl);
-
957 
+
775 
+
778 /*-----------------------------------------------------------------------------------------------*/
+
813 /*-----------------------------------------------------------------------------------------------*/
+
814 INT32 azx_ftp_access(const CHAR *path, INT32 typ, INT32 mode, AZX_FTP_NET_BUF_T *nControl,
+
815  AZX_FTP_NET_BUF_T **nData, INT32 offset);
+
816 
+
817 
+
818 INT32 azx_ftp_read(void *buf, INT32 max, AZX_FTP_NET_BUF_T *nData);
+
819 INT32 azx_ftp_write(const void *buf, INT32 len, AZX_FTP_NET_BUF_T *nData);
+
820 INT32 azx_ftp_close(AZX_FTP_NET_BUF_T *nData);
+
824 /*-----------------------------------------------------------------------------------------------*/
+
848 /*-----------------------------------------------------------------------------------------------*/
+
849 INT32 azx_ftp_site(const CHAR *cmd, AZX_FTP_NET_BUF_T *nControl);
+
850 
+
851 /*-----------------------------------------------------------------------------------------------*/
+
880 /*-----------------------------------------------------------------------------------------------*/
+
881 INT32 azx_ftp_sysType(CHAR *buf, INT32 max, AZX_FTP_NET_BUF_T *nControl);
+
882 
+
883 /*-----------------------------------------------------------------------------------------------*/
+
906 /*-----------------------------------------------------------------------------------------------*/
+
907 INT32 azx_ftp_mkdir(const CHAR *path, AZX_FTP_NET_BUF_T *nControl);
+
908 
+
909 /*-----------------------------------------------------------------------------------------------*/
+
932 /*-----------------------------------------------------------------------------------------------*/
+
933 INT32 azx_ftp_chdir(const CHAR *path, AZX_FTP_NET_BUF_T *nControl);
+
934 
+
935 /*-----------------------------------------------------------------------------------------------*/
+
956 /*-----------------------------------------------------------------------------------------------*/
+
957 INT32 azx_ftp_cdUp(AZX_FTP_NET_BUF_T *nControl);
958 
-
959 /*-----------------------------------------------------------------------------------------------*/
-
982 /*-----------------------------------------------------------------------------------------------*/
-
983 INT32 azx_ftp_rmdir(const CHAR *path, AZX_FTP_NET_BUF_T *nControl);
-
984 
-
985 /*-----------------------------------------------------------------------------------------------*/
-
1010 /*-----------------------------------------------------------------------------------------------*/
-
1011 INT32 azx_ftp_pwd(CHAR *path, INT32 max, AZX_FTP_NET_BUF_T *nControl);
-
1012 
-
1013 /*-----------------------------------------------------------------------------------------------*/
-
1038 /*-----------------------------------------------------------------------------------------------*/
-
1039 INT32 azx_ftp_nlst(AZX_FTP_XFER_T *output, const CHAR *path, AZX_FTP_NET_BUF_T *nControl);
-
1040 
-
1041 /*-----------------------------------------------------------------------------------------------*/
-
1066 /*-----------------------------------------------------------------------------------------------*/
-
1067 INT32 azx_ftp_dir(AZX_FTP_XFER_T *output, const CHAR *path, AZX_FTP_NET_BUF_T *nControl);
-
1068 
-
1069 /*-----------------------------------------------------------------------------------------------*/
-
1096 /*-----------------------------------------------------------------------------------------------*/
-
1097 INT32 azx_ftp_size(const CHAR *path, UINT32 *size, CHAR mode, AZX_FTP_NET_BUF_T *nControl);
-
1098 
+
959 
+
960 /*-----------------------------------------------------------------------------------------------*/
+
983 /*-----------------------------------------------------------------------------------------------*/
+
984 INT32 azx_ftp_rmdir(const CHAR *path, AZX_FTP_NET_BUF_T *nControl);
+
985 
+
986 /*-----------------------------------------------------------------------------------------------*/
+
1011 /*-----------------------------------------------------------------------------------------------*/
+
1012 INT32 azx_ftp_pwd(CHAR *path, INT32 max, AZX_FTP_NET_BUF_T *nControl);
+
1013 
+
1014 /*-----------------------------------------------------------------------------------------------*/
+
1039 /*-----------------------------------------------------------------------------------------------*/
+
1040 INT32 azx_ftp_nlst(AZX_FTP_XFER_T *output, const CHAR *path, AZX_FTP_NET_BUF_T *nControl);
+
1041 
+
1042 /*-----------------------------------------------------------------------------------------------*/
+
1067 /*-----------------------------------------------------------------------------------------------*/
+
1068 INT32 azx_ftp_dir(AZX_FTP_XFER_T *output, const CHAR *path, AZX_FTP_NET_BUF_T *nControl);
+
1069 
+
1070 /*-----------------------------------------------------------------------------------------------*/
+
1097 /*-----------------------------------------------------------------------------------------------*/
+
1098 INT32 azx_ftp_size(const CHAR *path, UINT32 *size, CHAR mode, AZX_FTP_NET_BUF_T *nControl);
1099 
-
1100 #if defined(__UINT64_MAX)
-
1101 /*-----------------------------------------------------------------------------------------------*/
-
1128 /*-----------------------------------------------------------------------------------------------*/
-
1129 INT32 axz_ftp_sizeLong(const CHAR *path, azx_ftp_fsz_t *size, CHAR mode, AZX_FTP_NET_BUF_T *nControl);
-
1130 #endif
-
1131 
-
1132 /*-----------------------------------------------------------------------------------------------*/
-
1159 /*-----------------------------------------------------------------------------------------------*/
-
1160 INT32 azx_ftp_modDate(const CHAR *path, CHAR *dt, INT32 max, AZX_FTP_NET_BUF_T *nControl);
-
1161 
-
1162 /*-----------------------------------------------------------------------------------------------*/
-
1189 /*-----------------------------------------------------------------------------------------------*/
-
1190 INT32 azx_ftp_get(AZX_FTP_XFER_T *output, const CHAR *path, CHAR mode,
-
1191  AZX_FTP_NET_BUF_T *nControl);
-
1192 
-
1193 /*-----------------------------------------------------------------------------------------------*/
-
1220 /*-----------------------------------------------------------------------------------------------*/
-
1221 INT32 azx_ftp_put(AZX_FTP_XFER_T *input, const CHAR *path, CHAR mode,
-
1222  AZX_FTP_NET_BUF_T *nControl);
-
1223 
-
1224 
-
1225 /*-----------------------------------------------------------------------------------------------*/
-
1250 /*-----------------------------------------------------------------------------------------------*/
-
1251 INT32 azx_ftp_rename(const CHAR *src, const CHAR *dst, AZX_FTP_NET_BUF_T *nControl);
-
1252 
-
1253 /*-----------------------------------------------------------------------------------------------*/
-
1276 /*-----------------------------------------------------------------------------------------------*/
-
1277 INT32 azx_ftp_delete(const CHAR *fnm, AZX_FTP_NET_BUF_T *nControl);
-
1278 
-
1279 /*-----------------------------------------------------------------------------------------------*/
-
1300 /*-----------------------------------------------------------------------------------------------*/
-
1301 void azx_ftp_quit(AZX_FTP_NET_BUF_T *nControl);
-
1302 
-
1303 #ifdef __cplusplus
-
1304 };
-
1305 #endif
-
1306 
-
1307 #endif /* HDR_AZX_FTP_H */
+
1100 
+
1101 #if defined(__UINT64_MAX)
+
1102 /*-----------------------------------------------------------------------------------------------*/
+
1129 /*-----------------------------------------------------------------------------------------------*/
+
1130 INT32 axz_ftp_sizeLong(const CHAR *path, azx_ftp_fsz_t *size, CHAR mode, AZX_FTP_NET_BUF_T *nControl);
+
1131 #endif
+
1132 
+
1133 /*-----------------------------------------------------------------------------------------------*/
+
1160 /*-----------------------------------------------------------------------------------------------*/
+
1161 INT32 azx_ftp_modDate(const CHAR *path, CHAR *dt, INT32 max, AZX_FTP_NET_BUF_T *nControl);
+
1162 
+
1163 /*-----------------------------------------------------------------------------------------------*/
+
1190 /*-----------------------------------------------------------------------------------------------*/
+
1191 INT32 azx_ftp_get(AZX_FTP_XFER_T *output, const CHAR *path, CHAR mode,
+
1192  AZX_FTP_NET_BUF_T *nControl);
+
1193 
+
1194 /*-----------------------------------------------------------------------------------------------*/
+
1221 /*-----------------------------------------------------------------------------------------------*/
+
1222 INT32 azx_ftp_put(AZX_FTP_XFER_T *input, const CHAR *path, CHAR mode,
+
1223  AZX_FTP_NET_BUF_T *nControl);
+
1224 
+
1225 
+
1226 /*-----------------------------------------------------------------------------------------------*/
+
1251 /*-----------------------------------------------------------------------------------------------*/
+
1252 INT32 azx_ftp_rename(const CHAR *src, const CHAR *dst, AZX_FTP_NET_BUF_T *nControl);
+
1253 
+
1254 /*-----------------------------------------------------------------------------------------------*/
+
1277 /*-----------------------------------------------------------------------------------------------*/
+
1278 INT32 azx_ftp_delete(const CHAR *fnm, AZX_FTP_NET_BUF_T *nControl);
+
1279 
+
1280 /*-----------------------------------------------------------------------------------------------*/
+
1301 /*-----------------------------------------------------------------------------------------------*/
+
1302 void azx_ftp_quit(AZX_FTP_NET_BUF_T *nControl);
+
1303 
+
1304 #ifdef __cplusplus
+
1305 };
+
1306 #endif
+
1307 
+
1308 #endif /* HDR_AZX_FTP_H */
azx_ftp_rename
INT32 azx_ftp_rename(const CHAR *src, const CHAR *dst, AZX_FTP_NET_BUF_T *nControl)
FTP rename remote file.
azx_ftp_chdir
INT32 azx_ftp_chdir(const CHAR *path, AZX_FTP_NET_BUF_T *nControl)
FTP change current path at remote server.
AZX_FTP_USER_CB_EV_E
AZX_FTP_USER_CB_EV_E
FTP user callback events. When data is received, one of the events is reported.
Definition: azx_ftp.h:367
-
AZX_FTP_CALLBACK_OPTIONS_TAG::idleTime
UINT32 idleTime
Definition: azx_ftp.h:585
+
AZX_FTP_CALLBACK_OPTIONS_TAG::idleTime
UINT32 idleTime
Definition: azx_ftp.h:586
AZX_FTP_XFER_T
struct AZX_FTP_XFER_TAG AZX_FTP_XFER_T
Generic transfer information structure.
azx_ftp_modDate
INT32 azx_ftp_modDate(const CHAR *path, CHAR *dt, INT32 max, AZX_FTP_NET_BUF_T *nControl)
FTP retrieve modification date of remote file.
azx_ftp_site
INT32 azx_ftp_site(const CHAR *cmd, AZX_FTP_NET_BUF_T *nControl)
FTP SITE command.
AZX_FTP_OPTIONS_TAG::level
AZX_FTP_DEBUG_HOOK_LEVELS_E level
Definition: azx_ftp.h:348
-
AZX_FTP_XFER_TAG::fileInfo
AZX_FTP_FILE_INFO_T fileInfo
Definition: azx_ftp.h:557
+
AZX_FTP_XFER_TAG::fileInfo
AZX_FTP_FILE_INFO_T fileInfo
Definition: azx_ftp.h:558
AZX_FTP_XFER_E
AZX_FTP_XFER_E
FTP transfer type.
Definition: azx_ftp.h:519
azx_ftp_options
INT32 azx_ftp_options(INT32 opt, INT32 val, AZX_FTP_NET_BUF_T *nControl)
FTP options function.
DATA_CB_END
Definition: azx_ftp.h:373
azx_ftp_setCallback
INT32 azx_ftp_setCallback(const AZX_FTP_CALLBACK_OPTIONS_T *opt, AZX_FTP_NET_BUF_T *nControl)
FTP callback set function.
AZX_FTP_FILE_INFO_TAG::path
CHAR * path
Definition: azx_ftp.h:471
azx_ftp_rmdir
INT32 azx_ftp_rmdir(const CHAR *path, AZX_FTP_NET_BUF_T *nControl)
FTP remove dir to remote server.
-
AZX_FTP_CALLBACK_OPTIONS_TAG::cbArg
void * cbArg
Definition: azx_ftp.h:583
+
AZX_FTP_CALLBACK_OPTIONS_TAG::cbArg
void * cbArg
Definition: azx_ftp.h:584
azx_ftp_lastResponse
CHAR * azx_ftp_lastResponse(AZX_FTP_NET_BUF_T *nControl)
Return last FTP server response.
-
AZX_FTP_CALLBACK_OPTIONS_TAG::bytesXferred
UINT32 bytesXferred
Definition: azx_ftp.h:584
+
AZX_FTP_CALLBACK_OPTIONS_TAG::bytesXferred
UINT32 bytesXferred
Definition: azx_ftp.h:585
DATA_CB_START
Definition: azx_ftp.h:369
AZX_FTP_OPTIONS_TAG::cbArg
void * cbArg
Definition: azx_ftp.h:350
AZX_FTP_FILE_INFO_TAG
Definition: azx_ftp.h:469
@@ -456,16 +457,17 @@
azx_ftp_mkdir
INT32 azx_ftp_mkdir(const CHAR *path, AZX_FTP_NET_BUF_T *nControl)
FTP make dir at remote server.
azx_ftp_callback
int(* azx_ftp_callback)(AZX_FTP_NET_BUF_T *nControl, azx_ftp_fsz_t xfered, void *arg)
Callback function signature.
Definition: azx_ftp.h:236
azx_ftp_debugHook
INT32(* azx_ftp_debugHook)(AZX_FTP_DEBUG_HOOK_LEVELS_E level, const CHAR *function, const CHAR *file, INT32 line, const CHAR *fmt,...)
Debug callback that is called by the library to for debug purposes.
Definition: azx_ftp.h:323
-
AZX_FTP_XFER_TAG::type
AZX_FTP_XFER_E type
Definition: azx_ftp.h:554
+
AZX_FTP_XFER_TAG::type
AZX_FTP_XFER_E type
Definition: azx_ftp.h:555
+
AZX_FTP_XFER_MAX
Definition: azx_ftp.h:523
AZX_FTP_DEBUG_HOOK_INFO
Definition: azx_ftp.h:248
AZX_FTP_BUFFER_TAG::bufferSize
UINT32 bufferSize
Definition: azx_ftp.h:506
-
AZX_FTP_XFER_TAG::buffInfo
AZX_FTP_BUFFER_T buffInfo
Definition: azx_ftp.h:558
-
AZX_FTP_CALLBACK_OPTIONS_TAG::cbFunc
azx_ftp_callback cbFunc
Definition: azx_ftp.h:582
+
AZX_FTP_XFER_TAG::buffInfo
AZX_FTP_BUFFER_T buffInfo
Definition: azx_ftp.h:559
+
AZX_FTP_CALLBACK_OPTIONS_TAG::cbFunc
azx_ftp_callback cbFunc
Definition: azx_ftp.h:583
azx_ftp_size
INT32 azx_ftp_size(const CHAR *path, UINT32 *size, CHAR mode, AZX_FTP_NET_BUF_T *nControl)
FTP ask file size to remote server.
AZX_FTP_FILE_INFO_TAG::fileSize
UINT32 fileSize
Definition: azx_ftp.h:472
AZX_FTP_BUFFER_TAG
Definition: azx_ftp.h:503
azx_ftp_connect
INT32 azx_ftp_connect(const CHAR *host, AZX_FTP_NET_BUF_T **nControl)
FTP connection function.
-
AZX_FTP_XFER_TAG
Generic transfer information structure.
Definition: azx_ftp.h:552
+
AZX_FTP_XFER_TAG
Generic transfer information structure.
Definition: azx_ftp.h:553
AZX_FTP_NET_BUF_TAG
Ftp Client parameters structure.
azx_ftp_nlst
INT32 azx_ftp_nlst(AZX_FTP_XFER_T *output, const CHAR *path, AZX_FTP_NET_BUF_T *nControl)
FTP ask NLST to remote server.
DATA_CB_DATA
Definition: azx_ftp.h:370
@@ -482,7 +484,7 @@
AZX_FTP_DEBUG_HOOK_ERROR
Definition: azx_ftp.h:247
azx_ftp_fsz_t
uint32_t azx_ftp_fsz_t
Definition: azx_ftp.h:174
azx_ftp_quit
void azx_ftp_quit(AZX_FTP_NET_BUF_T *nControl)
FTP close session.
-
AZX_FTP_CALLBACK_OPTIONS_TAG
Definition: azx_ftp.h:580
+
AZX_FTP_CALLBACK_OPTIONS_TAG
Definition: azx_ftp.h:581
azx_ftp_cdUp
INT32 azx_ftp_cdUp(AZX_FTP_NET_BUF_T *nControl)
FTP move to parent at remote server.
azx_ftp_get
INT32 azx_ftp_get(AZX_FTP_XFER_T *output, const CHAR *path, CHAR mode, AZX_FTP_NET_BUF_T *nControl)
FTP retrieve remote file.
diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__fcntl_8h.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__fcntl_8h.html index c9c59dde..e96f392e 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__fcntl_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__fcntl_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__fcntl_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__fcntl_8h_source.html index 878018b1..5174b720 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__fcntl_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__fcntl_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -95,7 +95,7 @@
azx_gnu_fcntl.h
-Go to the documentation of this file.
1 /*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/
+Go to the documentation of this file.
1 /*Copyright (C) 2022 Telit Communications S.p.A. Italy - All Rights Reserved.*/
2 /* See LICENSE file in the project root for full license information. */
3 
26 #ifndef HDR_AZX_GNU_FCNTL_H_
@@ -107,19 +107,26 @@
32 #include "m2mb_fs_posix.h"
33 
34 /* Global defines ================================================================================*/
-
35 
+
35 #undef O_RDONLY
36 #define O_RDONLY M2MB_O_RDONLY
-
37 #define O_WRONLY M2MB_O_WRONLY
-
38 #define O_RDWR M2MB_O_RDWR
-
39 #define O_CREAT M2MB_O_CREAT
-
40 #define O_EXCL M2MB_O_EXCL
-
41 #define O_NOCTTY M2MB_O_NOCTTY
-
42 #define O_TRUNC M2MB_O_TRUNC
-
43 #define O_APPEND M2MB_O_APPEND
-
44 
-
45 #define open m2mb_fs_open
-
46 
-
47 #endif /* HDR_AZX_GNU_FCNTL_H_ */
+
37 #undef O_WRONLY
+
38 #define O_WRONLY M2MB_O_WRONLY
+
39 #undef O_RDWR
+
40 #define O_RDWR M2MB_O_RDWR
+
41 #undef O_CREAT
+
42 #define O_CREAT M2MB_O_CREAT
+
43 #undef O_EXCL
+
44 #define O_EXCL M2MB_O_EXCL
+
45 #undef O_NOCTTY
+
46 #define O_NOCTTY M2MB_O_NOCTTY
+
47 #undef O_TRUNC
+
48 #define O_TRUNC M2MB_O_TRUNC
+
49 #undef O_APPEND
+
50 #define O_APPEND M2MB_O_APPEND
+
51 
+
52 #define open m2mb_fs_open
+
53 
+
54 #endif /* HDR_AZX_GNU_FCNTL_H_ */
diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__stdio_8h.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__stdio_8h.html index dd5b9033..08c1897c 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__stdio_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__stdio_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -101,17 +101,23 @@

gnu definition More...

- +
#include <stdarg.h>
+#include "m2mb_fs_stdio.h"
+
+Include dependency graph for azx_gnu_stdio.h:
+
+
+ + + + + +
+

Go to the source code of this file.

- - - - @@ -142,33 +148,93 @@ - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Macros

-#define stdout   (void*)(0x88888888)
 
-#define stderr   (void*)(0x99999999)
 
#define fopen   m2mb_fs_fopen
 
#define FILE   M2MB_FILE_T
 
-#define m2m_fputc   m2mb_fs_fputc
 
-#define m2m_fgetc   m2mb_fs_fgetc
 
+#define clearerr   azx_gnu_clearerr
 
+#define stdout   (FILE*)(0x88888888)
 
+#define stderr   (FILE*)(0x99999999)
 
+#define stdin   (FILE*)(NULL)
 
+#define fputc   m2mb_fs_fputc
 
+#define fgetc   m2mb_fs_fgetc
 
#define fseek   m2mb_fs_fseek
 
+#define fseeko   m2mb_fs_fseek
 
#define rewind(a)   (void)fseek(a, 0L, SEEK_SET)
 
+#define ftell   m2mb_fs_ftell
 
+#define ftello   m2mb_fs_ftell
 
+#define fdopen   azx_gnu_fdopen
 
#define fprintf   azx_gnu_fprintf
 
+#define vfprintf   azx_gnu_vfprintf
 
#define truncate   azx_gnu_truncate
 
+#define feof   azx_gnu_feof
 
+#define printf(a...)   fprintf(stdout, a)
 
+#define vprintf(f, a)   vfprintf(stdout, f, a)
 
+#define ungetc   azx_gnu_ungetc
 
+#define ferror   azx_gnu_ferror
 
- + + + + + + + + + + + + + +

Functions

int azx_gnu_fprintf (void *f, const char *format,...)
 Prints a autput. More...
 Prints data in a file stream. More...
 
int azx_gnu_vfprintf (void *f, const char *format, va_list ap)
 Prints data in a file stream. Requires a variadic list. More...
 
int azx_gnu_truncate (const char *path, off_t length)
 Truncate file. More...
 
+int azx_gnu_ungetc (void *f, int c)
 
+int azx_gnu_ferror (void *f)
 
+int azx_gnu_feof (void *f)
 
+FILE * azx_gnu_fdopen (int, const char *)
 
+void azx_gnu_clearerr (FILE *)
 

Detailed Description

gnu definition

@@ -177,7 +243,9 @@
Note
Dependencies: m2mb_types.h m2mb_os_api.h
Author
Moreno Floris
-Norman Argiolas
+Norman Argiolas +
+Fabio Pintus
Date
11/02/2020

Function Documentation

@@ -212,8 +280,8 @@

-

Prints a autput.

-

Prints on the defined stream (UART or USB channel)

+

Prints data in a file stream.

+

Prints on the defined stream (If stderr or stdout are passed, will print on defined UART or USB channel )

Parameters
@@ -268,6 +336,54 @@

+

◆ azx_gnu_vfprintf()

+ +
+
+

[in]fvoid* pointer
+ + + + + + + + + + + + + + + + + + + + + + + +
int azx_gnu_vfprintf (void * f,
const char * format,
va_list ap 
)
+
+ +

Prints data in a file stream. Requires a variadic list.

+

Prints on the defined stream (If stderr or stdout are passed, will print on defined UART or USB channel )

+
Parameters
+ + + + +
[in]fvoid* pointer
[in]formatconst char* pointer
[in]apvariadic list retrieved with va_list()
+
+
+
Returns
0 on SUCCESS -1 on FAILURE
+
Note
<Notes>
+

Example

<C code example>
+
+
+ diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__stdio_8h.js b/LE910Cx_L/AZX_Docs/html/azx__gnu__stdio_8h.js index 8e14f427..f5a31b83 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__stdio_8h.js +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__stdio_8h.js @@ -1,23 +1,41 @@ var azx__gnu__stdio_8h = [ + [ "clearerr", "azx__gnu__stdio_8h.html#ad563440a85b309ed9d55e22d33443474", null ], [ "fclose", "azx__gnu__stdio_8h.html#a1ba5ffb84241a674c082d911b80fc309", null ], + [ "fdopen", "azx__gnu__stdio_8h.html#aa4617791aa38bd95d380a00cd7a4fcea", null ], + [ "feof", "azx__gnu__stdio_8h.html#abf2f2459784350a382dc0b3e23ea5d0c", null ], + [ "ferror", "azx__gnu__stdio_8h.html#acce53a9a417da84eb9ae59b21c6c15c1", null ], [ "fflush", "azx__gnu__stdio_8h.html#a579d02171e2a45e0db99ff2c269a46eb", null ], + [ "fgetc", "azx__gnu__stdio_8h.html#ac38485ce41182cbd7ee7d554a2e1d40d", null ], [ "fgets", "azx__gnu__stdio_8h.html#aa4127e6fa9f54483c38accbde8937b77", null ], [ "FILE", "azx__gnu__stdio_8h.html#a3e8cefeee58f762ff50bcef35fa12eec", null ], [ "fileno", "azx__gnu__stdio_8h.html#a2c12e4b6615ac6838a99d5b6fa619683", null ], [ "fopen", "azx__gnu__stdio_8h.html#a029f6d343db87fe8c80cf3e5bea2b5c1", null ], [ "fprintf", "azx__gnu__stdio_8h.html#aab6e63106cf29e5160e5c2d63db86d27", null ], + [ "fputc", "azx__gnu__stdio_8h.html#af2c758e16b323e6bfe250d26cd26e5e9", null ], [ "fputs", "azx__gnu__stdio_8h.html#a4760567d49d1aebc24f0de6d0c2b4504", null ], [ "fread", "azx__gnu__stdio_8h.html#a16cef9bb6d20a96eace63d043b03ce91", null ], [ "fseek", "azx__gnu__stdio_8h.html#a8a777150133445feb2cd8a3f846216d9", null ], + [ "fseeko", "azx__gnu__stdio_8h.html#a227875b8399b0589b1124555d3ae4007", null ], + [ "ftell", "azx__gnu__stdio_8h.html#afea8baccc13623417424635d63c81a17", null ], + [ "ftello", "azx__gnu__stdio_8h.html#af05e2f178910c2e2804e573c883db868", null ], [ "fwrite", "azx__gnu__stdio_8h.html#ace50e1e3b73fb8bc9ae3a1ab3e972d91", null ], - [ "m2m_fgetc", "azx__gnu__stdio_8h.html#a32817892a9cd1e99cd12af765e40cb76", null ], - [ "m2m_fputc", "azx__gnu__stdio_8h.html#a366aba9aac6b1aacd0d1d1c5128512e2", null ], + [ "printf", "azx__gnu__stdio_8h.html#ac6e573736cd9ef39b18951a828848cb0", null ], [ "rewind", "azx__gnu__stdio_8h.html#aa55a07835c0a09155074815d7a810738", null ], [ "stderr", "azx__gnu__stdio_8h.html#a5ce35bd5ba5021fd3b2e951e8f497656", null ], + [ "stdin", "azx__gnu__stdio_8h.html#aaca70138f0cb63ddb026921afc635179", null ], [ "stdout", "azx__gnu__stdio_8h.html#a0c0ef221f95f64e8632451312fd18cc8", null ], [ "truncate", "azx__gnu__stdio_8h.html#a60afbd0a3b94d148cce45468b79c2c5a", null ], + [ "ungetc", "azx__gnu__stdio_8h.html#a2a766fa3b828608b0e879acdf5ea23e2", null ], [ "unlink", "azx__gnu__stdio_8h.html#a1865e3e4dbf6644059d3e46946f7763e", null ], + [ "vfprintf", "azx__gnu__stdio_8h.html#a8fdc4bb69d2ce8fe042b88eae7160e6e", null ], + [ "vprintf", "azx__gnu__stdio_8h.html#a7788703a92e79699b755a03486fcbc32", null ], + [ "azx_gnu_clearerr", "azx__gnu__stdio_8h.html#acf2c3a24e6c27141d9434a60e0b445f7", null ], + [ "azx_gnu_fdopen", "azx__gnu__stdio_8h.html#a890a93bd563dd732c9016f51a11ab3a8", null ], + [ "azx_gnu_feof", "azx__gnu__stdio_8h.html#a7ad55f615f2aa547b19ac81cf0ae8435", null ], + [ "azx_gnu_ferror", "azx__gnu__stdio_8h.html#a516b3f99cda7b6eed193d959ebd9ca19", null ], [ "azx_gnu_fprintf", "azx__gnu__stdio_8h.html#aacad0e51d9ef10e0f6ef01b27ef13597", null ], - [ "azx_gnu_truncate", "azx__gnu__stdio_8h.html#adb8fdfcb8c8ca87a63653dcbc794a18a", null ] + [ "azx_gnu_truncate", "azx__gnu__stdio_8h.html#adb8fdfcb8c8ca87a63653dcbc794a18a", null ], + [ "azx_gnu_ungetc", "azx__gnu__stdio_8h.html#aa8cd2423ecfaf164ecad0814975ee79c", null ], + [ "azx_gnu_vfprintf", "azx__gnu__stdio_8h.html#a36ca63769b890c5d342f2d5c2b8c7409", null ] ]; \ No newline at end of file diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__stdio_8h__incl.md5 b/LE910Cx_L/AZX_Docs/html/azx__gnu__stdio_8h__incl.md5 new file mode 100644 index 00000000..c52c63e6 --- /dev/null +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__stdio_8h__incl.md5 @@ -0,0 +1 @@ +2c7d3094ad36b685491142529b1b76f2 \ No newline at end of file diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__stdio_8h__incl.png b/LE910Cx_L/AZX_Docs/html/azx__gnu__stdio_8h__incl.png new file mode 100644 index 00000000..54978405 Binary files /dev/null and b/LE910Cx_L/AZX_Docs/html/azx__gnu__stdio_8h__incl.png differ diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__stdio_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__stdio_8h_source.html index 6bd6dfca..ed872aee 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__stdio_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__stdio_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -95,122 +95,170 @@
azx_gnu_stdio.h
-Go to the documentation of this file.
1 /*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/
+Go to the documentation of this file.
1 /*Copyright (C) 2022 Telit Communications S.p.A. Italy - All Rights Reserved.*/
2 /* See LICENSE file in the project root for full license information. */
3 
-
26 #ifndef HDR_AZX_GNU_STDIO_H_
-
27 #define HDR_AZX_GNU_STDIO_H_
-
28 
-
29 #ifdef __cplusplus
-
30 extern "C"
-
31 {
-
32 #endif
-
33 
-
34 #if defined(__ARMCLIB_VERSION) || defined(__MINGW32__)
-
35 
-
36 #ifndef __off_t_defined
-
37 typedef long _off_t;
-
38 #endif
+
27 #ifndef HDR_AZX_GNU_STDIO_H_
+
28 #define HDR_AZX_GNU_STDIO_H_
+
29 
+
30 #include <stdarg.h>
+
31 #include "m2mb_fs_stdio.h"
+
32 
+
33 #ifdef __cplusplus
+
34 extern "C"
+
35 {
+
36 #endif
+
37 
+
38 #if defined(__ARMCLIB_VERSION) || defined(__MINGW32__)
39 
-
40 #ifndef __dev_t_defined
-
41 typedef short __dev_t;
+
40 #ifndef __off_t_defined
+
41 typedef long _off_t;
42 #endif
43 
-
44 #ifndef __uid_t_defined
-
45 typedef unsigned short __uid_t;
+
44 #ifndef __dev_t_defined
+
45 typedef short __dev_t;
46 #endif
-
47 #ifndef __gid_t_defined
-
48 typedef unsigned short __gid_t;
-
49 #endif
-
50 
-
51 #ifndef __off64_t_defined
-
52 typedef long long _off64_t;
+
47 
+
48 #ifndef __uid_t_defined
+
49 typedef unsigned short __uid_t;
+
50 #endif
+
51 #ifndef __gid_t_defined
+
52 typedef unsigned short __gid_t;
53 #endif
54 
-
55 #ifndef __CYGWIN__ /* which defines these types in it's own types.h. */
-
56 typedef _off_t off_t;
-
57 #ifndef __MINGW32__
-
58 typedef __dev_t dev_t;
-
59 #endif
-
60 typedef __uid_t uid_t;
-
61 typedef __gid_t gid_t;
-
62 #endif
-
63 
-
64 #endif
-
65 
-
66 #undef stdin
-
67 #undef stdout
-
68 #undef stderr
-
69 #undef truncate
-
70 
-
71 /* Global defines ================================================================================*/
-
72 
-
73 //XXX: Warning! Magic numbers ahead //TODO add doxygen description
-
74 #define stdout (void*)(0x88888888)
-
75 #define stderr (void*)(0x99999999)
+
55 #ifndef __off64_t_defined
+
56 typedef long long _off64_t;
+
57 #endif
+
58 
+
59 #ifndef __CYGWIN__ /* which defines these types in it's own types.h. */
+
60 typedef _off_t off_t;
+
61 #ifndef __MINGW32__
+
62 typedef __dev_t dev_t;
+
63 #endif
+
64 typedef __uid_t uid_t;
+
65 typedef __gid_t gid_t;
+
66 #endif
+
67 
+
68 #endif
+
69 
+
70 #undef stdin
+
71 #undef stdout
+
72 #undef stderr
+
73 #undef truncate
+
74 
+
75 /* Global defines ================================================================================*/
76 
-
77 #ifndef APP_NAME /*Emulator*/
-
78 #define fopen m2mb_fs_fopen
-
79 #define fread m2mb_fs_fread
-
80 #define fwrite m2mb_fs_fwrite
-
81 #define fclose m2mb_fs_fclose
-
82 #define fputs m2mb_fs_fputs
-
83 #define fgets m2mb_fs_fgets
-
84 #define fflush m2mb_fs_fflush
-
85 #undef fileno
-
86 #define fileno m2mb_fs_fileno
-
87 #define unlink m2mb_fs_remove
-
88 #define FILE M2MB_FILE_T
-
89 
-
90 #define m2m_fputc m2mb_fs_fputc
-
91 #define m2m_fgetc m2mb_fs_fgetc
+
77 
+
78 #ifndef APP_NAME /*Emulator*/
+
79 #define fopen m2mb_fs_fopen
+
80 #define fread m2mb_fs_fread
+
81 #define fwrite m2mb_fs_fwrite
+
82 #define fclose m2mb_fs_fclose
+
83 #define fputs m2mb_fs_fputs
+
84 #define fgets m2mb_fs_fgets
+
85 #define fflush m2mb_fs_fflush
+
86 #undef fileno
+
87 #define fileno m2mb_fs_fileno
+
88 
+
89 #undef unlink
+
90 #define unlink m2mb_fs_remove
+
91 
92 
-
93 #define fseek m2mb_fs_fseek
-
94 #define rewind(a) (void)fseek(a, 0L, SEEK_SET)
+
93 #define FILE M2MB_FILE_T
+
94 
95 
-
96 #define fprintf azx_gnu_fprintf
-
97 #define truncate azx_gnu_truncate
-
98 #else //emulator
-
99 
-
100 #define fopen(x,y) (M2MB_FILE_T *)0xAAAAAAAA
-
101 #define fread(a,b,c,d) b*c
-
102 #define fwrite(a,b,c,d) b*c
-
103 #define fclose(x)
-
104 #define fputs(x,y)
-
105 #define fgets(x,y)
-
106 #define fflush(x)
-
107 #undef fileno
-
108 #define fileno(x)
-
109 #define unlink(x)
-
110 #define FILE M2MB_FILE_T
-
111 
-
112 #define m2m_fputc(x,y)
-
113 #define m2m_fgetc(x,y)
+
96 #undef clearerr
+
97 #define clearerr azx_gnu_clearerr
+
98 
+
99 //XXX: Warning! Magic numbers ahead
+
100 #define stdout (FILE*)(0x88888888)
+
101 #define stderr (FILE*)(0x99999999)
+
102 #define stdin (FILE*)(NULL)
+
103 
+
104 #undef fputc
+
105 #define fputc m2mb_fs_fputc
+
106 
+
107 #undef fgetc
+
108 #define fgetc m2mb_fs_fgetc
+
109 
+
110 #define fseek m2mb_fs_fseek
+
111 #define fseeko m2mb_fs_fseek
+
112 
+
113 #define rewind(a) (void)fseek(a, 0L, SEEK_SET)
114 
-
115 #define fseek(a,b,c) 0
-
116 #define rewind(x)
+
115 #define ftell m2mb_fs_ftell
+
116 #define ftello m2mb_fs_ftell
117 
-
118 #define fprintf(a,b,...)
-
119 #define truncate(x,y) 0
-
120 #endif
-
121 /* Function prototypes ====================================================================*/
-
122 
-
123 /*-----------------------------------------------------------------------------------------------*/
-
150 /*-----------------------------------------------------------------------------------------------*/
-
151 int azx_gnu_fprintf(void *f, const char *format, ...);
+
118 #define fdopen azx_gnu_fdopen
+
119 #define fprintf azx_gnu_fprintf
+
120 #define vfprintf azx_gnu_vfprintf
+
121 #define truncate azx_gnu_truncate
+
122 #undef feof
+
123 #define feof azx_gnu_feof
+
124 
+
125 
+
126 #undef printf
+
127 #define printf(a...) fprintf(stdout, a)
+
128 
+
129 #undef vprintf
+
130 #define vprintf(f, a) vfprintf(stdout, f, a)
+
131 
+
132 #define ungetc azx_gnu_ungetc
+
133 
+
134 #undef ferror
+
135 #define ferror azx_gnu_ferror
+
136 #else //emulator
+
137 
+
138 #define fopen(x,y) (M2MB_FILE_T *)0xAAAAAAAA
+
139 #define fread(a,b,c,d) b*c
+
140 #define fwrite(a,b,c,d) b*c
+
141 #define fclose(x)
+
142 #define fputs(x,y)
+
143 #define fgets(x,y)
+
144 #define fflush(x)
+
145 #undef fileno
+
146 #define fileno(x)
+
147 #define unlink(x)
+
148 #define FILE M2MB_FILE_T
+
149 
+
150 #define m2m_fputc(x,y)
+
151 #define m2m_fgetc(x,y)
152 
-
153 /*-----------------------------------------------------------------------------------------------*/
-
178 /*-----------------------------------------------------------------------------------------------*/
-
179 int azx_gnu_truncate(const char* path, off_t length);
-
180 
-
181 #ifdef __cplusplus
-
182 }
-
183 #endif
-
184 
-
185 #endif /* HDR_AZX_GNU_STDIO_H_ */
+
153 #define fseek(a,b,c) 0
+
154 #define rewind(x)
+
155 
+
156 #define fprintf(a,b,...)
+
157 #define truncate(x,y) 0
+
158 #endif
+
159 /* Function prototypes ====================================================================*/
+
160 
+
161 /*-----------------------------------------------------------------------------------------------*/
+
188 /*-----------------------------------------------------------------------------------------------*/
+
189 int azx_gnu_fprintf(void *f, const char *format, ...);
+
190 
+
218 int azx_gnu_vfprintf(void *f, const char *format, va_list ap);
+
219 /*-----------------------------------------------------------------------------------------------*/
+
244 /*-----------------------------------------------------------------------------------------------*/
+
245 int azx_gnu_truncate(const char* path, off_t length);
+
246 
+
247 /*TODO*/
+
248 int azx_gnu_ungetc(void *f, int c);
+
249 
+
250 int azx_gnu_ferror(void* f);
+
251 int azx_gnu_feof(void *f);
+
252 
+
253 FILE* azx_gnu_fdopen(int, const char *);
+
254 
+
255 void azx_gnu_clearerr(FILE* );
+
256 #ifdef __cplusplus
+
257 }
+
258 #endif
+
259 
+
260 #endif /* HDR_AZX_GNU_STDIO_H_ */
-
int azx_gnu_fprintf(void *f, const char *format,...)
Prints a autput.
+
int azx_gnu_vfprintf(void *f, const char *format, va_list ap)
Prints data in a file stream. Requires a variadic list.
+
int azx_gnu_fprintf(void *f, const char *format,...)
Prints data in a file stream.
int azx_gnu_truncate(const char *path, off_t length)
Truncate file.
diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__stdlib_8h.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__stdlib_8h.html index a4ebab4c..b4f30507 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__stdlib_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__stdlib_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -132,6 +132,9 @@ #define realloc(a, b)   azx_gnu_realloc(a,b)   + +#define exit   azx_gnu_exit +  @@ -147,6 +150,9 @@ + + +

Functions

void * azx_gnu_realloc (void *ptr, size_t size)
 Dynamic memory reallocation. More...
 
void azx_gnu_exit (int status)
 exit process. remaps stdlib exit() More...
 

Detailed Description

gnu definition

@@ -210,6 +216,33 @@

exit(...)

//all pStruct initialized to 0: pStruct->a = 0; pStruct->b = 0; pStruct->ptr = 0;
+ + +
+

◆ azx_gnu_exit()

+ +
+
+ + + + + + + + +
void azx_gnu_exit (int status)
+
+ +

exit process. remaps stdlib exit()

+

quits the application

+
Parameters
+ + +
[in]
+
+
+
diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__stdlib_8h.js b/LE910Cx_L/AZX_Docs/html/azx__gnu__stdlib_8h.js index 799b0093..a85fbb6e 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__stdlib_8h.js +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__stdlib_8h.js @@ -1,10 +1,12 @@ var azx__gnu__stdlib_8h = [ [ "calloc", "azx__gnu__stdlib_8h.html#a7cbb7b79af9d539af55b59dfc3598390", null ], + [ "exit", "azx__gnu__stdlib_8h.html#a5134b2f308b8e125e5f987ac66222050", null ], [ "free", "azx__gnu__stdlib_8h.html#aa7157aa9480bb73f090dca36776419bf", null ], [ "malloc", "azx__gnu__stdlib_8h.html#ab8b25cd8f16d4a6552afe4e65c4f082d", null ], [ "realloc", "azx__gnu__stdlib_8h.html#a40bca1270eac14ea5da81c924c02c3b7", null ], [ "azx_gnu_calloc", "azx__gnu__stdlib_8h.html#a7997c34fb06cfa0e66c00469c2d4e5f6", null ], + [ "azx_gnu_exit", "azx__gnu__stdlib_8h.html#afe18e5b043bc40b9f8c1da366de1a25c", null ], [ "azx_gnu_free", "azx__gnu__stdlib_8h.html#adf00383f106b20e878a20d62fbe11101", null ], [ "azx_gnu_malloc", "azx__gnu__stdlib_8h.html#a9a3cae7e50aff0b388a6a8ab8366bb91", null ], [ "azx_gnu_realloc", "azx__gnu__stdlib_8h.html#adde8371f617ee5ec1ac98f0e8f47d62a", null ] diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__stdlib_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__stdlib_8h_source.html index 233bce2d..50509387 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__stdlib_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__stdlib_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -95,7 +95,7 @@
azx_gnu_stdlib.h
-Go to the documentation of this file.
1 /*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/
+Go to the documentation of this file.
1 /*Copyright (C) 2022 Telit Communications S.p.A. Italy - All Rights Reserved.*/
2 /* See LICENSE file in the project root for full license information. */
3 
26 #ifndef HDR_AZX_GNU_STDLIB_H_
@@ -131,37 +131,44 @@
56 #ifndef realloc
57 #define realloc(a,b) azx_gnu_realloc(a,b)
58 #endif
-
59 /* Function prototypes ====================================================================*/
-
60 
-
61 //azx_gnu_malloc etc etc TODO add doxygen description
-
62 
-
63 /*-----------------------------------------------------------------------------------------------*/
-
100 /*-----------------------------------------------------------------------------------------------*/
-
101 void * azx_gnu_malloc(size_t size);
-
102 
+
59 
+
60 #undef exit
+
61 #define exit azx_gnu_exit
+
62 /* Function prototypes ====================================================================*/
+
63 
+
64 //azx_gnu_malloc etc etc TODO add doxygen description
+
65 
+
66 /*-----------------------------------------------------------------------------------------------*/
103 /*-----------------------------------------------------------------------------------------------*/
-
147 /*-----------------------------------------------------------------------------------------------*/
-
148 void * azx_gnu_calloc(size_t nitems, size_t size);
-
149 
+
104 void * azx_gnu_malloc(size_t size);
+
105 
+
106 /*-----------------------------------------------------------------------------------------------*/
150 /*-----------------------------------------------------------------------------------------------*/
-
187 /*-----------------------------------------------------------------------------------------------*/
-
188 void azx_gnu_free(void *ptr);
-
189 
+
151 void * azx_gnu_calloc(size_t nitems, size_t size);
+
152 
+
153 /*-----------------------------------------------------------------------------------------------*/
190 /*-----------------------------------------------------------------------------------------------*/
-
227 /*-----------------------------------------------------------------------------------------------*/
-
228 void * azx_gnu_realloc(void * ptr, size_t size);
-
229 
-
230 #ifdef __cplusplus
-
231 }
-
232 #endif
+
191 void azx_gnu_free(void *ptr);
+
192 
+
193 /*-----------------------------------------------------------------------------------------------*/
+
230 /*-----------------------------------------------------------------------------------------------*/
+
231 void * azx_gnu_realloc(void * ptr, size_t size);
+
232 
233 
-
234 #endif /* HDR_AZX_GNU_STDLIB_H_ */
-
235 
+
247 void azx_gnu_exit(int status);
+
248 
+
249 #ifdef __cplusplus
+
250 }
+
251 #endif
+
252 
+
253 #endif /* HDR_AZX_GNU_STDLIB_H_ */
+
254 
void * azx_gnu_calloc(size_t nitems, size_t size)
Allocates bytes of memory and init space with 0.
void azx_gnu_free(void *ptr)
Free allocated memory.
void * azx_gnu_malloc(size_t size)
Allocates bytes of memory.
+
void azx_gnu_exit(int status)
exit process. remaps stdlib exit()
void * azx_gnu_realloc(void *ptr, size_t size)
Dynamic memory reallocation.
diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__string_8h.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__string_8h.html index 181279c6..71fc3b76 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__string_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__string_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__string_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__string_8h_source.html index 210ae168..4e4074a6 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__string_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__string_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -95,7 +95,7 @@
azx_gnu_string.h
-Go to the documentation of this file.
1 /*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/
+Go to the documentation of this file.
1 /*Copyright (C) 2022 Telit Communications S.p.A. Italy - All Rights Reserved.*/
2 /* See LICENSE file in the project root for full license information. */
3 
24 #ifndef HDR_AZX_GNU_STRING_H_
diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__socket_8h.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__socket_8h.html index 23644ade..eac6cdf7 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__socket_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__socket_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -111,6 +111,8 @@ Data Structures

struct  sockaddr_storage   +struct  addrinfo +  @@ -140,6 +142,9 @@ + + + + + + + + + + + + @@ -283,6 +303,21 @@ + + + + + + + + + + + + @@ -336,6 +374,11 @@ + + + +

Macros

#define s6_addr   addr8_s
 
+#define fd_set   M2MB_SOCKET_BSD_FD_SET_T
 
#define socket   m2mb_socket_bsd_socket
 
@@ -205,6 +210,18 @@
#define select   azx_gnu_select
 
+#define fd_set   M2MB_SOCKET_BSD_FD_SET_T
 
+#define fds_bits   fd_array
 
+#define getaddrinfo   azx_gnu_getaddrinfo
 
+#define freeaddrinfo   azx_gnu_freeaddrinfo
 
#define _SS_MAXSIZE   128 /* Implementation specific max size */
 
@@ -244,6 +261,9 @@
#define IPPROTO_UDP   M2MB_SOCKET_BSD_IPPROTO_UDP
 
+#define AF_UNSPEC   M2MB_SOCKET_BSD_AF_UNSPEC
 
#define SOCK_STREAM   M2MB_SOCKET_BSD_SOCK_STREAM
 
#define AI_NUMERICSERV   0x0400 /* Don't use name resolution. */
 
+#define EAI_FAIL   4 /* non-recoverable failure in name resolution */
 
+#define EAI_MEMORY   6 /* memory allocation failure */
 
+#define EAI_NODATA   7 /* no address associated with host */
 
+#define EAI_NONAME   8 /* host nor service provided, or not known */
 
+#define EAI_SYSTEM   11 /* system error returned in errno */
 
#define INET_ADDRSTRLEN   16
 
@@ -290,6 +325,9 @@
 
#define IF_NAMESIZE   16
 
+#define INET6_ADDRSTRLEN   46
 
#define hstrerror   azx_gnu_hstrerror
 
const char * azx_gnu_hstrerror (int err)
 Return information after a host name or address lookup error. More...
 
int azx_gnu_getaddrinfo (const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res)
 
+void azx_gnu_freeaddrinfo (struct addrinfo *ai)
 
@@ -512,6 +555,47 @@

Function Documentation

+ +

◆ azx_gnu_getaddrinfo()

+ +
+
+

Variables

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int azx_gnu_getaddrinfo (const char * node,
const char * service,
const struct addrinfohints,
struct addrinfo ** res 
)
+
+

<– From netdb.h

+ +
+

◆ azx_gnu_getgCID()

diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__socket_8h.js b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__socket_8h.js index 75b6b2e2..4059f1cc 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__socket_8h.js +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__socket_8h.js @@ -1,6 +1,7 @@ var azx__gnu__sys__socket_8h = [ [ "sockaddr_storage", "structsockaddr__storage.html", "structsockaddr__storage" ], + [ "addrinfo", "structaddrinfo.html", "structaddrinfo" ], [ "_SS_ALIGNSIZE", "azx__gnu__sys__socket_8h.html#a001a987f0cc1b04e5ebd01931028d45e", null ], [ "_SS_MAXSIZE", "azx__gnu__sys__socket_8h.html#a313001ab5b0b2b81f4e90198d40f6c4a", null ], [ "_SS_PAD1SIZE", "azx__gnu__sys__socket_8h.html#acec33953ef4d0567a10f80c2530e4251", null ], @@ -8,17 +9,28 @@ var azx__gnu__sys__socket_8h = [ "accept", "azx__gnu__sys__socket_8h.html#a2fe3d034024f850bed737a97851616bf", null ], [ "AF_INET", "azx__gnu__sys__socket_8h.html#a9930604d0e32588eae76f43ca38e7826", null ], [ "AF_INET6", "azx__gnu__sys__socket_8h.html#aa03706b2738b9a58d4985dfbe99e1bac", null ], + [ "AF_UNSPEC", "azx__gnu__sys__socket_8h.html#ae77ae24b14b7b7f294f3e04121173f12", null ], [ "AI_CANONNAME", "azx__gnu__sys__socket_8h.html#ab2912e6cffeb2353df550f10bbe64cf4", null ], [ "AI_NUMERICSERV", "azx__gnu__sys__socket_8h.html#a8739abe7bcb9470bcdb021e869b2a76f", null ], [ "AI_PASSIVE", "azx__gnu__sys__socket_8h.html#aec9e92ed53442d64cbc9b68d92ad970b", null ], [ "bind", "azx__gnu__sys__socket_8h.html#af65cc88d9ccb2274b94e0025d25d965f", null ], [ "closesocket", "azx__gnu__sys__socket_8h.html#afdbb9d84bd17efd2ae7290e664992c48", null ], [ "connect", "azx__gnu__sys__socket_8h.html#adfd4ee688142ebda1142c1b0c7577e91", null ], + [ "EAI_FAIL", "azx__gnu__sys__socket_8h.html#acfc712115bf29357d33472da2209dc15", null ], + [ "EAI_MEMORY", "azx__gnu__sys__socket_8h.html#a33d8eb0c89167f95dcdaf23386631174", null ], + [ "EAI_NODATA", "azx__gnu__sys__socket_8h.html#aae1a32f26ffbb7461251d7c4a7c3a0a2", null ], + [ "EAI_NONAME", "azx__gnu__sys__socket_8h.html#a0bb00f48d6ba1e8c55b7d85c8e3a19a7", null ], + [ "EAI_SYSTEM", "azx__gnu__sys__socket_8h.html#a8e864fa95f26341c27127deb6237c88c", null ], [ "FD_CLR", "azx__gnu__sys__socket_8h.html#af8400cddb6c274506ce072e1160ff09f", null ], [ "FD_ISSET", "azx__gnu__sys__socket_8h.html#a9bc0a7e611c4d98105fdf031d60e29ad", null ], [ "FD_SET", "azx__gnu__sys__socket_8h.html#ad97013c4b9982b36a8308917d5c22c52", null ], + [ "fd_set", "azx__gnu__sys__socket_8h.html#a7acea921b59df1dc48b89b21ecfa446b", null ], + [ "fd_set", "azx__gnu__sys__socket_8h.html#a7acea921b59df1dc48b89b21ecfa446b", null ], [ "FD_SETSIZE", "azx__gnu__sys__socket_8h.html#a86c5dbf5a99358e288f573d6a1e0873f", null ], [ "FD_ZERO", "azx__gnu__sys__socket_8h.html#a23c97009457b26f0e96afc9d0e10876b", null ], + [ "fds_bits", "azx__gnu__sys__socket_8h.html#adc54b31687655b483505806432677ba5", null ], + [ "freeaddrinfo", "azx__gnu__sys__socket_8h.html#adef9f0657cf2d7402f4a63fc37a2e5e9", null ], + [ "getaddrinfo", "azx__gnu__sys__socket_8h.html#a78922d97b0249df72483a103338d2629", null ], [ "getsockname", "azx__gnu__sys__socket_8h.html#aa2348cb2e6f1d3bee7ffec9bcb33ca58", null ], [ "getsockopt", "azx__gnu__sys__socket_8h.html#a6d2e979cce939b0bccfe059fb553dbb8", null ], [ "h_addr", "azx__gnu__sys__socket_8h.html#a4d04a8261523c8f3473946257c12ce5b", null ], @@ -32,6 +44,7 @@ var azx__gnu__sys__socket_8h = [ "in_addr", "azx__gnu__sys__socket_8h.html#a73e57c1190f8731fb8b0217f929c4e1b", null ], [ "INADDR_ANY", "azx__gnu__sys__socket_8h.html#a5d1940045dc2e7de552f3d4ff13a74ab", null ], [ "INET6_ADDRSTRLEN", "azx__gnu__sys__socket_8h.html#af776b22a727aae7c9f4d869d50df47e8", null ], + [ "INET6_ADDRSTRLEN", "azx__gnu__sys__socket_8h.html#af776b22a727aae7c9f4d869d50df47e8", null ], [ "inet_addr", "azx__gnu__sys__socket_8h.html#ab0d562594c41651be90726b4b82e309e", null ], [ "INET_ADDRSTRLEN", "azx__gnu__sys__socket_8h.html#a93b37007689284fd9c4bde1a8f4b9199", null ], [ "inet_ntoa", "azx__gnu__sys__socket_8h.html#ae19be00ee1206fc8ac3f9fa69a1d6978", null ], @@ -68,6 +81,8 @@ var azx__gnu__sys__socket_8h = [ "sa_family_t", "azx__gnu__sys__socket_8h.html#ad1b322f8c65483fe5fa0e522e7bec920", null ], [ "socklen_t", "azx__gnu__sys__socket_8h.html#aae83a93236e01902b58ec3f197a17f7c", null ], [ "uint8_t", "azx__gnu__sys__socket_8h.html#a97235cba1674c19feaff918c23caee72", null ], + [ "azx_gnu_freeaddrinfo", "azx__gnu__sys__socket_8h.html#a314ac9169c74c5694afbcbe054ff19ae", null ], + [ "azx_gnu_getaddrinfo", "azx__gnu__sys__socket_8h.html#a04c7fc7dc2b21c85617d9f7a896e08d7", null ], [ "azx_gnu_getgCID", "azx__gnu__sys__socket_8h.html#abd732c8acd3db56ad887706f27ca5425", null ], [ "azx_gnu_gethostbyname", "azx__gnu__sys__socket_8h.html#a99d8ac30b262f970760ab1b012d9eabe", null ], [ "azx_gnu_gethostbyname_r", "azx__gnu__sys__socket_8h.html#a3466eaed96749995e030404f31f7c5f8", null ], diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__socket_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__socket_8h_source.html index 7fd31e0f..e650c636 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__socket_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__socket_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -95,7 +95,7 @@
azx_gnu_sys_socket.h
-Go to the documentation of this file.
1 /*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/
+Go to the documentation of this file.
1 /*Copyright (C) 2022 Telit Communications S.p.A. Italy - All Rights Reserved.*/
2 /* See LICENSE file in the project root for full license information. */
3 
23 #ifndef HDR_AZX_GNU_SYS_SOCKET_H_
@@ -121,176 +121,226 @@
44 #define in_addr M2MB_SOCKET_BSD_IN_ADDR
45 #define in6_addr M2MB_SOCKET_BSD_IPV6_ADDR
46 #define s6_addr addr8_s
-
47 
-
50 #define socket m2mb_socket_bsd_socket
-
51 #define closesocket m2mb_socket_bsd_close
-
52 #define shutdown(a,b) UNUSED_2(a,b) /*dummy function*/
-
53 #define ntohs m2mb_socket_bsd_ntohs
-
54 #define ntohl m2mb_socket_bsd_ntohl
-
55 #define htonl m2mb_socket_bsd_htonl
-
56 #define htons m2mb_socket_bsd_htons
-
57 #define setsockopt m2mb_socket_bsd_set_sock_opt
-
58 #define inet_addr m2mb_socket_bsd_inet_addr
-
59 #define inet_pton m2mb_socket_bsd_inet_pton
-
60 #define recvfrom m2mb_socket_bsd_recv_from
-
61 #define recv m2mb_socket_bsd_recv
-
62 #define sendto m2mb_socket_bsd_send_to
-
63 #define send m2mb_socket_bsd_send
-
64 #define getsockname m2mb_socket_bsd_get_sock_name
-
65 #define getsockopt m2mb_socket_bsd_get_sock_opt
-
66 #define bind m2mb_socket_bsd_bind
-
67 #define connect m2mb_socket_bsd_connect
-
68 #define listen m2mb_socket_bsd_listen
-
69 #define accept m2mb_socket_bsd_accept
-
70 #define inet_ntoa(a) m2mb_socket_bsd_addr_str(a.s_addr)
-
71 #define select azx_gnu_select
-
72 
-
74 #define _SS_MAXSIZE 128 /* Implementation specific max size */
-
75 #define _SS_ALIGNSIZE (sizeof (INT64)) /* Implementation specific desired alignment */
-
76 
-
77 /*
-
78  Definitions used for sockaddr_storage structure paddings design.
-
79 */
-
80 #define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof (sa_family_t))
-
81 #define _SS_PAD2SIZE (_SS_MAXSIZE - (sizeof (sa_family_t)+ _SS_PAD1SIZE + _SS_ALIGNSIZE))
-
82 
-
84 #ifdef FD_SET
-
85  #undef FD_SET
-
86 #endif
-
87 #define FD_SET(n, p) m2mb_socket_bsd_fd_set_func(n, p)
-
88 
-
89 #ifdef FD_CLR
-
90  #undef FD_CLR
-
91 #endif
-
92 #define FD_CLR(n, p) m2mb_socket_bsd_fd_clr_func(n, p)
-
93 
-
94 #ifdef FD_ISSET
-
95  #undef FD_ISSET
-
96 #endif
-
97 #define FD_ISSET(n, p) m2mb_socket_bsd_fd_isset_func(n, p)
-
98 
-
99 #ifdef FD_ZERO
-
100  #undef FD_ZERO
-
101 #endif
-
102 #define FD_ZERO(p) m2mb_socket_bsd_fd_zero_func(p)
-
103 
-
107 typedef UINT32 in_addr_t;
-
108 typedef char *__caddr_t;
-
109 typedef UINT8 uint8_t;
-
110 
-
114 #define AF_INET M2MB_SOCKET_BSD_AF_INET
-
115 #define AF_INET6 M2MB_SOCKET_BSD_AF_INET6
-
116 #define PF_INET M2MB_SOCKET_BSD_PF_INET
-
117 #define PF_INET6 AF_INET6
-
118 #define IPPROTO_TCP M2MB_SOCKET_BSD_IPPROTO_TCP
-
119 #define IPPROTO_UDP M2MB_SOCKET_BSD_IPPROTO_UDP
-
120 #define SOCK_STREAM M2MB_SOCKET_BSD_SOCK_STREAM
-
121 #define SOCK_DGRAM M2MB_SOCKET_BSD_SOCK_DGRAM
-
122 #define SO_SNDBUF M2MB_SOCKET_BSD_SO_SNDBUF
-
123 #define SO_RCVBUF M2MB_SOCKET_BSD_SO_RCVBUF
-
124 #define SO_REUSEADDR M2MB_SOCKET_BSD_SO_REUSEADDR
-
125 #define SO_LINGER M2MB_SOCKET_BSD_SO_LINGER
-
126 #define INADDR_ANY M2MB_SOCKET_BSD_INADDR_ANY
-
127 #define SOL_SOCKET M2MB_SOCKET_BSD_SOL_SOCKET
-
128 #define SO_ERROR M2MB_SOCKET_BSD_SO_ERROR
-
129 
-
130 #ifdef FD_SETSIZE
-
131  #undef FD_SETSIZE
-
132 #endif
-
133 #define FD_SETSIZE M2MB_SOCKET_BSD_FD_SETSIZE
-
134 
-
135 /* Possible values for `ai_flags' field in `addrinfo' structure. */
-
136 #ifndef AI_PASSIVE
-
137  #define AI_PASSIVE 0x0001 /* Socket address is intended for `bind'. */
-
138 #endif
-
139 #ifndef AI_CANONNAME
-
140  #define AI_CANONNAME 0x0002 /* Request for canonical name. */
-
141 #endif
-
142 #ifndef AI_NUMERICSERV
-
143  #define AI_NUMERICSERV 0x0400 /* Don't use name resolution. */
-
144 #endif
-
145 
-
147 #define INET_ADDRSTRLEN 16
-
148 #define INET6_ADDRSTRLEN 46
+
47 #undef fd_set
+
48 #define fd_set M2MB_SOCKET_BSD_FD_SET_T
+
49 
+
52 #define socket m2mb_socket_bsd_socket
+
53 #define closesocket m2mb_socket_bsd_close
+
54 #define shutdown(a,b) UNUSED_2(a,b) /*dummy function*/
+
55 #define ntohs m2mb_socket_bsd_ntohs
+
56 #define ntohl m2mb_socket_bsd_ntohl
+
57 #define htonl m2mb_socket_bsd_htonl
+
58 #define htons m2mb_socket_bsd_htons
+
59 #define setsockopt m2mb_socket_bsd_set_sock_opt
+
60 #define inet_addr m2mb_socket_bsd_inet_addr
+
61 #define inet_pton m2mb_socket_bsd_inet_pton
+
62 #define recvfrom m2mb_socket_bsd_recv_from
+
63 #define recv m2mb_socket_bsd_recv
+
64 #define sendto m2mb_socket_bsd_send_to
+
65 #define send m2mb_socket_bsd_send
+
66 #define getsockname m2mb_socket_bsd_get_sock_name
+
67 #define getsockopt m2mb_socket_bsd_get_sock_opt
+
68 #define bind m2mb_socket_bsd_bind
+
69 #define connect m2mb_socket_bsd_connect
+
70 #define listen m2mb_socket_bsd_listen
+
71 #define accept m2mb_socket_bsd_accept
+
72 #define inet_ntoa(a) m2mb_socket_bsd_addr_str(a.s_addr)
+
73 #define select azx_gnu_select
+
74 
+
75 #undef fd_set
+
76 #define fd_set M2MB_SOCKET_BSD_FD_SET_T
+
77 #undef fds_bits
+
78 #define fds_bits fd_array
+
79 
+
80 
+
81 #undef getaddrinfo
+
82 #define getaddrinfo azx_gnu_getaddrinfo
+
83 
+
84 #undef freeaddrinfo
+
85 #define freeaddrinfo azx_gnu_freeaddrinfo
+
86 
+
88 #define _SS_MAXSIZE 128 /* Implementation specific max size */
+
89 #define _SS_ALIGNSIZE (sizeof (INT64)) /* Implementation specific desired alignment */
+
90 
+
91 /*
+
92  Definitions used for sockaddr_storage structure paddings design.
+
93 */
+
94 #define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof (sa_family_t))
+
95 #define _SS_PAD2SIZE (_SS_MAXSIZE - (sizeof (sa_family_t)+ _SS_PAD1SIZE + _SS_ALIGNSIZE))
+
96 
+
98 #ifdef FD_SET
+
99  #undef FD_SET
+
100 #endif
+
101 #define FD_SET(n, p) m2mb_socket_bsd_fd_set_func(n, p)
+
102 
+
103 #ifdef FD_CLR
+
104  #undef FD_CLR
+
105 #endif
+
106 #define FD_CLR(n, p) m2mb_socket_bsd_fd_clr_func(n, p)
+
107 
+
108 #ifdef FD_ISSET
+
109  #undef FD_ISSET
+
110 #endif
+
111 #define FD_ISSET(n, p) m2mb_socket_bsd_fd_isset_func(n, p)
+
112 
+
113 #ifdef FD_ZERO
+
114  #undef FD_ZERO
+
115 #endif
+
116 #define FD_ZERO(p) m2mb_socket_bsd_fd_zero_func(p)
+
117 
+
121 typedef UINT32 in_addr_t;
+
122 typedef char *__caddr_t;
+
123 typedef UINT8 uint8_t;
+
124 
+
128 #define AF_INET M2MB_SOCKET_BSD_AF_INET
+
129 #define AF_INET6 M2MB_SOCKET_BSD_AF_INET6
+
130 #define PF_INET M2MB_SOCKET_BSD_PF_INET
+
131 #define PF_INET6 AF_INET6
+
132 #define IPPROTO_TCP M2MB_SOCKET_BSD_IPPROTO_TCP
+
133 #define IPPROTO_UDP M2MB_SOCKET_BSD_IPPROTO_UDP
+
134 #define AF_UNSPEC M2MB_SOCKET_BSD_AF_UNSPEC
+
135 #define SOCK_STREAM M2MB_SOCKET_BSD_SOCK_STREAM
+
136 #define SOCK_DGRAM M2MB_SOCKET_BSD_SOCK_DGRAM
+
137 #define SO_SNDBUF M2MB_SOCKET_BSD_SO_SNDBUF
+
138 #define SO_RCVBUF M2MB_SOCKET_BSD_SO_RCVBUF
+
139 #define SO_REUSEADDR M2MB_SOCKET_BSD_SO_REUSEADDR
+
140 #define SO_LINGER M2MB_SOCKET_BSD_SO_LINGER
+
141 #define INADDR_ANY M2MB_SOCKET_BSD_INADDR_ANY
+
142 #define SOL_SOCKET M2MB_SOCKET_BSD_SOL_SOCKET
+
143 #define SO_ERROR M2MB_SOCKET_BSD_SO_ERROR
+
144 
+
145 #ifdef FD_SETSIZE
+
146  #undef FD_SETSIZE
+
147 #endif
+
148 #define FD_SETSIZE M2MB_SOCKET_BSD_FD_SETSIZE
149 
-
150 //struct in6_addr in6addr_any; //TODO: initialize this to the ipv6 wildcard address :: or 0:0:0:0:0:0:0:0
-
152 #define IF_NAMESIZE 16
-
153 
-
157 /* Utilities for M2MB*/
-
158 
-
159 /* Global definition =============================================================================*/
+
150 /* Possible values for `ai_flags' field in `addrinfo' structure. */
+
151 #ifndef AI_PASSIVE
+
152  #define AI_PASSIVE 0x0001 /* Socket address is intended for `bind'. */
+
153 #endif
+
154 #ifndef AI_CANONNAME
+
155  #define AI_CANONNAME 0x0002 /* Request for canonical name. */
+
156 #endif
+
157 #ifndef AI_NUMERICSERV
+
158  #define AI_NUMERICSERV 0x0400 /* Don't use name resolution. */
+
159 #endif
160 
-
162 typedef unsigned int socklen_t;
-
163 typedef UINT8 sa_family_t;
-
164 
- -
166 {
-
167  sa_family_t __ss_family; /* address family */
-
168  /* Following fields are implementation specific */
-
169  char __ss_pad1[_SS_PAD1SIZE];
-
170  /* 6 byte pad, this is to make implementation */
-
171  /* specific pad up to alignment field that */
-
172  /* follows explicit in the data structure */
-
173  INT64 __ss_align; /* field to force desired structure */
-
174  /* storage alignment */
-
175  char __ss_pad2[_SS_PAD2SIZE];
-
176  /* 112 byte pad to achieve desired size, */
-
177  /* _SS_MAXSIZE value minus size of ss_family */
-
178  /* __ss_pad1, __ss_align fields is 112 */
-
179 };
-
180 
-
183 /* Function prototypes ====================================================================*/
-
184 
-
187 /*-----------------------------------------------------------------------------------------------*/
-
188 #ifndef __MINGW32__
-
189 
-
212 struct M2MB_SOCKET_BSD_HOSTENT *azx_gnu_gethostbyname( const char *name );
-
213 #endif
-
214 /*-----------------------------------------------------------------------------------------------*/
-
248 int azx_gnu_gethostbyname_r( char *name, struct M2MB_SOCKET_BSD_HOSTENT *he,
-
249  CHAR *buf, SIZE_T buflen, struct M2MB_SOCKET_BSD_HOSTENT **result,
-
250  int *h_errnop );
-
251 
-
252 /*-----------------------------------------------------------------------------------------------*/
-
288 /*-----------------------------------------------------------------------------------------------*/
-
289 int azx_gnu_socket_bsd_socket_global_cid( INT32 domain, INT32 type, INT32 protocol );
-
290 
-
291 INT32 azx_gnu_socket_bsd_get_sock_name( M2MB_SOCKET_BSD_SOCKET s,
-
292  struct M2MB_SOCKET_BSD_SOCKADDR *name, INT32 *namelen );
-
293 
-
294 /*-----------------------------------------------------------------------------------------------*/
-
328 /*-----------------------------------------------------------------------------------------------*/
-
329 int azx_gnu_select( int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
-
330  const struct timeval *timeout );
-
331 
-
334 /*-----------------------------------------------------------------------------------------------*/
-
356 /*-----------------------------------------------------------------------------------------------*/
-
357 void azx_gnu_setgCID( UINT8 c );
-
358 
-
359 /*-----------------------------------------------------------------------------------------------*/
-
381 /*-----------------------------------------------------------------------------------------------*/
-
382 UINT8 azx_gnu_getgCID( void );
-
383 
-
385 extern INT32 azx_gnu_h_errno;
-
386 
-
387 /*-----------------------------------------------------------------------------------------------*/
-
409 /*-----------------------------------------------------------------------------------------------*/
-
410 const char *azx_gnu_hstrerror( int err );
-
411 #define hstrerror azx_gnu_hstrerror
-
412 
-
414 #endif /* HDR_AZX_GNU_SYS_SOCKET_H_ */
+
161 
+
162 #ifndef EAI_FAIL
+
163 #define EAI_FAIL 4 /* non-recoverable failure in name resolution */
+
164 #endif
+
165 #ifndef EAI_MEMORY
+
166 #define EAI_MEMORY 6 /* memory allocation failure */
+
167 #endif
+
168 #ifndef EAI_NODATA
+
169 #define EAI_NODATA 7 /* no address associated with host */
+
170 #endif
+
171 #ifndef EAI_NONAME
+
172 #define EAI_NONAME 8 /* host nor service provided, or not known */
+
173 #endif
+
174 #ifndef EAI_SYSTEM
+
175 #define EAI_SYSTEM 11 /* system error returned in errno */
+
176 #endif
+
177 
+
179 #define INET_ADDRSTRLEN 16
+
180 #define INET6_ADDRSTRLEN 46
+
181 
+
182 //struct in6_addr in6addr_any; //TODO: initialize this to the ipv6 wildcard address :: or 0:0:0:0:0:0:0:0
+
184 #define IF_NAMESIZE 16
+
185 
+
189 /* Utilities for M2MB*/
+
190 
+
191 /* Global definition =============================================================================*/
+
192 
+
194 typedef unsigned int socklen_t;
+
195 typedef UINT8 sa_family_t;
+
196 
+ +
198 {
+
199  sa_family_t __ss_family; /* address family */
+
200  /* Following fields are implementation specific */
+
201  char __ss_pad1[_SS_PAD1SIZE];
+
202  /* 6 byte pad, this is to make implementation */
+
203  /* specific pad up to alignment field that */
+
204  /* follows explicit in the data structure */
+
205  INT64 __ss_align; /* field to force desired structure */
+
206  /* storage alignment */
+
207  char __ss_pad2[_SS_PAD2SIZE];
+
208  /* 112 byte pad to achieve desired size, */
+
209  /* _SS_MAXSIZE value minus size of ss_family */
+
210  /* __ss_pad1, __ss_align fields is 112 */
+
211 };
+
212 struct addrinfo {
+
213  int ai_flags;
+
214  int ai_family;
+
215  int ai_socktype;
+
216  int ai_protocol;
+
217  socklen_t ai_addrlen;
+
218  struct M2MB_SOCKET_BSD_SOCKADDR *ai_addr;
+
219  char *ai_canonname;
+
220  struct addrinfo *ai_next;
+
221  };
+
222 
+
223 #define INET6_ADDRSTRLEN 46
+
224 
+
227 /* Function prototypes ====================================================================*/
+
228 
+
231 /*-----------------------------------------------------------------------------------------------*/
+
232 #ifndef __MINGW32__
+
233 
+
256 struct M2MB_SOCKET_BSD_HOSTENT *azx_gnu_gethostbyname( const char *name );
+
257 #endif
+
258 /*-----------------------------------------------------------------------------------------------*/
+
292 int azx_gnu_gethostbyname_r( char *name, struct M2MB_SOCKET_BSD_HOSTENT *he,
+
293  CHAR *buf, SIZE_T buflen, struct M2MB_SOCKET_BSD_HOSTENT **result,
+
294  int *h_errnop );
+
295 
+
296 /*-----------------------------------------------------------------------------------------------*/
+
332 /*-----------------------------------------------------------------------------------------------*/
+
333 int azx_gnu_socket_bsd_socket_global_cid( INT32 domain, INT32 type, INT32 protocol );
+
334 
+
335 INT32 azx_gnu_socket_bsd_get_sock_name( M2MB_SOCKET_BSD_SOCKET s,
+
336  struct M2MB_SOCKET_BSD_SOCKADDR *name, INT32 *namelen );
+
337 
+
338 /*-----------------------------------------------------------------------------------------------*/
+
372 /*-----------------------------------------------------------------------------------------------*/
+
373 int azx_gnu_select( int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
+
374  const struct timeval *timeout );
+
375 
+
378 /*-----------------------------------------------------------------------------------------------*/
+
400 /*-----------------------------------------------------------------------------------------------*/
+
401 void azx_gnu_setgCID( UINT8 c );
+
402 
+
403 /*-----------------------------------------------------------------------------------------------*/
+
425 /*-----------------------------------------------------------------------------------------------*/
+
426 UINT8 azx_gnu_getgCID( void );
+
427 
+
429 extern INT32 azx_gnu_h_errno;
+
430 
+
431 /*-----------------------------------------------------------------------------------------------*/
+
453 /*-----------------------------------------------------------------------------------------------*/
+
454 const char *azx_gnu_hstrerror( int err );
+
455 #define hstrerror azx_gnu_hstrerror
+
456 
+
457 int azx_gnu_getaddrinfo(const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res);
+
458 
+
459 void azx_gnu_freeaddrinfo (struct addrinfo *ai);
+
460 
+
461 #endif /* HDR_AZX_GNU_SYS_SOCKET_H_ */
-
socklen_t
unsigned int socklen_t
Definition: azx_gnu_sys_socket.h:162
-
sockaddr_storage
Definition: azx_gnu_sys_socket.h:165
+
socklen_t
unsigned int socklen_t
Definition: azx_gnu_sys_socket.h:194
+
sockaddr_storage
Definition: azx_gnu_sys_socket.h:197
azx_gnu_getgCID
UINT8 azx_gnu_getgCID(void)
Returns CID.
azx_gnu_setgCID
void azx_gnu_setgCID(UINT8 c)
Sets CID.
-
in_addr_t
UINT32 in_addr_t
Definition: azx_gnu_sys_socket.h:107
+
azx_gnu_getaddrinfo
int azx_gnu_getaddrinfo(const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res)
+
in_addr_t
UINT32 in_addr_t
Definition: azx_gnu_sys_socket.h:121
azx_gnu_gethostbyname_r
int azx_gnu_gethostbyname_r(char *name, struct M2MB_SOCKET_BSD_HOSTENT *he, CHAR *buf, SIZE_T buflen, struct M2MB_SOCKET_BSD_HOSTENT **result, int *h_errnop)
get network host entry
azx_gnu_select
int azx_gnu_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, const struct timeval *timeout)
synchronous I/O multiplexing
azx_gnu_h_errno
INT32 azx_gnu_h_errno
azx_gnu_hstrerror
const char * azx_gnu_hstrerror(int err)
Return information after a host name or address lookup error.
azx_gnu_socket_bsd_socket_global_cid
int azx_gnu_socket_bsd_socket_global_cid(INT32 domain, INT32 type, INT32 protocol)
create an endpoint for communication
+
addrinfo
Definition: azx_gnu_sys_socket.h:212
azx_gnu_gethostbyname
struct M2MB_SOCKET_BSD_HOSTENT * azx_gnu_gethostbyname(const char *name)
get network host entry
diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__stat_8h.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__stat_8h.html new file mode 100644 index 00000000..adbda468 --- /dev/null +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__stat_8h.html @@ -0,0 +1,155 @@ + + + + + + + + +AZX (AppZone eXtensions) documentation: hdr/azx_gnu_sys_stat.h File Reference + + + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
AZX (AppZone eXtensions) documentation +  1.1.19-CxL +
+
A set of companion utilities that make AZ development easier
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
azx_gnu_sys_stat.h File Reference
+
+
+ +

gnu definition +More...

+
#include "m2mb_fs_posix.h"
+
+Include dependency graph for azx_gnu_sys_stat.h:
+
+
+ + + + +
+
+

Go to the source code of this file.

+ + + + + + +

+Macros

+#define stat   m2mb_fs_stat
 
+#define fstat   m2mb_fs_fstat
 
+

Detailed Description

+

gnu definition

+

azx_gnu_sys_time.h

+

Porting from gnu to azx

+
Note
+
Author
Moreno Floris
+
+Norman Argiolas
+
Date
11/02/2020
+
+
+ + + + + diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__stat_8h.js b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__stat_8h.js new file mode 100644 index 00000000..f4e71e47 --- /dev/null +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__stat_8h.js @@ -0,0 +1,5 @@ +var azx__gnu__sys__stat_8h = +[ + [ "fstat", "azx__gnu__sys__stat_8h.html#aa84a9ac582a3b7d9a0dea52e851855ea", null ], + [ "stat", "azx__gnu__sys__stat_8h.html#a149da0702b060478da4d59ffe807adac", null ] +]; \ No newline at end of file diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__stat_8h__incl.md5 b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__stat_8h__incl.md5 new file mode 100644 index 00000000..e9b85117 --- /dev/null +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__stat_8h__incl.md5 @@ -0,0 +1 @@ +1add9cfaa61cca8b2d9b158d672fae14 \ No newline at end of file diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__stat_8h__incl.png b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__stat_8h__incl.png new file mode 100644 index 00000000..0d407a79 Binary files /dev/null and b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__stat_8h__incl.png differ diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__stat_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__stat_8h_source.html new file mode 100644 index 00000000..3bfb302d --- /dev/null +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__stat_8h_source.html @@ -0,0 +1,142 @@ + + + + + + + + +AZX (AppZone eXtensions) documentation: hdr/azx_gnu_sys_stat.h Source File + + + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
AZX (AppZone eXtensions) documentation +  1.1.19-CxL +
+
A set of companion utilities that make AZ development easier
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
azx_gnu_sys_stat.h
+
+
+Go to the documentation of this file.
1 /*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/
+
2 /* See LICENSE file in the project root for full license information. */
+
3 
+
23 #ifndef HDR_AZX_GNU_SYS_STAT_H_
+
24 #define HDR_AZX_GNU_SYS_STAT_H_
+
25 
+
26 #undef S_ISUID
+
27 #undef S_ISGID
+
28 #undef S_ISVTX
+
29 
+
30 #include "m2mb_fs_posix.h"
+
31 
+
32 
+
33 /* Global defines ================================================================================*/
+
34 
+
35 #define stat m2mb_fs_stat
+
36 #define fstat m2mb_fs_fstat
+
37 
+
38 
+
39 /* Function prototypes ====================================================================*/
+
40 
+
41 
+
42 #endif /* HDR_AZX_GNU_SYS_STAT_H_ */
+
+
+ + + + + diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__time_8h.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__time_8h.html index 3ffd6862..bda8e6cc 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__time_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__time_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__time_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__time_8h_source.html index db3550d6..b8dc9e55 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__time_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__time_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -95,7 +95,7 @@
azx_gnu_sys_time.h
-Go to the documentation of this file.
1 /*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/
+Go to the documentation of this file.
1 /*Copyright (C) 2022 Telit Communications S.p.A. Italy - All Rights Reserved.*/
2 /* See LICENSE file in the project root for full license information. */
3 
23 #ifndef HDR_AZX_GNU_SYS_TIME_H_
diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__types_8h.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__types_8h.html index 45d02272..b69ea8b4 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__types_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__types_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -104,30 +104,6 @@

Go to the source code of this file.

- - - - - - - - - - - - - - - -

-Macros

-#define __u_char_defined
 
-#define __u_short_defined
 
-#define __u_int_defined
 
-#define __u_long_defined
 
-#define _BSDTYPES_DEFINED
 
-#define fd_set   M2MB_SOCKET_BSD_FD_SET_T
 
-#define fds_bits   fd_array
 
@@ -95,7 +95,7 @@
azx_gnu_sys_types.h
-Go to the documentation of this file.
1 /*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/
+Go to the documentation of this file.
1 /*Copyright (C) 2022 Telit Communications S.p.A. Italy - All Rights Reserved.*/
2 /* See LICENSE file in the project root for full license information. */
3 
23 #ifndef HDR_AZX_GNU_SYS_TYPES_H_
@@ -123,12 +123,7 @@
45  #define _BSDTYPES_DEFINED
46  #endif
47 
-
48  #undef fd_set
-
49  #define fd_set M2MB_SOCKET_BSD_FD_SET_T
-
50  #undef fds_bits
-
51  #define fds_bits fd_array
-
52 
-
53 #endif /* HDR_AZX_GNU_SYS_TYPES_H_ */
+
48 #endif /* HDR_AZX_GNU_SYS_TYPES_H_ */
diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__time_8h.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__time_8h.html new file mode 100644 index 00000000..55ac4663 --- /dev/null +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__time_8h.html @@ -0,0 +1,175 @@ + + + + + + + + +AZX (AppZone eXtensions) documentation: hdr/azx_gnu_time.h File Reference + + + + + + + + + + + + + + + + +
+
+

Typedefs

diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__types_8h.js b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__types_8h.js index 525bdbc3..6466ddc1 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__types_8h.js +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__types_8h.js @@ -5,8 +5,6 @@ var azx__gnu__sys__types_8h = [ "__u_long_defined", "azx__gnu__sys__types_8h.html#aa533eb809f1d84d5be96986d09c3d82c", null ], [ "__u_short_defined", "azx__gnu__sys__types_8h.html#acc6532a77aea8a0cc93a3595abcbe2b2", null ], [ "_BSDTYPES_DEFINED", "azx__gnu__sys__types_8h.html#a1a4e27cc21ecdbd9a738a8e9e340e4fd", null ], - [ "fd_set", "azx__gnu__sys__types_8h.html#a7acea921b59df1dc48b89b21ecfa446b", null ], - [ "fds_bits", "azx__gnu__sys__types_8h.html#adc54b31687655b483505806432677ba5", null ], [ "u_char", "azx__gnu__sys__types_8h.html#ae2b02ed168fc99cff3851603910b1fb6", null ], [ "u_int", "azx__gnu__sys__types_8h.html#ac319c165d52643e43249fe003e18bdf3", null ], [ "u_long", "azx__gnu__sys__types_8h.html#a8f25a50daf29ce2cee1ec038a4d744ea", null ], diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__types_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__types_8h_source.html index 20cb79b2..049af63c 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__types_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__sys__types_8h_source.html @@ -34,7 +34,7 @@
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
+ + + + + + +
+
AZX (AppZone eXtensions) documentation +  1.1.19-CxL +
+
A set of companion utilities that make AZ development easier
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
azx_gnu_time.h File Reference
+
+
+ +

gnu definition +More...

+ +

Go to the source code of this file.

+ + + + +

+Macros

+#define time(a)   azx_gnu_time(a)
 
+ + + + +

+Functions

time_t azx_gnu_time (time_t *_timer)
 Returns a timestamp from unix epoch. More...
 
+

Detailed Description

+

gnu definition

+

azx_gnu_time.h

+

Porting from gnu to azx

+
Note
Dependencies: m2mb_types.h m2mb_os_api.h time.h
+
Author
Cristina Desogus
+
Date
11/08/2022
+

Function Documentation

+ +

◆ azx_gnu_time()

+ +
+
+ + + + + + + + +
time_t azx_gnu_time (time_t * _timer)
+
+ +

Returns a timestamp from unix epoch.

+
Parameters
+ + +
[in]timertime_t pointer
+
+
+
Returns
0 on SUCCESS -1 on FAILURE
+ +
+
+
+
+ + + + + diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__time_8h.js b/LE910Cx_L/AZX_Docs/html/azx__gnu__time_8h.js new file mode 100644 index 00000000..1927e742 --- /dev/null +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__time_8h.js @@ -0,0 +1,5 @@ +var azx__gnu__time_8h = +[ + [ "time", "azx__gnu__time_8h.html#a741d2f756974dfed4ae89371e756b691", null ], + [ "azx_gnu_time", "azx__gnu__time_8h.html#ab68282a0ebc9708c3f162008d1b6a0f9", null ] +]; \ No newline at end of file diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__time_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__time_8h_source.html new file mode 100644 index 00000000..8ae7b9c7 --- /dev/null +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__time_8h_source.html @@ -0,0 +1,151 @@ + + + + + + + + +AZX (AppZone eXtensions) documentation: hdr/azx_gnu_time.h Source File + + + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
AZX (AppZone eXtensions) documentation +  1.1.19-CxL +
+
A set of companion utilities that make AZ development easier
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
azx_gnu_time.h
+
+
+Go to the documentation of this file.
1 /*Copyright (C) 2022 Telit Communications S.p.A. Italy - All Rights Reserved.*/
+
2 /* See LICENSE file in the project root for full license information. */
+
3 
+
26 #ifndef HDR_AZX_GNU_TIME_H_
+
27 #define HDR_AZX_GNU_TIME_H_
+
28 
+
29 
+
30 #ifdef __cplusplus
+
31 extern "C"
+
32 {
+
33 #endif
+
34 
+
35 /* Global defines ================================================================================*/
+
36 
+
37 #undef time
+
38 #define time(a) azx_gnu_time(a)
+
39 
+
40 
+
41 /* Function prototypes ====================================================================*/
+
42 
+
43 /*-----------------------------------------------------------------------------------------------*/
+
58 /*-----------------------------------------------------------------------------------------------*/
+
59 time_t azx_gnu_time(time_t *_timer);
+
60 
+
61 
+
62 
+
63 #ifdef __cplusplus
+
64 }
+
65 #endif
+
66 
+
67 #endif /* HDR_AZX_GNU_TIME_H_ */
+
+
+
time_t azx_gnu_time(time_t *_timer)
Returns a timestamp from unix epoch.
+ + + + + diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h.html index 16e23e1b..ef4f7e03 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -102,17 +102,21 @@

gnu definition More...

#include <unistd.h>
+#include <sys/types.h>
#include "m2mb_types.h"
+#include "m2mb_os_api.h"
#include "m2mb_fs_posix.h"
Include dependency graph for azx_gnu_unistd.h:
- + - - + + + +
@@ -138,12 +142,18 @@ #define lseek   m2mb_fs_lseek   + +#define sleep   azx_gnu_sleep +  + +

Functions

int azx_gnu_chown (const char *__path, uid_t __owner, gid_t __group)
 chown More...
 
+unsigned azx_gnu_sleep (unsigned int seconds)
 

Detailed Description

gnu definition

diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h.js b/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h.js index 3b767dc2..fd8dbb47 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h.js +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h.js @@ -4,7 +4,9 @@ var azx__gnu__unistd_8h = [ "close", "azx__gnu__unistd_8h.html#a9c7f6d5331abb2692a876d5ee67474b7", null ], [ "lseek", "azx__gnu__unistd_8h.html#a160e48b6f44d4559f0859360a340cf23", null ], [ "read", "azx__gnu__unistd_8h.html#a68dc4fd7189d34e2052e25ada13f89e0", null ], + [ "sleep", "azx__gnu__unistd_8h.html#acc8612feeec5f569b1e096e3110d0dca", null ], [ "unlink", "azx__gnu__unistd_8h.html#a1865e3e4dbf6644059d3e46946f7763e", null ], [ "write", "azx__gnu__unistd_8h.html#ac40a1eaac5f8dbc1eef9b944d494770c", null ], - [ "azx_gnu_chown", "azx__gnu__unistd_8h.html#a0df411b3596f1d5f25031fce69c5f696", null ] + [ "azx_gnu_chown", "azx__gnu__unistd_8h.html#a0df411b3596f1d5f25031fce69c5f696", null ], + [ "azx_gnu_sleep", "azx__gnu__unistd_8h.html#a987f57aa1eaeedf6d097359e95505478", null ] ]; \ No newline at end of file diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h__incl.md5 b/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h__incl.md5 index 7ff6f69b..3f54e0e7 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h__incl.md5 +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h__incl.md5 @@ -1 +1 @@ -ddb13d8326f7ba27f4aa517b1facce1b \ No newline at end of file +a275c1a50fc100e4dae6265bcf54d1df \ No newline at end of file diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h__incl.png b/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h__incl.png index e073ce0b..b606c2da 100644 Binary files a/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h__incl.png and b/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h__incl.png differ diff --git a/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h_source.html index 2bcd5902..c193e174 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__gnu__unistd_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -95,51 +95,69 @@
azx_gnu_unistd.h
-Go to the documentation of this file.
1 /*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/
+Go to the documentation of this file.
1 /*Copyright (C) 2022 Telit Communications S.p.A. Italy - All Rights Reserved.*/
2 /* See LICENSE file in the project root for full license information. */
3 
23 #ifndef HDR_AZX_GNU_UNISTD_H_
24 #define HDR_AZX_GNU_UNISTD_H_
25 
-
26 #ifdef __cplusplus
-
27 extern "C"
-
28 {
-
29 #endif
-
30 
-
31 /* Include files ================================================================================*/
-
32 #ifndef _ARMABI
+
26 /* Include files ================================================================================*/
+
27 #ifdef __cplusplus
+
28 extern "C"
+
29 {
+
30 #endif
+
31 #ifndef _ARMABI
+
32 #ifndef M2M_M2MB_FS_STDIO_H
33 #include <unistd.h>
34 #endif
-
35 
-
36 #include "m2mb_types.h"
-
37 #include "m2mb_fs_posix.h"
-
38 
-
39 /* Global defines ================================================================================*/
-
40 
-
41 #define read m2mb_fs_read
-
42 #define write m2mb_fs_write
-
43 #define close m2mb_fs_close
+
35 #endif
+
36 
+
37 
+
38 #undef S_ISUID
+
39 #undef S_ISGID
+
40 #undef S_ISVTX
+
41 #ifndef _ARMABI
+
42 #include <sys/types.h>
+
43 #endif
44 
-
45 #undef chown
-
46 #define chown azx_gnu_chown
-
47 
-
48 #undef unlink
-
49 #define unlink m2mb_fs_unlink
-
50 
-
51 #undef lseek
-
52 #define lseek m2mb_fs_lseek
-
53 
-
54 /* Function prototypes ====================================================================*/
+
45 #include "m2mb_types.h"
+
46 #include "m2mb_os_api.h"
+
47 #include "m2mb_fs_posix.h"
+
48 
+
49 
+
50 /* Global defines ================================================================================*/
+
51 
+
52 #define read m2mb_fs_read
+
53 #define write m2mb_fs_write
+
54 #define close m2mb_fs_close
55 
-
56 /*-----------------------------------------------------------------------------------------------*/
-
77 /*-----------------------------------------------------------------------------------------------*/
-
78 int azx_gnu_chown(const char *__path, uid_t __owner, gid_t __group);
-
79 
-
80 #ifdef __cplusplus
-
81 }
-
82 #endif
-
83 
-
84 #endif /* HDR_AZX_GNU_UNISTD_H_ */
+
56 #undef chown
+
57 #define chown azx_gnu_chown
+
58 
+
59 #ifndef M2M_M2MB_FS_STDIO_H
+
60 #undef unlink
+
61 #define unlink m2mb_fs_unlink
+
62 #endif
+
63 
+
64 #undef lseek
+
65 #define lseek m2mb_fs_lseek
+
66 
+
67 #undef sleep
+
68 #define sleep azx_gnu_sleep
+
69 
+
70 /* Function prototypes ====================================================================*/
+
71 
+
72 /*-----------------------------------------------------------------------------------------------*/
+
93 /*-----------------------------------------------------------------------------------------------*/
+
94 int azx_gnu_chown(const char *__path, uid_t __owner, gid_t __group);
+
95 
+
96 unsigned azx_gnu_sleep(unsigned int seconds);
+
97 
+
98 #ifdef __cplusplus
+
99 }
+
100 #endif
+
101 
+
102 #endif /* HDR_AZX_GNU_UNISTD_H_ */
azx_gnu_chown
int azx_gnu_chown(const char *__path, uid_t __owner, gid_t __group)
chown
diff --git a/LE910Cx_L/AZX_Docs/html/azx__https_8h.html b/LE910Cx_L/AZX_Docs/html/azx__https_8h.html index 7491302a..8f09b2ce 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__https_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__https_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -93,6 +93,7 @@
Data Structures | +Macros | Typedefs | Enumerations | Functions
@@ -128,6 +129,12 @@ + + + + @@ -148,9 +155,9 @@ typedef enum _HTTP_AUTH_SCHEMA  - - - + + + @@ -197,6 +204,9 @@ + + + @@ -206,11 +216,11 @@

Macros

+#define AZX_HTTP_OK   200
 
+#define AZX_HTTP_CLIENT_CLOSED_REQUEST   499
 
Header defines

These defines are related to HTTP header info

AZX_HTTP_AUTH_SCHEMA
 HTTP Supported authentication methods.
 
typedef INT32(* AZX_HTTPS_USER_CB) (void *, UINT32, INT8 *)
 User callback prototype. More...
 
typedef INT32(* AZX_HTTPS_USER_CB) (void *, UINT32, void *)
 User callback prototype. More...
 
typedef void(* user_base64_encode) (UINT8 *out, const UINT8 *in, int inlen)
 User base 64 encoder function prototype. More...
 
int azx_http_post (AZX_HTTP_INFO *hi, char *url)
 Run a HTTP POST request. More...
 
int azx_http_post_file (AZX_HTTP_INFO *hi, char *url, char *filepath)
 Run a HTTP POST request for a local file. More...
 
void azx_http_setCB (AZX_HTTP_INFO *hi, azx_httpCallbackOptions http_cb)
 Sets user callback. More...
 

Detailed Description

HTTPs client.

-
Version
1.1.1
+
Version
2.1.0
Dependencies
azx_string_utils gnu azx_base64

Porting of HTTPs client from https://github.com/HISONA/https_client

Note
Dependencies: m2mb_types.h m2mb_socket.h m2mb_ssl.h
-
Author
Luca Boi Fabio Pintus (AZX conversion)
+
Author
Luca Boi Fabio Pintus (AZX conversion and improvements)
Date
11/09/2020
diff --git a/LE910Cx_L/AZX_Docs/html/azx__https_8h.js b/LE910Cx_L/AZX_Docs/html/azx__https_8h.js index 868e002a..93c2a6a6 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__https_8h.js +++ b/LE910Cx_L/AZX_Docs/html/azx__https_8h.js @@ -1,13 +1,15 @@ var azx__https_8h = [ [ "AZX_HTTP_OPTIONS", "struct_a_z_x___h_t_t_p___o_p_t_i_o_n_s.html", "struct_a_z_x___h_t_t_p___o_p_t_i_o_n_s" ], + [ "AZX_HTTP_CLIENT_CLOSED_REQUEST", "azx__https_8h.html#a03446e974b457891ff3e6df6e90c7a53", null ], [ "AZX_HTTP_H_CHUNK_SIZE", "group__http_usage.html#ga1eb3cd56e8853af0fa05eac66e5c170f", null ], [ "AZX_HTTP_H_FIELD_SIZE", "group__http_usage.html#ga9567e818e1e8bcdf8df7efbf5c99c2d4", null ], [ "AZX_HTTP_H_READ_SIZE", "group__http_usage.html#gaa86e4372eae59c09495c49a8117b4738", null ], + [ "AZX_HTTP_OK", "azx__https_8h.html#a7aaabb76612f8a55daa900cae6faa2a2", null ], [ "AZX_HTTP_AUTH_SCHEMA", "group__http_conf.html#gafb5cf49a7418b6b306a91aca97342df3", null ], [ "AZX_HTTP_METHOD", "group__http_conf.html#gac324733f55c37381f15963897b55dd68", null ], [ "azx_httpDebugHook", "group__http_conf.html#gae45c5ce7ad62c080a02504578c721840", null ], - [ "AZX_HTTPS_USER_CB", "group__http_conf.html#gaaad9f441f95bdedecbd30f8145df2585", null ], + [ "AZX_HTTPS_USER_CB", "group__http_conf.html#gad57846e79605499b70bd0562684f4948", null ], [ "user_base64_encode", "group__http_conf.html#ga3cb8375a9c231c36d41bcc6390f26890", null ], [ "_AZX_HTTP_METHOD", "group__http_conf.html#ga30623080daf9875d7ef4a53282de1ac0", [ [ "AZX_HTTP_GET", "group__http_conf.html#gga30623080daf9875d7ef4a53282de1ac0ae405fbb86fb9b0c85f7413e63ba650e6", null ], @@ -30,6 +32,7 @@ var azx__https_8h = [ "azx_http_head", "group__http_usage.html#ga5717de1767a336a315469ea5c2c8e0a8", null ], [ "azx_http_initialize", "group__http_conf.html#gae9912e7808e5d0674afa85487ec85387", null ], [ "azx_http_post", "group__http_usage.html#ga468c6015a239492a88c0c530fe73d973", null ], + [ "azx_http_post_file", "group__http_usage.html#ga296106c2ccb99b6c3f37cefe8bd75b2b", null ], [ "azx_http_setCB", "group__http_conf.html#ga0e2abd820dff5b4f020b1b70d797b249", null ], [ "azx_http_SSLInit", "group__http_conf.html#gae40751f148308705cd22ee69282afbe8", null ] ]; \ No newline at end of file diff --git a/LE910Cx_L/AZX_Docs/html/azx__https_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__https_8h_source.html index 92e09b87..1df6a5bb 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__https_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__https_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -95,20 +95,21 @@
azx_https.h
-Go to the documentation of this file.
1 /*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/
+Go to the documentation of this file.
1 /*Copyright (C) 2022 Telit Communications S.p.A. Italy - All Rights Reserved.*/
2 /* See LICENSE file in the project root for full license information. */
3 
4 
5 #ifndef AZX_HTTPS_CLIENT_H
6 #define AZX_HTTPS_CLIENT_H
7 
-
42 /* Global declarations =======================================================*/
-
43 
-
50 #define AZX_HTTP_H_FIELD_SIZE 512
-
51 #define AZX_HTTP_H_READ_SIZE 2048
-
52 #define AZX_HTTP_H_CHUNK_SIZE 50 //close addtogroup
-
55 
-
56 
+
41 /* Global declarations =======================================================*/
+
42 
+
49 #define AZX_HTTP_H_FIELD_SIZE 512
+
50 #define AZX_HTTP_H_READ_SIZE 2048
+
51 #define AZX_HTTP_H_CHUNK_SIZE 50 //close addtogroup
+
54 
+
55 #define AZX_HTTP_OK 200
+
56 #define AZX_HTTP_CLIENT_CLOSED_REQUEST 499
57 
58 /* Global typedefs ===========================================================*/
59 //typedef unsigned char BOOL; /**< Boolean value*/
@@ -143,207 +144,214 @@
108  char user_agent[AZX_HTTP_H_FIELD_SIZE];
109  char location[AZX_HTTP_H_FIELD_SIZE];
110  char referrer[AZX_HTTP_H_FIELD_SIZE];
-
111  char boundary[AZX_HTTP_H_FIELD_SIZE];
-
112  char accept_type[AZX_HTTP_H_FIELD_SIZE];
-
113  char *post_data;
-
114  char *cookie;
- - -
117 
+
111  char accept_type[AZX_HTTP_H_FIELD_SIZE];
+
112  char *post_data;
+
113  char *cookie;
+ + +
118 
-
131 /*-----------------------------------------------------------------------------------------------*/
-
132 typedef struct
-
133 {
-
134  M2MB_SSL_CTXT_HANDLE sslH;
-
135  M2MB_SSL_CONFIG_HANDLE sslConf;
-
136  M2MB_SSL_AUTH_TYPE_E sslAuthType;
-
137  CHAR
- -
139  CHAR
- -
141  CHAR
- -
143 } AZX_HTTP_SSL;
-
144 
+
119 
+
132 /*-----------------------------------------------------------------------------------------------*/
+
133 typedef struct
+
134 {
+
135  M2MB_SSL_CTXT_HANDLE sslH;
+
136  M2MB_SSL_CONFIG_HANDLE sslConf;
+
137  M2MB_SSL_AUTH_TYPE_E sslAuthType;
+
138  CHAR
+ +
140  CHAR
+ +
142  CHAR
+ +
144 } AZX_HTTP_SSL;
145 
-
158 /*-----------------------------------------------------------------------------------------------*/
-
159 typedef struct
-
160 {
-
161 
-
162  int https;
-
163  char host[256];
-
164  int port;
- -
166  char auth_credentials[256];
-
167 } AZX_HTTP_URL;
-
168 
-
169 /* The required option to correctly use the callback function */
-
170 
-
194 /*-----------------------------------------------------------------------------------------------*/
-
195 typedef INT32( *AZX_HTTPS_USER_CB )( void *, UINT32, INT8 * );
-
196 
+
146 
+
159 /*-----------------------------------------------------------------------------------------------*/
+
160 typedef struct
+
161 {
+
162 
+
163  int https;
+
164  char host[256];
+
165  int port;
+ +
167  char auth_credentials[256];
+
168 } AZX_HTTP_URL;
+
169 
+
170 /* The required option to correctly use the callback function */
+
171 
+
195 /*-----------------------------------------------------------------------------------------------*/
+
196 typedef INT32( *AZX_HTTPS_USER_CB )( void *, UINT32, void * );
197 
-
218 /*-----------------------------------------------------------------------------------------------*/
-
219 typedef void (*user_base64_encode)( UINT8 *out, const UINT8 *in, int inlen );
-
220 
-
233 /*-----------------------------------------------------------------------------------------------*/
-
234 typedef struct
-
235 {
-
236  UINT32
- -
238  void
- -
240  INT8
- - - -
244 
-
257 /*-----------------------------------------------------------------------------------------------*/
-
258 typedef struct
-
259 {
-
260  int ssl_fd;
-
261  int sck_fd;
-
263  AZX_HTTP_URL url;
-
265  AZX_HTTP_HEADER request;
-
266  AZX_HTTP_HEADER response;
-
267  AZX_HTTP_SSL tls;
-
269  UINT32 length;
-
270  BOOLEAN header_end;
-
271  BOOLEAN body_start;
-
272  azx_httpCallbackOptions http_cb;
-
273  user_base64_encode user_b64encode;
-
274  long r_len;
-
275  long r_size;
-
276  char *w_buf;
-
277  long w_len;
-
279  long chunk_buf_len;
-
280  char r_buf[AZX_HTTP_H_READ_SIZE];
-
281  char chunk_size_buf[AZX_HTTP_H_CHUNK_SIZE];
-
283 } AZX_HTTP_INFO;
-
284 
+
198 
+
219 /*-----------------------------------------------------------------------------------------------*/
+
220 typedef void (*user_base64_encode)( UINT8 *out, const UINT8 *in, int inlen );
+
221 
+
234 /*-----------------------------------------------------------------------------------------------*/
+
235 typedef struct
+
236 {
+
237  UINT32
+ +
239  void
+ +
241  void
+
242  *cbArg;
+ + +
245 
+
258 /*-----------------------------------------------------------------------------------------------*/
+
259 typedef struct
+
260 {
+
261  int ssl_fd;
+
262  int sck_fd;
+
264  AZX_HTTP_URL url;
+
266  AZX_HTTP_HEADER request;
+
267  AZX_HTTP_HEADER response;
+
268  AZX_HTTP_SSL tls;
+
270  UINT32 length;
+
271  BOOLEAN header_end;
+
272  BOOLEAN body_start;
+
273  azx_httpCallbackOptions http_cb;
+
274  user_base64_encode user_b64encode;
+
275  long r_len;
+
276  long r_size;
+
277  char *w_buf;
+
278  long w_len;
+
280  long chunk_buf_len;
+
281  char r_buf[AZX_HTTP_H_READ_SIZE];
+
282  char chunk_size_buf[AZX_HTTP_H_CHUNK_SIZE];
+
284 } AZX_HTTP_INFO;
285 
286 
-
291 typedef enum
-
292 {
- - - - - -
298 
+
287 
+
292 typedef enum
+
293 {
+ + + + +
299 
300 
-
301 /* Global functions ==========================================================*/
-
302 
-
376 /*-----------------------------------------------------------------------------------------------*/
-
377 typedef int ( *azx_httpDebugHook )( AZX_HTTP_LOG_HOOK_LEVELS_E level, const char *function,
-
378  const char *file, int line, const char *fmt, ... );
-
379 
-
392 /*-----------------------------------------------------------------------------------------------*/
-
393 typedef struct
-
394 {
-
395  unsigned char cid;
+
301 
+
302 /* Global functions ==========================================================*/
+
303 
+
377 /*-----------------------------------------------------------------------------------------------*/
+
378 typedef int ( *azx_httpDebugHook )( AZX_HTTP_LOG_HOOK_LEVELS_E level, const char *function,
+
379  const char *file, int line, const char *fmt, ... );
+
380 
+
393 /*-----------------------------------------------------------------------------------------------*/
+
394 typedef struct
+
395 {
- -
398  void *logArg;
-
399  int padding;
- -
401 
-
403 extern AZX_HTTP_OPTIONS *hi_struct;
-
404 
-
405 #define AZX_HTTP_LOG(l,a...) ({ { if(hi_struct->loglevel >= l && hi_struct->logFunc) {hi_struct->logFunc(l, __FUNCTION__, __FILE__, __LINE__, a);}}})
-
406 
-
408 /*-----------------------------------------------------------------------------------------------*/
-
441 /*-----------------------------------------------------------------------------------------------*/
-
442 int azx_http_SSLInit( AZX_HTTP_SSL *sslInfo );
-
443 
-
444 /*-----------------------------------------------------------------------------------------------*/
-
474 /*-----------------------------------------------------------------------------------------------*/
- -
476 
-
477 /*-----------------------------------------------------------------------------------------------*/
-
509 /*-----------------------------------------------------------------------------------------------*/
-
510 int azx_http_get( AZX_HTTP_INFO *hi, char *url );
-
516 /*-----------------------------------------------------------------------------------------------*/
-
547 /*-----------------------------------------------------------------------------------------------*/
-
548 int azx_http_head( AZX_HTTP_INFO *hi, char *url );
-
549 /*-----------------------------------------------------------------------------------------------*/
-
550 
-
585 /*-----------------------------------------------------------------------------------------------*/
-
586 int azx_http_post( AZX_HTTP_INFO *hi, char *url );
-
587 /*-----------------------------------------------------------------------------------------------*/
-
634 /*-----------------------------------------------------------------------------------------------*/
- -
636 
-
637 
-
655 /*-----------------------------------------------------------------------------------------------*/
-
656 UINT8 azx_http_getCID( void );
-
657 
-
658 
-
659 #endif //AZX_HTTPS_CLIENT_H
-
660 
+ +
398  void *logArg;
+
399  unsigned char cid;
+
400  int padding;
+ +
402 
+
404 extern AZX_HTTP_OPTIONS *hi_struct;
+
405 
+
406 #define AZX_HTTP_LOG(l,a...) { if(hi_struct->loglevel >= l && hi_struct->logFunc) {hi_struct->logFunc(l, __FUNCTION__, __FILE__, __LINE__, a);}}
+
407 
+
409 /*-----------------------------------------------------------------------------------------------*/
+
442 /*-----------------------------------------------------------------------------------------------*/
+
443 int azx_http_SSLInit( AZX_HTTP_SSL *sslInfo );
+
444 
+
445 /*-----------------------------------------------------------------------------------------------*/
+
475 /*-----------------------------------------------------------------------------------------------*/
+ +
477 
+
478 /*-----------------------------------------------------------------------------------------------*/
+
514 /*-----------------------------------------------------------------------------------------------*/
+
515 int azx_http_get( AZX_HTTP_INFO *hi, char *url );
+
521 /*-----------------------------------------------------------------------------------------------*/
+
552 /*-----------------------------------------------------------------------------------------------*/
+
553 int azx_http_head( AZX_HTTP_INFO *hi, char *url );
+
554 /*-----------------------------------------------------------------------------------------------*/
+
555 
+
591 /*-----------------------------------------------------------------------------------------------*/
+
592 int azx_http_post( AZX_HTTP_INFO *hi, char *url );
+
593 /*-----------------------------------------------------------------------------------------------*/
+
594 
+
628 /*-----------------------------------------------------------------------------------------------*/
+
629 int azx_http_post_file( AZX_HTTP_INFO *hi, char *url, char *filepath);
+
630 /*-----------------------------------------------------------------------------------------------*/
+
631 
+
685 /*-----------------------------------------------------------------------------------------------*/
+ +
687 
+
688 
+
706 /*-----------------------------------------------------------------------------------------------*/
+
707 UINT8 azx_http_getCID( void );
+
708 
+
709 
+
710 #endif //AZX_HTTPS_CLIENT_H
+
711 
azx_http_setCB
void azx_http_setCB(AZX_HTTP_INFO *hi, azx_httpCallbackOptions http_cb)
Sets user callback.
+
azx_httpCallbackOptions::cbArg
void * cbArg
Definition: azx_https.h:242
AZX_HTTP_OPTIONS::logFunc
azx_httpDebugHook logFunc
Definition: azx_https.h:397
AZX_HTTP_GET
Definition: azx_https.h:69
-
AZX_HTTP_INFO
The HTTP operation structure.
Definition: azx_https.h:258
-
AZX_HTTP_HEADER::cookie
char * cookie
Definition: azx_https.h:114
+
AZX_HTTP_INFO
The HTTP operation structure.
Definition: azx_https.h:259
+
AZX_HTTP_HEADER::cookie
char * cookie
Definition: azx_https.h:113
azx_http_SSLInit
int azx_http_SSLInit(AZX_HTTP_SSL *sslInfo)
Initialize SSL data.
_HTTP_AUTH_SCHEMA
_HTTP_AUTH_SCHEMA
HTTP Supported authentication methods.
Definition: azx_https.h:79
-
AZX_HTTP_LOG_DEBUG
Definition: azx_https.h:296
-
AZX_HTTP_LOG_ERROR
Definition: azx_https.h:294
-
azx_httpDebugHook
int(* azx_httpDebugHook)(AZX_HTTP_LOG_HOOK_LEVELS_E level, const char *function, const char *file, int line, const char *fmt,...)
Debug callback that is called by the library to for debug purposes.
Definition: azx_https.h:377
-
AZX_HTTP_OPTIONS::padding
int padding
Definition: azx_https.h:399
+
AZX_HTTP_LOG_DEBUG
Definition: azx_https.h:297
+
AZX_HTTP_LOG_ERROR
Definition: azx_https.h:295
+
azx_httpDebugHook
int(* azx_httpDebugHook)(AZX_HTTP_LOG_HOOK_LEVELS_E level, const char *function, const char *file, int line, const char *fmt,...)
Debug callback that is called by the library to for debug purposes.
Definition: azx_https.h:378
+
AZX_HTTP_OPTIONS::padding
int padding
Definition: azx_https.h:400
AZX_HTTP_AUTH_SCHEMA
enum _HTTP_AUTH_SCHEMA AZX_HTTP_AUTH_SCHEMA
HTTP Supported authentication methods.
-
AZX_HTTP_H_READ_SIZE
#define AZX_HTTP_H_READ_SIZE
Definition: azx_https.h:51
+
AZX_HTTP_H_READ_SIZE
#define AZX_HTTP_H_READ_SIZE
Definition: azx_https.h:50
AZX_HTTP_POST
Definition: azx_https.h:70
-
AZX_HTTP_HEADER::post_data
char * post_data
Definition: azx_https.h:113
-
AZX_HTTP_SSL::CLIENT_KEY_FILEPATH
CHAR * CLIENT_KEY_FILEPATH
Definition: azx_https.h:142
-
AZX_HTTP_SSL::CA_CERT_FILEPATH
CHAR * CA_CERT_FILEPATH
Definition: azx_https.h:138
+
AZX_HTTP_HEADER::post_data
char * post_data
Definition: azx_https.h:112
+
AZX_HTTP_SSL::CLIENT_KEY_FILEPATH
CHAR * CLIENT_KEY_FILEPATH
Definition: azx_https.h:143
+
AZX_HTTP_SSL::CA_CERT_FILEPATH
CHAR * CA_CERT_FILEPATH
Definition: azx_https.h:139
AZX_HTTP_HEADER::status
int status
Definition: azx_https.h:103
azx_AuthSchemaBasic
Definition: azx_https.h:82
-
azx_httpCallbackOptions
The HTTP callback options structure.
Definition: azx_https.h:234
+
azx_httpCallbackOptions
The HTTP callback options structure.
Definition: azx_https.h:235
+
AZX_HTTPS_USER_CB
INT32(* AZX_HTTPS_USER_CB)(void *, UINT32, void *)
User callback prototype.
Definition: azx_https.h:196
azx_AuthNotSupported
Definition: azx_https.h:83
azx_http_initialize
void azx_http_initialize(AZX_HTTP_OPTIONS *opts)
Initialize HTTPs client parameters.
-
AZX_HTTP_LOG_NONE
Definition: azx_https.h:293
-
AZX_HTTP_H_FIELD_SIZE
#define AZX_HTTP_H_FIELD_SIZE
Definition: azx_https.h:50
-
AZX_HTTP_SSL::sslAuthType
M2MB_SSL_AUTH_TYPE_E sslAuthType
Definition: azx_https.h:136
+
AZX_HTTP_LOG_NONE
Definition: azx_https.h:294
+
AZX_HTTP_H_FIELD_SIZE
#define AZX_HTTP_H_FIELD_SIZE
Definition: azx_https.h:49
+
AZX_HTTP_SSL::sslAuthType
M2MB_SSL_AUTH_TYPE_E sslAuthType
Definition: azx_https.h:137
AZX_HTTP_HEADER::method
AZX_HTTP_METHOD method
Definition: azx_https.h:101
-
AZX_HTTP_LOG_INFO
Definition: azx_https.h:295
+
AZX_HTTP_LOG_INFO
Definition: azx_https.h:296
AZX_HTTP_HEADER::chunked
BOOLEAN chunked
Definition: azx_https.h:106
-
azx_httpCallbackOptions::cbEvtFlag
INT8 * cbEvtFlag
Definition: azx_https.h:241
-
AZX_HTTP_URL::https
int https
Definition: azx_https.h:162
-
azx_httpCallbackOptions::cbData
void * cbData
Definition: azx_https.h:239
-
user_base64_encode
void(* user_base64_encode)(UINT8 *out, const UINT8 *in, int inlen)
User base 64 encoder function prototype.
Definition: azx_https.h:219
+
AZX_HTTP_URL::https
int https
Definition: azx_https.h:163
+
azx_httpCallbackOptions::cbData
void * cbData
Definition: azx_https.h:240
+
user_base64_encode
void(* user_base64_encode)(UINT8 *out, const UINT8 *in, int inlen)
User base 64 encoder function prototype.
Definition: azx_https.h:220
azx_http_head
int azx_http_head(AZX_HTTP_INFO *hi, char *url)
Run a HTTP HEAD request.
AZX_HTTP_HEADER
HTTP header structure.
Definition: azx_https.h:99
+
AZX_HTTP_HEADER::content_range
char * content_range
Definition: azx_https.h:115
_AZX_HTTP_METHOD
_AZX_HTTP_METHOD
HTTP Supported methods.
Definition: azx_https.h:67
-
AZX_HTTPS_USER_CB
INT32(* AZX_HTTPS_USER_CB)(void *, UINT32, INT8 *)
User callback prototype.
Definition: azx_https.h:195
AZX_HTTP_HEADER::auth_type
AZX_HTTP_AUTH_SCHEMA auth_type
Definition: azx_https.h:102
-
AZX_HTTP_LOG_HOOK_LEVELS_E
AZX_HTTP_LOG_HOOK_LEVELS_E
HTTP Log global level.
Definition: azx_https.h:291
-
AZX_HTTP_OPTIONS
Definition: azx_https.h:393
-
azx_httpCallbackOptions::user_cb_bytes_size
UINT32 user_cb_bytes_size
Definition: azx_https.h:237
-
AZX_HTTP_H_CHUNK_SIZE
#define AZX_HTTP_H_CHUNK_SIZE
Definition: azx_https.h:52
-
AZX_HTTP_OPTIONS::cid
unsigned char cid
Definition: azx_https.h:395
+
AZX_HTTP_LOG_HOOK_LEVELS_E
AZX_HTTP_LOG_HOOK_LEVELS_E
HTTP Log global level.
Definition: azx_https.h:292
+
AZX_HTTP_OPTIONS
Definition: azx_https.h:394
+
azx_httpCallbackOptions::user_cb_bytes_size
UINT32 user_cb_bytes_size
Definition: azx_https.h:238
+
AZX_HTTP_H_CHUNK_SIZE
#define AZX_HTTP_H_CHUNK_SIZE
Definition: azx_https.h:51
+
AZX_HTTP_OPTIONS::cid
unsigned char cid
Definition: azx_https.h:399
azx_AuthSchemaNone
Definition: azx_https.h:81
azx_http_get
int azx_http_get(AZX_HTTP_INFO *hi, char *url)
Run a HTTP GET request.
-
AZX_HTTP_URL
HTTP URL structure.
Definition: azx_https.h:159
-
AZX_HTTP_URL::port
int port
Definition: azx_https.h:164
+
AZX_HTTP_URL
HTTP URL structure.
Definition: azx_https.h:160
+
AZX_HTTP_URL::port
int port
Definition: azx_https.h:165
AZX_HTTP_HEADER::close
BOOLEAN close
Definition: azx_https.h:107
azx_http_post
int azx_http_post(AZX_HTTP_INFO *hi, char *url)
Run a HTTP POST request.
-
AZX_HTTP_HEADER::custom_fields
char * custom_fields
Definition: azx_https.h:115
+
AZX_HTTP_HEADER::custom_fields
char * custom_fields
Definition: azx_https.h:114
AZX_HTTP_OPTIONS::logArg
void * logArg
Definition: azx_https.h:398
AZX_HTTP_HEAD
Definition: azx_https.h:71
azx_http_getCID
UINT8 azx_http_getCID(void)
Return configured CID.
-
AZX_HTTP_SSL::sslConf
M2MB_SSL_CONFIG_HANDLE sslConf
Definition: azx_https.h:135
+
AZX_HTTP_SSL::sslConf
M2MB_SSL_CONFIG_HANDLE sslConf
Definition: azx_https.h:136
AZX_HTTP_HEADER::content_length
long content_length
Definition: azx_https.h:105
AZX_HTTP_METHOD
enum _AZX_HTTP_METHOD AZX_HTTP_METHOD
HTTP Supported methods.
AZX_HTTP_OPTIONS::loglevel
AZX_HTTP_LOG_HOOK_LEVELS_E loglevel
Definition: azx_https.h:396
-
AZX_HTTP_SSL
HTTP SSL structure.
Definition: azx_https.h:132
-
AZX_HTTP_SSL::CLIENT_CERT_FILEPATH
CHAR * CLIENT_CERT_FILEPATH
Definition: azx_https.h:140
-
azx_httpCallbackOptions::cbFunc
AZX_HTTPS_USER_CB cbFunc
Definition: azx_https.h:242
-
AZX_HTTP_SSL::sslH
M2MB_SSL_CTXT_HANDLE sslH
Definition: azx_https.h:134
+
AZX_HTTP_SSL
HTTP SSL structure.
Definition: azx_https.h:133
+
AZX_HTTP_SSL::CLIENT_CERT_FILEPATH
CHAR * CLIENT_CERT_FILEPATH
Definition: azx_https.h:141
+
azx_httpCallbackOptions::cbFunc
AZX_HTTPS_USER_CB cbFunc
Definition: azx_https.h:243
+
azx_http_post_file
int azx_http_post_file(AZX_HTTP_INFO *hi, char *url, char *filepath)
Run a HTTP POST request for a local file.
+
AZX_HTTP_SSL::sslH
M2MB_SSL_CTXT_HANDLE sslH
Definition: azx_https.h:135
&lfs2) != TEST_OK)
{
-
AZX_LOG_ERROR("directoryCreation failed!!\r\n");
+
AZX_LOG_ERROR("directoryCreation failed!!\r\n");
return TEST_ERROR;
}
@@ -488,7 +488,7 @@

opts.spi.op_mode_tx = SPI_OPM_TX_SING;
if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
lfsContext.context = g_chip;
@@ -518,7 +518,7 @@

&lfs2);
if (ret != LFS2_ERR_OK)
{
-
AZX_LOG_ERROR("\nError lfsMountByContext memory: err = %d \r\n", ret);
+
AZX_LOG_ERROR("\nError lfsMountByContext memory: err = %d \r\n", ret);
return TEST_ERROR;
}
...
@@ -530,7 +530,7 @@

&listContent,
&lfs2) != LFS2_ERR_OK)
{
-
AZX_LOG_ERROR("azx_lfs_flashListsContentByContext failed!!\r\n");
+
AZX_LOG_ERROR("azx_lfs_flashListsContentByContext failed!!\r\n");
return TEST_ERROR;
}
@@ -539,10 +539,10 @@

AZX_LFS_INFO_FILE_E *current = listContent;
AZX_LFS_INFO_FILE_E *prev = NULL;
-
AZX_LOG_INFO("\n\rList:\n\r");
+
AZX_LOG_INFO("\n\rList:\n\r");
do
{
-
AZX_LOG_INFO("%s, %d, %d\r\n", current->info.name, current->info.size, current->info.type);
+
AZX_LOG_INFO("%s, %d, %d\r\n", current->info.name, current->info.size, current->info.type);
prev = current;
current = current->next;
prev->next = NULL;
@@ -550,7 +550,7 @@

res = m2mb_os_free((AZX_LFS_INFO_FILE_E*) prev);
if (res != M2MB_OS_SUCCESS)
{
-
AZX_LOG_ERROR("azx_lfs_flashListsContentByContext failed!!\r\n");
+
AZX_LOG_ERROR("azx_lfs_flashListsContentByContext failed!!\r\n");
return TEST_ERROR;
}
}
@@ -641,7 +641,7 @@

opts.spi.op_mode_tx = SPI_OPM_TX_SING;
if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
lfsContext.context = g_chip;
@@ -676,7 +676,7 @@

&lfs2);
if (ret != LFS2_ERR_OK)
{
-
AZX_LOG_ERROR("\nError lfsMountByContext memory: err = %d \r\n", ret);
+
AZX_LOG_ERROR("\nError lfsMountByContext memory: err = %d \r\n", ret);
return TEST_ERROR;
}
@@ -751,10 +751,10 @@

size,
&lfs2) != LFS2_ERR_OK)
{
-
AZX_LOG_ERROR("azx_lfsReadByContext failed!!\r\n\n");
+
AZX_LOG_ERROR("azx_lfsReadByContext failed!!\r\n\n");
return TEST_ERROR;
}
-
AZX_LOG_INFO("\nFile: %s, Size: %d, Buffer: %s\r\n", "file002.txt", size, buffer);
+
AZX_LOG_INFO("\nFile: %s, Size: %d, Buffer: %s\r\n", "file002.txt", size, buffer);
@@ -833,7 +833,7 @@

opts.spi.op_mode_tx = SPI_OPM_TX_SING;
if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
lfsContext.context = g_chip;
@@ -863,14 +863,14 @@

&lfs2);
if (ret != LFS2_ERR_OK)
{
-
AZX_LOG_ERROR("\nError lfsMountByContext memory: err = %d \r\n", ret);
+
AZX_LOG_ERROR("\nError lfsMountByContext memory: err = %d \r\n", ret);
return TEST_ERROR;
}
...
if (azx_lfsRmFileByContext(&lfs2, "file001.txt") != LFS2_ERR_OK)
{
-
AZX_LOG_ERROR("azx_lfsRmFileByContext failed!!\r\n");
+
AZX_LOG_ERROR("azx_lfsRmFileByContext failed!!\r\n");
...
}
@@ -980,7 +980,7 @@

opts.spi.op_mode_tx = SPI_OPM_TX_SING;
if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
lfsContext.context = g_chip;
@@ -1016,7 +1016,7 @@

&lfs2);
if (ret != LFS2_ERR_OK)
{
-
AZX_LOG_ERROR("\nError lfsMountByContext memory: err = %d \r\n", ret);
+
AZX_LOG_ERROR("\nError lfsMountByContext memory: err = %d \r\n", ret);
return TEST_ERROR;
}
...
@@ -1033,7 +1033,7 @@

&g_context
) != LFS2_ERR_OK)
{
-
AZX_LOG_ERROR("fileCreationUtils failed!!\r\n");
+
AZX_LOG_ERROR("fileCreationUtils failed!!\r\n");
...
}
@@ -1141,7 +1141,7 @@

if (azx_ram_initialize(&g_ram, &RAM_Disk,
read_size, prog_size, block_size, block_count, block_cycles, cache_size) != LFS2_ERR_OK)
{
-
AZX_LOG_ERROR("Ram Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Ram Initialization failed!!\r\n");
return TEST_ERROR;
}
@@ -1149,7 +1149,7 @@

//free memory
if (azx_ram_releaseResources(g_ram, RAM_Disk) != LFS2_ERR_OK)
{
-
AZX_LOG_ERROR("Release Ram memory failed!!\r\n");
+
AZX_LOG_ERROR("Release Ram memory failed!!\r\n");
return TEST_ERROR;
}
@@ -1203,7 +1203,7 @@

if (azx_ram_initialize(&g_ram, &RAM_Disk,
read_size, prog_size, block_size, block_count, block_cycles, cache_size) != LFS2_ERR_OK)
{
-
AZX_LOG_ERROR("Ram Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Ram Initialization failed!!\r\n");
return TEST_ERROR;
}
@@ -1211,7 +1211,7 @@

//free memory
if (azx_ram_releaseResources(g_ram, RAM_Disk) != LFS2_ERR_OK)
{
-
AZX_LOG_ERROR("Release Ram memory failed!!\r\n");
+
AZX_LOG_ERROR("Release Ram memory failed!!\r\n");
return TEST_ERROR;
}
@@ -1223,6 +1223,7 @@

Definition: azx_spi_flash_jsc.h:120
LFS2_ERROR_T azx_ram_releaseResources(AZX_RAM_DISK_S *ptr_ram, char **disk)
azx_ram_releaseResources release memory
Definition: azx_lfs_utils.h:122
+
#define AZX_LOG_ERROR(a...)
Definition: azx_log.h:313
Definition: azx_lfs_utils.h:65
LFS2_ERROR_T azx_lfsWriteByContext(char *path, UINT32 size, UINT8 *source, AZX_LFSWRITE_MODE_E mode, lfs2_t *lfsObject, const AZX_LFS_CONTEXT_S *context)
azx_lfsWriteByContext writes a file
LFS2_ERROR_T azx_lfsDirCreationByContext(const char *dir, AZX_LFSDIR_MODE_E mode, lfs2_t *lfsObject)
azx_lfsDirCreationByContext create a directory
@@ -1237,6 +1238,7 @@

Definition: azx_lfs_utils.h:105
LFS2_ERROR_T azx_lfsMountByContext(AZX_LFSMOUNT_MODE_E mode, const AZX_LFS_CONTEXT_S *c, lfs2_t *lfsObject)
azx_lfsMountByContext mounts and/or format the partition
Definition: azx_lfs_utils.h:51
+
#define AZX_LOG_INFO(a...)
Definition: azx_log.h:321
Definition: azx_log.h:62
@@ -242,8 +248,10 @@
Definition: azx_log.h:63
Logging configuration structure.
Definition: azx_log.h:92
BOOLEAN azx_log_send_to_file(const CHAR *filename, UINT32 circular_chunks, AZX_LOG_LEVEL_E min_level, UINT32 max_size_kb)
Gets the logging component to output to a file.
+
INT32 azx_log_disableUart(void)
Puts the UART used for logs in power OFF mode.
Definition: azx_log.h:59
Definition: azx_log.h:47
+
INT32 azx_log_enableUart(void)
Puts the UART used for logs in power ON mode.
Definition: azx_log.h:79
INT32 azx_log_deinit(void)
Deinitializes the log functionality.
Definition: azx_log.h:45
diff --git a/LE910Cx_L/AZX_Docs/html/azx__pdu_common_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__pdu_common_8h_source.html index f4a3b75a..0e6f1126 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__pdu_common_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__pdu_common_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -365,100 +365,101 @@
277 }SMS_TXT_OUT_FMT_E;
278 
279 // number format
-
280 enum
+
280 typedef enum
281 {
-
282  PDU_TYPE_NATIONAL = 0xA1,
-
283  PDU_TYPE_INTERNATIONAL = 0x91,
-
284  PDU_TYPE_ALPHADET = 0xD0,
-
285  PDU_TYPE_NETWORK = 0xB1
-
286 };
-
287 
-
288 typedef struct
-
289 {
-
290  // SMSC number
-
291  struct{ uint8_t len, bytes, type, data[14]; }smsc;
-
292  // caller/sender number
-
293  struct{ uint8_t len, bytes, type, data[14]; }sender;
-
294  // input/output zero-terminated message (7bit/8bit/UTF8)
-
295  struct{ uint16_t len, bytes; uint8_t *data; }msg;
-
296 
-
297  uint8_t first; // 1st octet of the SMS-SUBMIT message (0x11)
-
298  uint8_t tp_msg_ref; // TP-Message-Reference. The "00" value here lets the phone set the message reference number itself
-
299  uint8_t tp_pid; // Protocol identifier (0)
-
300  uint8_t tp_dcs; // Data coding scheme.This message is coded according to the 7bit default alphabet. Having "02" instead of "00" here, would indicate that the TP-User-Data field of this message should be interpreted as 8bit rather than 7bit (used in e.g. smart messaging, OTA provisioning etc)
-
301  uint8_t tp_vp; // TP-Validity-Period. "AA" means 4 days. Note: This octet is optional, see bits 4 and 3 of the first octet
-
302 
-
303  // incoming SMS timestamp
-
304  uint8_t year, month, date; // date
-
305  uint8_t hour, min, sec; // time
-
306  int8_t tz; // zone
-
307 
-
308  // PDU length in bytes and for CMGS command
-
309  uint16_t len_bytes, len_cmgs;
-
310 }pdu_struct;
-
311 
-
312 typedef struct
-
313 {
-
314 
-
315  uint8_t smCompressed;
-
316  uint8_t smAlphabet;
-
317  uint8_t smClass;
-
318 
-
319 }dcs_struct;
-
320 
-
321 void pdu_set_output_format(SMS_TXT_OUT_FMT_E output_format);
-
322 SMS_TXT_OUT_FMT_E pdu_get_output_format(void);
-
323 uint8_t pdu_hex_to_ascii_format (uint8_t LV_nmb);
-
324 
-
325 // Change GSM 7-bit table to ANSI
-
326 uint8_t pdu_corr_sym_unpack_dcs7(char *Str, uint8_t len);
-
327 // pack 7-bit array to 8-bit
-
328 uint8_t pdu_7to8(uint8_t *a, uint8_t len);
-
329 // unpack 8-bit array to 7-bit
-
330 uint8_t pdu_8to7(uint8_t *a, uint8_t len);
-
331 
-
332 // convert HEX line to bytes, len - length of input buffer
-
333 void pdu_hex2bytes(uint8_t *h, uint16_t len, uint8_t *b);
-
334 // convert bytes to HEX line, len - length of input buffer
-
335 void pdu_bytes2hex(uint8_t *b, uint16_t len, uint8_t *h);
-
336 
-
337 // decode incoming PDU (in binary stream format) to out structure, out->msg.data points to start of incoming text
-
338 void pdu_in_decode_binary(uint8_t *in, uint16_t len, pdu_struct *out);
-
339 
-
340 // decode incoming PDU (in ASCII string format) to out structure, out->msg.data points to start of incoming text
-
341 void pdu_in_decode(uint8_t *in, uint16_t len, pdu_struct *out);
-
342 // decode text PDU, in - start of incoming text, in_bytes - its length in bytes, in_dcs - Data Coding Scheme, out - output buffer, returns number of chars
-
343 uint16_t pdu_in_decode_text(uint8_t *in, uint16_t in_bytes, uint8_t in_dcs, uint8_t *out);
-
344 
-
345 // encode outcoming PDU
-
346 uint16_t pdu_out_encode(pdu_struct *in, uint8_t *out);
-
347 // encode outcoming PDU, simple interface
-
348 uint16_t pdu_out_encode_simple(pdu_struct *pdu, uint8_t *out, void *sender, void *msg, uint8_t tp_vp, int dsc);
-
349 
-
350 // pack text phone number to bytes, returns number of packed digits (11/12), not including terminating F
-
351 uint8_t pdu_phone_pack(uint8_t *in, uint8_t *out);
-
352 // unpack phone number to string, returns number of unpacked digits
-
353 uint8_t pdu_phone_unpack(uint8_t *in, uint8_t len, uint8_t *out, uint8_t type);
-
354 // check if phone is packed
-
355 uint8_t pdu_phone_is_packed(uint8_t *phone);
-
356 
-
357 // get number of bytes from number of digits
-
358 uint8_t pdu_phone_digits_bytes(uint8_t digits);
-
359 // get number of bytes of packed phone
-
360 uint8_t pdu_phone_bytes(uint8_t *in);
-
361 // count number of digits
-
362 uint8_t pdu_phone_digits(uint8_t *in, uint8_t bytes);
-
363 
-
364 // compare 2 packed phones
-
365 uint8_t pdu_phone_cmp(uint8_t *in1, uint8_t in1_bytes, uint8_t *in2, uint8_t in2_bytes);
-
366 // copy packed phone
-
367 void pdu_phone_copy(uint8_t *in, uint8_t *out);
-
368 
-
369 #endif /* AZX_PDU_CODEC_AZX_PDUCOMMON_H_ */
+
282  PDU_TYPE_UNKNOWN = 0x81,
+
283  PDU_TYPE_NATIONAL = 0xA1,
+
284  PDU_TYPE_INTERNATIONAL = 0x91,
+
285  PDU_TYPE_ALPHADET = 0xD0,
+
286  PDU_TYPE_NETWORK = 0xB1
+
287 } AZX_SMS_ADDR_NUM_TYPE_E;
+
288 
+
289 typedef struct
+
290 {
+
291  // SMSC number
+
292  struct{ uint8_t len, bytes, type, data[14]; }smsc;
+
293  // caller/sender number
+
294  struct{ uint8_t len, bytes, type, data[14]; }sender;
+
295  // input/output zero-terminated message (7bit/8bit/UTF8)
+
296  struct{ uint16_t len, bytes; uint8_t *data; }msg;
+
297 
+
298  uint8_t first; // 1st octet of the SMS-SUBMIT message (0x11)
+
299  uint8_t tp_msg_ref; // TP-Message-Reference. The "00" value here lets the phone set the message reference number itself
+
300  uint8_t tp_pid; // Protocol identifier (0)
+
301  uint8_t tp_dcs; // Data coding scheme.This message is coded according to the 7bit default alphabet. Having "02" instead of "00" here, would indicate that the TP-User-Data field of this message should be interpreted as 8bit rather than 7bit (used in e.g. smart messaging, OTA provisioning etc)
+
302  uint8_t tp_vp; // TP-Validity-Period. "AA" means 4 days. Note: This octet is optional, see bits 4 and 3 of the first octet
+
303 
+
304  // incoming SMS timestamp
+
305  uint8_t year, month, date; // date
+
306  uint8_t hour, min, sec; // time
+
307  int8_t tz; // zone
+
308 
+
309  // PDU length in bytes and for CMGS command
+
310  uint16_t len_bytes, len_cmgs;
+
311 }pdu_struct;
+
312 
+
313 typedef struct
+
314 {
+
315 
+
316  uint8_t smCompressed;
+
317  uint8_t smAlphabet;
+
318  uint8_t smClass;
+
319 
+
320 }dcs_struct;
+
321 
+
322 void pdu_set_output_format(SMS_TXT_OUT_FMT_E output_format);
+
323 SMS_TXT_OUT_FMT_E pdu_get_output_format(void);
+
324 uint8_t pdu_hex_to_ascii_format (uint8_t LV_nmb);
+
325 
+
326 // Change GSM 7-bit table to ANSI
+
327 uint8_t pdu_corr_sym_unpack_dcs7(char *Str, uint8_t len);
+
328 // pack 7-bit array to 8-bit
+
329 uint8_t pdu_7to8(uint8_t *a, uint8_t len);
+
330 // unpack 8-bit array to 7-bit
+
331 uint8_t pdu_8to7(uint8_t *a, uint8_t len);
+
332 
+
333 // convert HEX line to bytes, len - length of input buffer
+
334 void pdu_hex2bytes(uint8_t *h, uint16_t len, uint8_t *b);
+
335 // convert bytes to HEX line, len - length of input buffer
+
336 void pdu_bytes2hex(uint8_t *b, uint16_t len, uint8_t *h);
+
337 
+
338 // decode incoming PDU (in binary stream format) to out structure, out->msg.data points to start of incoming text
+
339 void pdu_in_decode_binary(uint8_t *in, uint16_t len, pdu_struct *out);
+
340 
+
341 // decode incoming PDU (in ASCII string format) to out structure, out->msg.data points to start of incoming text
+
342 void pdu_in_decode(uint8_t *in, uint16_t len, pdu_struct *out);
+
343 // decode text PDU, in - start of incoming text, in_bytes - its length in bytes, in_dcs - Data Coding Scheme, out - output buffer, returns number of chars
+
344 uint16_t pdu_in_decode_text(uint8_t *in, uint16_t in_bytes, uint8_t in_dcs, uint8_t *out);
+
345 
+
346 // encode outcoming PDU
+
347 uint16_t pdu_out_encode(pdu_struct *in, uint8_t *out);
+
348 // encode outcoming PDU, simple interface
+
349 uint16_t pdu_out_encode_simple(pdu_struct *pdu, uint8_t *out, AZX_SMS_ADDR_NUM_TYPE_E type, void *sender, void *msg, uint8_t tp_vp, int dsc);
+
350 
+
351 // pack text phone number to bytes, returns number of packed digits (11/12), not including terminating F
+
352 uint8_t pdu_phone_pack(uint8_t *in, uint8_t *out);
+
353 // unpack phone number to string, returns number of unpacked digits
+
354 uint8_t pdu_phone_unpack(uint8_t *in, uint8_t len, uint8_t *out, uint8_t type);
+
355 // check if phone is packed
+
356 uint8_t pdu_phone_is_packed(uint8_t *phone);
+
357 
+
358 // get number of bytes from number of digits
+
359 uint8_t pdu_phone_digits_bytes(uint8_t digits);
+
360 // get number of bytes of packed phone
+
361 uint8_t pdu_phone_bytes(uint8_t *in);
+
362 // count number of digits
+
363 uint8_t pdu_phone_digits(uint8_t *in, uint8_t bytes);
+
364 
+
365 // compare 2 packed phones
+
366 uint8_t pdu_phone_cmp(uint8_t *in1, uint8_t in1_bytes, uint8_t *in2, uint8_t in2_bytes);
+
367 // copy packed phone
+
368 void pdu_phone_copy(uint8_t *in, uint8_t *out);
+
369 
+
370 #endif /* AZX_PDU_CODEC_AZX_PDUCOMMON_H_ */
-
Definition: azx_pduCommon.h:312
-
Definition: azx_pduCommon.h:288
+
Definition: azx_pduCommon.h:313
+
Definition: azx_pduCommon.h:289
UINT16 azx_pdu_s_utf8_to_ascii(UINT8 *in, UINT16 in_len)
Converts UTF8 spaces into ASCII spaces.
-
Definition: azx_pduCommon.h:288
+
Definition: azx_pduCommon.h:289
INT32 azx_pdu_decode(UINT8 *pdu, UINT32 pdu_len, pdu_struct *packet, CHAR *number, CHAR *msg)
Decodes an incoming PDU in binary format.
INT32 azx_pdu_decodeString(CHAR *pdu_str, pdu_struct *packet, CHAR *number, CHAR *msg)
Decodes an incoming PDU in ASCII string format.
diff --git a/LE910Cx_L/AZX_Docs/html/azx__pdu_enc_8h.html b/LE910Cx_L/AZX_Docs/html/azx__pdu_enc_8h.html index 0bf0e7ec..829d9c62 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__pdu_enc_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__pdu_enc_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -123,6 +123,9 @@ int azx_pdu_encode (CHAR *number, CHAR *str, UINT8 *pdu, INT32 dcs)  Encode a PDU from the input parameters. More...
  +INT32 azx_pdu_encode_generic (AZX_SMS_ADDR_NUM_TYPE_E type, CHAR *number, CHAR *str, UINT8 *pdu, INT32 dcs) + Encode a PDU from the input parameters, allowing to select the number address type. More...

Detailed Description

Encoding functionalities for PDUs.

diff --git a/LE910Cx_L/AZX_Docs/html/azx__pdu_enc_8h.js b/LE910Cx_L/AZX_Docs/html/azx__pdu_enc_8h.js index 677dc658..543e4ee4 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__pdu_enc_8h.js +++ b/LE910Cx_L/AZX_Docs/html/azx__pdu_enc_8h.js @@ -1,5 +1,6 @@ var azx__pdu_enc_8h = [ [ "azx_pdu_convertZeroPaddedHexIntoByte", "group__pdu_enc_usage.html#ga43f49411b4f11d9b77abed8036346cca", null ], - [ "azx_pdu_encode", "group__pdu_enc_usage.html#gacb79107f730c3a648b4033429d3cc8d8", null ] + [ "azx_pdu_encode", "group__pdu_enc_usage.html#gacb79107f730c3a648b4033429d3cc8d8", null ], + [ "azx_pdu_encode_generic", "group__pdu_enc_usage.html#gaccb4e2ccee1b643e47dc243c5351883a", null ] ]; \ No newline at end of file diff --git a/LE910Cx_L/AZX_Docs/html/azx__pdu_enc_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__pdu_enc_8h_source.html index 8f20474b..2f606924 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__pdu_enc_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__pdu_enc_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -113,9 +113,14 @@
61 /*-----------------------------------------------------------------------------------------------*/
86 /*-----------------------------------------------------------------------------------------------*/
87 int azx_pdu_encode(CHAR *number, CHAR *str, UINT8 *pdu, INT32 dcs);
-
92 #endif /* HDR_PDU_PDU_ENC_H_ */
+
93 /*-----------------------------------------------------------------------------------------------*/
+
120 /*-----------------------------------------------------------------------------------------------*/
+
121 INT32 azx_pdu_encode_generic(AZX_SMS_ADDR_NUM_TYPE_E type, CHAR *number, CHAR *str, UINT8 *pdu, INT32 dcs);
+
122 
+
123 #endif /* HDR_PDU_PDU_ENC_H_ */
+
INT32 azx_pdu_encode_generic(AZX_SMS_ADDR_NUM_TYPE_E type, CHAR *number, CHAR *str, UINT8 *pdu, INT32 dcs)
Encode a PDU from the input parameters, allowing to select the number address type.
INT32 azx_pdu_convertZeroPaddedHexIntoByte(UINT8 *dataset, UINT8 *bytearray, INT32 len)
Converts an encoded dataset (created with PDUEncode()) into a binary bytearray.
int azx_pdu_encode(CHAR *number, CHAR *str, UINT8 *pdu, INT32 dcs)
Encode a PDU from the input parameters.
diff --git a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__hw_8h.html b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__hw_8h.html index 163e1282..8c6ed72e 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__hw_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__hw_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__hw_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__hw_8h_source.html index 53ad407c..d1c88d59 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__hw_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__hw_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__hw__external_8h.html b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__hw__external_8h.html index e96bd3fb..591b36e4 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__hw__external_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__hw__external_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__hw__external_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__hw__external_8h_source.html index f81c49a6..940708fd 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__hw__external_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__hw__external_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__jsc_8h.html b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__jsc_8h.html index d6c69251..acb26835 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__jsc_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__jsc_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -270,11 +270,11 @@ #define BL_U_3_4_LOCKED   (LOCK_CMP | LOCK_INV | LOCK_BP2 | LOCK_BP0) /* 1 1 1 0 1 Upper 3/4 locked */   -enum  { MTD_OPS_PLACE_OOB = 0, +enum  { MTD_OPS_PLACE_OOB = 0, MTD_OPS_AUTO_OOB = 1, MTD_OPS_RAW = 2 } -  +   AZX_SPI_FLASH_ONFI_PARAMS   @@ -339,8 +339,8 @@
Author
Norman Argiolas Fabio Pintus
Date
File created on: Feb 24, 2020

Enumeration Type Documentation

- -

◆ anonymous enum

+ +

◆ anonymous enum

@@ -412,7 +412,7 @@

//---Functions call

if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
...
@@ -427,12 +427,12 @@

{

if (ret == AZX_SPI_FLASH_CODE_EBADMSG && isBad == true)
{
-
AZX_LOG_INFO("Block %d : initial bad block, skip erase\r\n", blk);
+
AZX_LOG_INFO("Block %d : initial bad block, skip erase\r\n", blk);
//...
}
else
{
-
AZX_LOG_ERROR("Checking bad block failed!!\r\n");
+
AZX_LOG_ERROR("Checking bad block failed!!\r\n");
//...
}
}
@@ -488,14 +488,14 @@

//---Functions call
if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
...
if (azx_spi_flash_callbak(g_chip, AZX_SPI_FLASH_INITIALIZED) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand callback failed!!\r\n");
+
AZX_LOG_ERROR("Nand callback failed!!\r\n");
return TEST_ERROR;
}
@@ -539,7 +539,7 @@

//---Functions call
if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
...
@@ -549,7 +549,7 @@

ret = ret = azx_spi_flash_readParameterPage(g_chip, 0, read_buf, g_chip->page_size);
if (ret != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand reading parameters failed!!\r\n");
+
AZX_LOG_ERROR("Nand reading parameters failed!!\r\n");
//...
}
//...
@@ -558,7 +558,7 @@

p = (AZX_SPI_FLASH_ONFI_PARAMS *) &read_buf[0];
if (azx_spi_flash_checkParameter(p) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("parameter page : data invalid, test finished\r\n");
+
AZX_LOG_ERROR("parameter page : data invalid, test finished\r\n");
//...
}
@@ -643,14 +643,14 @@

//---Functions call
if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
...
if (azx_spi_flash_disableEcc(g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand disable ECC failed!!\r\n");
+
AZX_LOG_ERROR("Nand disable ECC failed!!\r\n");
return TEST_ERROR;
}
@@ -694,14 +694,14 @@

//---Functions call
if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
...
if (azx_spi_flash_enableEcc(g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand anable ECC failed!!\r\n");
+
AZX_LOG_ERROR("Nand anable ECC failed!!\r\n");
return TEST_ERROR;
}
@@ -763,7 +763,7 @@

//---Functions call
if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
...
@@ -778,7 +778,7 @@

ret = ret = azx_spi_flash_erase(chip, block_addr, len);
if (ret != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand erase failed!!\r\n");
+
AZX_LOG_ERROR("Nand erase failed!!\r\n");
//...
}
@@ -840,7 +840,7 @@

//---Functions call
if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
@@ -897,7 +897,7 @@

//---Functions call
if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
...
@@ -935,7 +935,7 @@

ret = azx_spi_flash_lockBlock(chip, protect_reg);
if (ret != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR(" Invalid lock block protection %x\r\n", protection);
+
AZX_LOG_ERROR(" Invalid lock block protection %x\r\n", protection);
return AZX_NAND_CODE_FAIL;
}
@@ -990,7 +990,7 @@

//---Functions call
if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
...
@@ -998,10 +998,10 @@

UINT8 id[3] = {0};
if (azx_spi_flash_readID(g_chip, id) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand ReadID failed!!\r\n");
+
AZX_LOG_ERROR("Nand ReadID failed!!\r\n");
return TEST_ERROR;
}
-
AZX_LOG_INFO("SPI-NAND type mfr_id: %x, dev_id: %x, dev_id2: %x is not in id table.\r\n",
+
AZX_LOG_INFO("SPI-NAND type mfr_id: %x, dev_id: %x, dev_id2: %x is not in id table.\r\n",
id[0], id[1], id[2]);
@@ -1062,7 +1062,7 @@

//---Functions call
if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
...
@@ -1086,7 +1086,7 @@

ret = ret = azx_spi_flash_readOob(chip, block_addr, ops);
if (ret != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand write failed!!\r\n");
+
AZX_LOG_ERROR("Nand write failed!!\r\n");
//...
}
@@ -1155,7 +1155,7 @@

//---Functions call
if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
...
@@ -1165,7 +1165,7 @@

ret = ret = azx_spi_flash_readParameterPage(g_chip, 0, read_buf, g_chip->page_size);
if (ret != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand reading parameters failed!!\r\n");
+
AZX_LOG_ERROR("Nand reading parameters failed!!\r\n");
//...
}
@@ -1234,7 +1234,7 @@

//---Functions call
if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
@@ -1245,48 +1245,48 @@

memset(read_buf, 0xFF, 4096);
//---Read UID
-
AZX_LOG_INFO("Read UID...\r\n");
+
AZX_LOG_INFO("Read UID...\r\n");
ret = azx_spi_flash_readUIDpage(g_chip, 0, read_buf, g_chip->page_size);
if (ret != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("UID page: read operation ERROR, test finished\r\n");
+
AZX_LOG_ERROR("UID page: read operation ERROR, test finished\r\n");
//...
}
-
AZX_LOG_INFO(" unique ID : 0x");
+
AZX_LOG_INFO(" unique ID : 0x");
for (JSC_uint32 byte = 0; byte < 16; byte++)
{
-
AZX_LOG_INFO("%02X", read_buf[byte]);
+
AZX_LOG_INFO("%02X", read_buf[byte]);
}
-
AZX_LOG_INFO("\r\n");
+
AZX_LOG_INFO("\r\n");
-
AZX_LOG_INFO(" unique ID complement : 0x");
+
AZX_LOG_INFO(" unique ID complement : 0x");
for (JSC_uint32 byte = 0; byte < 16; byte++)
{
-
AZX_LOG_INFO("%02X", read_buf[byte + 16]);
+
AZX_LOG_INFO("%02X", read_buf[byte + 16]);
}
-
AZX_LOG_INFO("\r\n");
+
AZX_LOG_INFO("\r\n");
-
AZX_LOG_INFO(" unique ID XOR : 0x");
+
AZX_LOG_INFO(" unique ID XOR : 0x");
for (JSC_uint32 byte = 0; byte < 16; byte++)
{
xorJSC = read_buf[byte] ^ read_buf[byte + 16];
-
AZX_LOG_INFO("%02X", xorJSC);
+
AZX_LOG_INFO("%02X", xorJSC);
if (xorJSC != 0xFF)
{
ret = AZX_NAND_CODE_FAIL;
}
}
-
AZX_LOG_INFO("\r\n");
+
AZX_LOG_INFO("\r\n");
if (ret != AZX_NAND_CODE_PASS)
{
-
AZX_LOG_ERROR(" unique ID invalid\r\n");
+
AZX_LOG_ERROR(" unique ID invalid\r\n");
}
else
{
-
AZX_LOG_INFO(" unique ID valid\r\n");
+
AZX_LOG_INFO(" unique ID valid\r\n");
}
@@ -1330,7 +1330,7 @@

//---Functions call
if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
@@ -1338,10 +1338,10 @@

if (azx_spi_flash_releaseResources(g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Release memory failed!!\r\n");
+
AZX_LOG_ERROR("Release memory failed!!\r\n");
return TEST_ERROR;
}
-
AZX_LOG_INFO("Nand released\r\n");
+
AZX_LOG_INFO("Nand released\r\n");
@@ -1394,7 +1394,7 @@

//---Functions call
if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
...
@@ -1470,7 +1470,7 @@

//---Functions call
if (azx_spi_flash_initialize(SPI_FLASH_JS28P1GQSCAHG_CS_GPIO, &opts, &g_chip) != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
+
AZX_LOG_ERROR("Nand Initialization failed!!\r\n");
return TEST_ERROR;
}
...
@@ -1494,7 +1494,7 @@

ret = ret = azx_spi_flash_writeOob(chip, block_addr, ops);
if (ret != AZX_SPI_FLASH_CODE_PASS)
{
-
AZX_LOG_ERROR("Nand write failed!!\r\n");
+
AZX_LOG_ERROR("Nand write failed!!\r\n");
//...
}
@@ -1507,6 +1507,7 @@

Definition: azx_spi_flash_jsc.h:120
AZX_SPI_FLASH_CODE_RESULT_E azx_spi_flash_blockIsBad(AZX_SPI_FLASH_SPI_CHIP *chip, JSC_loff_t offs, JSC_bool *result)
azx_spi_flash_blockIsBad checks block is bad or not
AZX_SPI_FLASH_CODE_RESULT_E azx_spi_flash_readParameterPage(AZX_SPI_FLASH_SPI_CHIP *chip, JSC_uint32 column, JSC_uint8 *buf, JSC_size_t len)
azx_spi_flash_readParameterPage read parameter page
+
#define AZX_LOG_ERROR(a...)
Definition: azx_log.h:313
AZX_SPI_FLASH_CODE_RESULT_E azx_spi_flash_readUIDpage(AZX_SPI_FLASH_SPI_CHIP *chip, JSC_uint32 column, JSC_uint8 *buf, JSC_size_t len)
azx_spi_flash_readUIDpage read UID page
AZX_SPI_FLASH_CODE_RESULT_E azx_spi_flash_readID(AZX_SPI_FLASH_SPI_CHIP *chip, JSC_uint8 *buf)
azx_spi_flash_readID reads the ID of the mounted device
AZX_SPI_FLASH_CODE_RESULT_E azx_spi_flash_enableEcc(AZX_SPI_FLASH_SPI_CHIP *chip)
azx_spi_flash_enableEcc enables internal ECC.
@@ -1518,6 +1519,7 @@

AZX_SPI_FLASH_CODE_RESULT_E azx_spi_flash_disableEcc(AZX_SPI_FLASH_SPI_CHIP *chip)
azx_spi_flash_disableEcc disables internal ECC.
AZX_SPI_FLASH_CODE_RESULT_E azx_spi_flash_initialize(const JSC_uint8 CS_GPIO_pin, AZX_SPI_FLASH_MICRO_SPI_PARAMS *opts, AZX_SPI_FLASH_SPI_CHIP **chip_ptr)
azx_spi_flash_initialize initializes SPI-FLASH service
AZX_SPI_FLASH_CODE_RESULT_E azx_spi_flash_lockBlock(AZX_SPI_FLASH_SPI_CHIP *chip, JSC_uint8 lock)
azx_spi_flash_lockBlock locks the write operations
+
#define AZX_LOG_INFO(a...)
Definition: azx_log.h:321
AZX_SPI_FLASH_CODE_RESULT_E azx_spi_flash_writeOob(AZX_SPI_FLASH_SPI_CHIP *chip, JSC_loff_t to, AZX_SPI_FLASH_MTD_OOB_OPS *ops)
azx_spi_flash_writeOob write data
diff --git a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__jsc_8h.js b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__jsc_8h.js index e51d7eaf..0a04f4c4 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__jsc_8h.js +++ b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__jsc_8h.js @@ -41,9 +41,9 @@ var azx__spi__flash__jsc_8h = [ "SPI_FLASH_WAITING_TIMEOUT", "azx__spi__flash__jsc_8h.html#a56386e80f801a39d557cf9977ee9f757", null ], [ "AZX_SPI_FLASH_CLBK_FUNCTION", "azx__spi__flash__jsc_8h.html#a8fa51bf0f0afd1fb3923852d74a1f71a", null ], [ "AZX_SPI_FLASH_JSC_HANDLE", "azx__spi__flash__jsc_8h.html#a6097029ad73f4786cac5179724bfedae", null ], - [ "MTD_OPS_PLACE_OOB", "azx__spi__flash__jsc_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2da56927300333604a220d08bde6252c7b4", null ], - [ "MTD_OPS_AUTO_OOB", "azx__spi__flash__jsc_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2daa73712d2a90bddf732f129471e41740c", null ], - [ "MTD_OPS_RAW", "azx__spi__flash__jsc_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2da911e854f3baea378f4556a02ae63a1e7", null ], + [ "MTD_OPS_PLACE_OOB", "azx__spi__flash__jsc_8h.html#a726ca809ffd3d67ab4b8476646f26635a56927300333604a220d08bde6252c7b4", null ], + [ "MTD_OPS_AUTO_OOB", "azx__spi__flash__jsc_8h.html#a726ca809ffd3d67ab4b8476646f26635aa73712d2a90bddf732f129471e41740c", null ], + [ "MTD_OPS_RAW", "azx__spi__flash__jsc_8h.html#a726ca809ffd3d67ab4b8476646f26635a911e854f3baea378f4556a02ae63a1e7", null ], [ "AZX_SPI_FLASH_JSC_EVENT_E", "azx__spi__flash__jsc_8h.html#a04f24c0d905e06c83c3ab2a6f509d73d", [ [ "AZX_SPI_FLASH_INITIALIZED", "azx__spi__flash__jsc_8h.html#a04f24c0d905e06c83c3ab2a6f509d73daa6391a9fb711de60b63e0b35f7945192", null ], [ "AZX_SPI_FLASH_SPI_INITIALIZED", "azx__spi__flash__jsc_8h.html#a04f24c0d905e06c83c3ab2a6f509d73da8ab89f36072b323837230fb4ea0b261e", null ], diff --git a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__jsc_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__jsc_8h_source.html index 6fd09742..99b36007 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__jsc_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__jsc_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__strings_8h.html b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__strings_8h.html index d027406e..5927ee6b 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__strings_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__strings_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__strings_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__strings_8h_source.html index 2d57ca97..a1b3b0f2 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__strings_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__strings_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__types_8h.html b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__types_8h.html index e3e5ca1e..797232aa 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__types_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__types_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__types_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__types_8h_source.html index 4cae3fb1..e400cdbf 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__spi__flash__types_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__spi__flash__types_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__string__utils_8h.html b/LE910Cx_L/AZX_Docs/html/azx__string__utils_8h.html index e7935986..d23fe50a 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__string__utils_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__string__utils_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__string__utils_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__string__utils_8h_source.html index 0c9da2d5..b76f8988 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__string__utils_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__string__utils_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__tasks_8h.html b/LE910Cx_L/AZX_Docs/html/azx__tasks_8h.html index 190bc3c9..73e268c6 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__tasks_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__tasks_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -111,11 +111,10 @@
- - - - - + + + +
@@ -134,7 +133,7 @@ #define AZX_TASKS_MIN_STACK_SIZE   1024   -#define AZX_TASKS_MAX_STACK_SIZE   32768 +#define AZX_TASKS_MAX_STACK_SIZE   65536   #define AZX_TASKS_MIN_QUEUE_SIZE   1   @@ -142,7 +141,7 @@   #define AZX_TASKS_PRIORITY_MAX   1   -#define AZX_TASKS_PRIORITY_MIN   32 +#define AZX_TASKS_PRIORITY_MIN   50   #define AZX_TASKS_MAX_TASKS   32   @@ -156,6 +155,9 @@ typedef INT32(* USER_TASK_CB) (INT32, INT32, INT32)  Task user callback signature. More...
  +typedef INT32(* azx_tasks_onTaskComplCB) (INT32, INT32, INT32) + task complete return user function More...
+  @@ -176,7 +178,8 @@ AZX_TASKS_INVALID_ID_ERR = -20,
  AZX_TASKS_ID_NOT_DEFINED_ERR = -21, -AZX_TASKS_MSG_SEND_ERR = -22 +AZX_TASKS_MSG_SEND_ERR = -22, +AZX_TASKS_INTERNAL_ERR = -30
} @@ -187,7 +190,8 @@ AZX_TASKS_STACK_L = 8192, AZX_TASKS_STACK_XL = 16384,
-  M2M_OS_TASK_STACK_LIMIT = 32768 +  AZX_TASKS_STACK_XXL = 32768, +M2M_OS_TASK_STACK_LIMIT = 65536
} @@ -205,35 +209,48 @@ + + + - - - - - - + + + + + + - - + + + + + + + +

Enumerations

 Task related return codes. More...
 Task convenient task size values. More...
INT32 azx_tasks_init (void)
 Initializes the parameters needed to use tasks. More...
 
INT32 azx_tasks_initWithComplCB (azx_tasks_onTaskComplCB cb)
 Initializes the callback with all parameters needed to use tasks and monitoring the execution end. More...
 
INT32 azx_tasks_createTask (CHAR *task_name, INT32 stack_size, INT32 priority, INT32 msg_q_size, USER_TASK_CB cb)
 Creates a new user task. More...
 
INT32 azx_tasks_destroyTask (INT8 task_id)
 Destroys an user task. More...
 
INT32 azx_tasks_sendMessageToTask (INT8 task_id, INT32 type, INT32 param1, INT32 param2)
 Sends a message to a task. More...
 
INT32 azx_tasks_destroyTask (INT32 task_id)
 Destroys an user task. More...
 
INT32 azx_tasks_sendMessageToTask (INT32 task_id, INT32 type, INT32 param1, INT32 param2)
 Sends a message to a task. More...
 
INT32 azx_tasks_getCurrentTaskId (void)
 Retrieves the current task ID value. More...
 
CHAR * azx_tasks_getCurrentTaskName (CHAR *name)
 Retrieves the current task name string. More...
 
INT32 azx_tasks_getEnqueuedCount (INT8 task_id)
 
INT32 azx_tasks_getEnqueuedCount (INT32 TaskProcID)
 
INT32 azx_tasks_suspendTask (INT32 TaskProcID)
 
INT32 azx_tasks_resumeTask (INT32 TaskProcID)
 
M2MB_OS_TASK_HANDLE azx_tasks_getM2MBTaskHandleById (INT32 TaskProcID)
 

Detailed Description

Tasks related utilities.

-
Version
1.0.4
+
Version
1.1.1
Dependencies
core/azx_log core/azx_utils
-
Author
Alessio Quieti
-
Date
07/04/2018
+
Author
Alessio Quieti
+
+Fabio Pintus
+
+Norman Argiolas
+
Date
21/06/2022

Functions usable to simplify the tasks creation and usage (instead of directly using m2mb_os_q.h low level APIs, which in turn allow much greater control of the tasks)

The library is modelled after the way tasks were handled in the old M2M API.

Function Documentation

- -

◆ azx_tasks_getEnqueuedCount()

+ +

◆ azx_tasks_getEnqueuedCount()

+ +

◆ azx_tasks_getM2MBTaskHandleById()

+ +
+
+ + + + + + + + +
M2MB_OS_TASK_HANDLE azx_tasks_getM2MBTaskHandleById (INT32 TaskProcID)
+
+

Returns the handle for a given task_id ()

Parameters
+ + +
[in]TheID of the task whose queue should be checked.
+
+
+
Returns
The m2mb handle of the task, NULL in case of failure
+ +
+
+ +

◆ azx_tasks_resumeTask()

+ +
+
+ + + + + + + + +
INT32 azx_tasks_resumeTask (INT32 TaskProcID)
+
+

Resumes a task (suspended with azx_tasks_suspendTask) given its ID

+
Parameters
+ + +
[in]TheID of the task to be resumed.
+
+
+
Returns
AZX_TASKS_OK in case of success, a negative value otherwise.
+ +
+
+ +

◆ azx_tasks_suspendTask()

+ +
+
+ + + + + + + + +
INT32 azx_tasks_suspendTask (INT32 TaskProcID)
+
+

Suspends a task given its ID. It must be resumed with azx_tasks_resumeTask()

+
Parameters
+ + +
[in]TheID of the task to be suspended.
+
+
+
Returns
AZX_TASKS_OK in case of success, a negative value otherwise.
+
diff --git a/LE910Cx_L/AZX_Docs/html/azx__tasks_8h.js b/LE910Cx_L/AZX_Docs/html/azx__tasks_8h.js index aa48c986..a8ba7560 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__tasks_8h.js +++ b/LE910Cx_L/AZX_Docs/html/azx__tasks_8h.js @@ -9,6 +9,7 @@ var azx__tasks_8h = [ "AZX_TASKS_PRIORITY_MIN", "group__task_usage.html#ga8c8cb01a85069a084d2e1dd17e299722", null ], [ "AZX_TASKS_QUEUE_MSG_SIZE", "group__task_usage.html#ga146f8901751b1510a2d8add0cfafb8d6", null ], [ "AZX_TASKS_TASK_NAME_SIZE", "group__task_usage.html#gad435a24bea52cb07521128b0b84b4afd", null ], + [ "azx_tasks_onTaskComplCB", "group__task_usage.html#ga90d9b7cdb04ee33e160a47f4dbd61e31", null ], [ "USER_TASK_CB", "group__task_usage.html#gaf5abdb36b530c6d64d58a14555a68416", null ], [ "AZX_TASKS_ERR_E", "group__task_usage.html#ga5b29dff3d5b477adbbf73a1515983c6b", [ [ "AZX_TASKS_OK", "group__task_usage.html#gga5b29dff3d5b477adbbf73a1515983c6baf0fd3cefaa03e18813132ae02b6fb26c", null ], @@ -24,7 +25,8 @@ var azx__tasks_8h = [ "AZX_TASKS_CREATE_ERR", "group__task_usage.html#gga5b29dff3d5b477adbbf73a1515983c6ba7b2631b8fb7565c607a86f9555e35457", null ], [ "AZX_TASKS_INVALID_ID_ERR", "group__task_usage.html#gga5b29dff3d5b477adbbf73a1515983c6ba671695a5dacb80dfa6d27451e9fe146b", null ], [ "AZX_TASKS_ID_NOT_DEFINED_ERR", "group__task_usage.html#gga5b29dff3d5b477adbbf73a1515983c6baff0009833effaf091c786391904bff10", null ], - [ "AZX_TASKS_MSG_SEND_ERR", "group__task_usage.html#gga5b29dff3d5b477adbbf73a1515983c6bae659d2da10c13fa8459f28743671970b", null ] + [ "AZX_TASKS_MSG_SEND_ERR", "group__task_usage.html#gga5b29dff3d5b477adbbf73a1515983c6bae659d2da10c13fa8459f28743671970b", null ], + [ "AZX_TASKS_INTERNAL_ERR", "group__task_usage.html#gga5b29dff3d5b477adbbf73a1515983c6bae406edbd410c18d740e1bd5a43f738f4", null ] ] ], [ "AZX_TASKS_MBOX_SIZE", "group__task_usage.html#ga026eeb136a0744da96699ab01272a1ac", [ [ "AZX_TASKS_MBOX_S", "group__task_usage.html#gga026eeb136a0744da96699ab01272a1aca6b3b1d1fe700fff393ef0236d1d5956e", null ], @@ -37,13 +39,18 @@ var azx__tasks_8h = [ "AZX_TASKS_STACK_M", "group__task_usage.html#gga036b9cf9c298d9d53b608bf3942e3fb3a242b75e65efab695f4fc7679cea1865a", null ], [ "AZX_TASKS_STACK_L", "group__task_usage.html#gga036b9cf9c298d9d53b608bf3942e3fb3a55c48feee3f1357cd3d4f8a4a89e2837", null ], [ "AZX_TASKS_STACK_XL", "group__task_usage.html#gga036b9cf9c298d9d53b608bf3942e3fb3a23b2068ca2a946f91a92d87c14dd9998", null ], + [ "AZX_TASKS_STACK_XXL", "group__task_usage.html#gga036b9cf9c298d9d53b608bf3942e3fb3a935490df232896369ca03eee1ff5ae0c", null ], [ "M2M_OS_TASK_STACK_LIMIT", "group__task_usage.html#gga036b9cf9c298d9d53b608bf3942e3fb3ab517d507287a275651ea4c6bb28320aa", null ] ] ], [ "azx_tasks_createTask", "group__task_usage.html#gaec2329e432960a7d210982ebc379cd0c", null ], - [ "azx_tasks_destroyTask", "group__task_usage.html#ga1feb12b83b0e76cca5471d8720082708", null ], + [ "azx_tasks_destroyTask", "group__task_usage.html#gaf71b24171beeda54b60e32687c4c7aa7", null ], [ "azx_tasks_getCurrentTaskId", "group__task_usage.html#gad1da66a5e55a1b33471d1eec1bfd6623", null ], [ "azx_tasks_getCurrentTaskName", "group__task_usage.html#gaadfe1b6031c35086447241b51b39bfb6", null ], - [ "azx_tasks_getEnqueuedCount", "azx__tasks_8h.html#afba61203db27eb36059b90f658d7bb9a", null ], + [ "azx_tasks_getEnqueuedCount", "azx__tasks_8h.html#a6312ad7011b5126ffac56a83909d1692", null ], + [ "azx_tasks_getM2MBTaskHandleById", "azx__tasks_8h.html#a030d42f594b13992e632c6206b0e0be2", null ], [ "azx_tasks_init", "group__task_usage.html#ga1fddaf02d721c17e85a1dd9997d296e2", null ], - [ "azx_tasks_sendMessageToTask", "group__task_usage.html#ga8bb45f0fffe4cd52bf53cd00b83a2ee2", null ] + [ "azx_tasks_initWithComplCB", "group__task_usage.html#ga28939001d8dac98ac818c9537641c8c4", null ], + [ "azx_tasks_resumeTask", "azx__tasks_8h.html#afd65f2f5d1853491c2170813738ed603", null ], + [ "azx_tasks_sendMessageToTask", "group__task_usage.html#ga72f845282b145dc667207c99c99a384f", null ], + [ "azx_tasks_suspendTask", "azx__tasks_8h.html#a17f284ef1cd9b9688ff337be930910f4", null ] ]; \ No newline at end of file diff --git a/LE910Cx_L/AZX_Docs/html/azx__tasks_8h__incl.md5 b/LE910Cx_L/AZX_Docs/html/azx__tasks_8h__incl.md5 index 8893310e..ff02d8e2 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__tasks_8h__incl.md5 +++ b/LE910Cx_L/AZX_Docs/html/azx__tasks_8h__incl.md5 @@ -1 +1 @@ -b7835e39f11c9b024824c1805168a4b7 \ No newline at end of file +48ea56e49faf682c1be7a140bf5b151e \ No newline at end of file diff --git a/LE910Cx_L/AZX_Docs/html/azx__tasks_8h__incl.png b/LE910Cx_L/AZX_Docs/html/azx__tasks_8h__incl.png index 36420e1b..14a63a4f 100644 Binary files a/LE910Cx_L/AZX_Docs/html/azx__tasks_8h__incl.png and b/LE910Cx_L/AZX_Docs/html/azx__tasks_8h__incl.png differ diff --git a/LE910Cx_L/AZX_Docs/html/azx__tasks_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__tasks_8h_source.html index 04a9f26a..b7de18c6 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__tasks_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__tasks_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -101,136 +101,159 @@
4 #ifndef HDR_AZX_TASKS_H_
5 #define HDR_AZX_TASKS_H_
6 
-
21 #include "m2mb_types.h"
-
22 #include "m2mb_os_api.h"
-
23 #include "azx_log.h"
-
24 
-
41 typedef INT32 (*USER_TASK_CB)(INT32, INT32, INT32);
-
42 
-
50 #define AZX_TASKS_MIN_STACK_SIZE 1024
-
51 #define AZX_TASKS_MAX_STACK_SIZE 32768
-
53 #define AZX_TASKS_MIN_QUEUE_SIZE 1
-
54 #define AZX_TASKS_MAX_QUEUE_SIZE 100
-
56 #define AZX_TASKS_PRIORITY_MAX 1
-
57 #define AZX_TASKS_PRIORITY_MIN 32
-
59 #define AZX_TASKS_MAX_TASKS 32
-
61 #define AZX_TASKS_QUEUE_MSG_SIZE 3
-
63 #define AZX_TASKS_TASK_NAME_SIZE 64
-
71 typedef enum
-
72 {
-
73  AZX_TASKS_OK = 1,
- - - - - - - - - - - - - - -
90 
-
95 typedef enum
-
96 {
-
97  AZX_TASKS_STACK_S = 2048,
- - - -
102  M2M_OS_TASK_STACK_LIMIT = 32768
- -
105 
-
110 typedef enum
-
111 {
-
112  AZX_TASKS_MBOX_S = 10,
- - - - -
118 
-
128 typedef struct
-
129 {
-
130  INT32 type;
-
131  INT32 param1;
-
132  INT32 param2;
- -
134 
-
136 typedef struct
-
137 {
-
138  M2MB_OS_TASK_HANDLE Task_H;
-
139  M2MB_OS_Q_HANDLE Task_Queue_H;
-
140  USER_TASK_CB Task_UserCB;
-
141  UINT8 SlotInUse;
-
142  CHAR Task_NameBuf[AZX_TASKS_TASK_NAME_SIZE * sizeof(CHAR)];
-
143 } AZX_TASKS_SLOT_T;
-
144 
-
145 
-
147 typedef struct
-
148 {
-
149  AZX_TASKS_SLOT_T task_slots[AZX_TASKS_MAX_TASKS];
-
150  M2MB_OS_TASK_HANDLE M2MMain_Handle;
-
151  INT8 isInit;
-
152 } _AZX_TASKS_PARAMS;
-
153 
-
161 INT32 azx_tasks_init(void);
-
207 INT32 azx_tasks_createTask( CHAR *task_name, INT32 stack_size, INT32 priority,
-
208  INT32 msg_q_size, USER_TASK_CB cb);
-
209 
-
228 INT32 azx_tasks_destroyTask(INT8 task_id);
-
229 
-
252 INT32 azx_tasks_sendMessageToTask( INT8 task_id, INT32 type, INT32 param1, INT32 param2 );
-
253 
-
254 
-
267 INT32 azx_tasks_getCurrentTaskId( void );
-
268 
-
281 CHAR* azx_tasks_getCurrentTaskName( CHAR *name );
+
23 #include "m2mb_types.h"
+
24 #include "m2mb_os_api.h"
+
25 #include "azx_log.h"
+
26 
+
43 typedef INT32 (*USER_TASK_CB)(INT32, INT32, INT32);
+
44 
+
52 #define AZX_TASKS_MIN_STACK_SIZE 1024
+
53 #define AZX_TASKS_MAX_STACK_SIZE 65536
+
55 #define AZX_TASKS_MIN_QUEUE_SIZE 1
+
56 #define AZX_TASKS_MAX_QUEUE_SIZE 100
+
58 #define AZX_TASKS_PRIORITY_MAX 1
+
59 #define AZX_TASKS_PRIORITY_MIN 50
+
61 #define AZX_TASKS_MAX_TASKS 32
+
63 #define AZX_TASKS_QUEUE_MSG_SIZE 3
+
65 #define AZX_TASKS_TASK_NAME_SIZE 64
+
79 typedef INT32 (*azx_tasks_onTaskComplCB)(INT32, INT32, INT32);
+
80 
+
81 
+
86 typedef enum
+
87 {
+
88  AZX_TASKS_OK = 1,
+ + + + + + + + + + + + + + + +
107 
+
112 typedef enum
+
113 {
+
114  AZX_TASKS_STACK_S = 2048,
+ + + + + + +
122 
+
127 typedef enum
+
128 {
+
129  AZX_TASKS_MBOX_S = 10,
+ + + + +
135 
+
145 typedef struct
+
146 {
+
147  INT32 type;
+
148  INT32 param1;
+
149  INT32 param2;
+ +
151 
+
153 typedef struct
+
154 {
+
155  M2MB_OS_TASK_HANDLE Task_H;
+
156  M2MB_OS_Q_HANDLE Task_Queue_H;
+
157  USER_TASK_CB Task_UserCB;
+
158  UINT8 SlotInUse;
+
159  CHAR Task_NameBuf[AZX_TASKS_TASK_NAME_SIZE * sizeof(CHAR)];
+
160 } AZX_TASKS_SLOT_T;
+
161 
+
162 
+
164 typedef struct
+
165 {
+
166  AZX_TASKS_SLOT_T task_slots[AZX_TASKS_MAX_TASKS];
+
167  M2MB_OS_TASK_HANDLE M2MMain_Handle;
+
168  azx_tasks_onTaskComplCB complCB;
+
169  INT8 isInit;
+
170 } _AZX_TASKS_PARAMS;
+
171 
+
179 INT32 azx_tasks_init(void);
+ +
193 
+
194 
+
235 INT32 azx_tasks_createTask( CHAR *task_name, INT32 stack_size, INT32 priority,
+
236  INT32 msg_q_size, USER_TASK_CB cb);
+
237 
+
256 INT32 azx_tasks_destroyTask(INT32 task_id);
+
257 
+
280 INT32 azx_tasks_sendMessageToTask( INT32 task_id, INT32 type, INT32 param1, INT32 param2 );
+
281 
282 
-
290 INT32 azx_tasks_getEnqueuedCount( INT8 task_id );
-
291 
-
292 #endif /* HDR_AZX_TASKS_H_ */
+
295 INT32 azx_tasks_getCurrentTaskId( void );
+
296 
+
309 CHAR* azx_tasks_getCurrentTaskName( CHAR *name );
+
310 
+
318 INT32 azx_tasks_getEnqueuedCount( INT32 TaskProcID );
+
319 
+
327 INT32 azx_tasks_suspendTask( INT32 TaskProcID );
+
328 
+
336 INT32 azx_tasks_resumeTask( INT32 TaskProcID );
+
337 
+
338 
+
345 M2MB_OS_TASK_HANDLE azx_tasks_getM2MBTaskHandleById(INT32 TaskProcID);
+
346 
+
347 #endif /* HDR_AZX_TASKS_H_ */
-
Definition: azx_tasks.h:74
-
#define AZX_TASKS_TASK_NAME_SIZE
Definition: azx_tasks.h:64
-
Definition: azx_tasks.h:101
-
Definition: azx_tasks.h:81
-
INT32 azx_tasks_getEnqueuedCount(INT8 task_id)
-
INT32(* USER_TASK_CB)(INT32, INT32, INT32)
Task user callback signature.
Definition: azx_tasks.h:41
-
Definition: azx_tasks.h:99
-
AZX_TASKS_STACK_SIZE
Task convenient task size values.
Definition: azx_tasks.h:96
-
Definition: azx_tasks.h:114
-
INT32 azx_tasks_sendMessageToTask(INT8 task_id, INT32 type, INT32 param1, INT32 param2)
Sends a message to a task.
+
Definition: azx_tasks.h:89
+
#define AZX_TASKS_TASK_NAME_SIZE
Definition: azx_tasks.h:66
+
M2MB_OS_TASK_HANDLE azx_tasks_getM2MBTaskHandleById(INT32 TaskProcID)
+
Definition: azx_tasks.h:118
+
Definition: azx_tasks.h:96
+
INT32(* USER_TASK_CB)(INT32, INT32, INT32)
Task user callback signature.
Definition: azx_tasks.h:43
+
INT32 azx_tasks_destroyTask(INT32 task_id)
Destroys an user task.
+
Definition: azx_tasks.h:116
+
AZX_TASKS_STACK_SIZE
Task convenient task size values.
Definition: azx_tasks.h:113
+
INT32 azx_tasks_sendMessageToTask(INT32 task_id, INT32 type, INT32 param1, INT32 param2)
Sends a message to a task.
+
Definition: azx_tasks.h:131
CHAR * azx_tasks_getCurrentTaskName(CHAR *name)
Retrieves the current task name string.
-
Definition: azx_tasks.h:115
-
Definition: azx_tasks.h:85
-
Structure holding the task message data.
Definition: azx_tasks.h:129
-
Definition: azx_tasks.h:89
-
Definition: azx_tasks.h:77
-
Definition: azx_tasks.h:78
-
Definition: azx_tasks.h:79
-
Definition: azx_tasks.h:88
-
AZX_TASKS_ERR_E
Task related return codes.
Definition: azx_tasks.h:72
+
Definition: azx_tasks.h:132
+
Definition: azx_tasks.h:100
+
Structure holding the task message data.
Definition: azx_tasks.h:146
+
Definition: azx_tasks.h:106
+
Definition: azx_tasks.h:104
+
Definition: azx_tasks.h:92
+
INT32 azx_tasks_resumeTask(INT32 TaskProcID)
+
Definition: azx_tasks.h:93
+
INT32 azx_tasks_getEnqueuedCount(INT32 TaskProcID)
+
Definition: azx_tasks.h:94
+
Definition: azx_tasks.h:103
+
AZX_TASKS_ERR_E
Task related return codes.
Definition: azx_tasks.h:87
INT32 azx_tasks_init(void)
Initializes the parameters needed to use tasks.
-
Definition: azx_tasks.h:103
-
#define AZX_TASKS_MAX_TASKS
Definition: azx_tasks.h:59
-
Definition: azx_tasks.h:117
-
INT32 azx_tasks_destroyTask(INT8 task_id)
Destroys an user task.
-
Definition: azx_tasks.h:76
-
Definition: azx_tasks.h:100
-
Definition: azx_tasks.h:83
-
Definition: azx_tasks.h:82
-
AZX_TASKS_MBOX_SIZE
Task convenient message box size values.
Definition: azx_tasks.h:111
-
Definition: azx_tasks.h:113
-
Definition: azx_tasks.h:98
+
Definition: azx_tasks.h:119
+
Definition: azx_tasks.h:120
+
#define AZX_TASKS_MAX_TASKS
Definition: azx_tasks.h:61
+
Definition: azx_tasks.h:134
+
INT32 azx_tasks_suspendTask(INT32 TaskProcID)
+
Definition: azx_tasks.h:91
+
Definition: azx_tasks.h:117
+
Definition: azx_tasks.h:98
+
INT32 azx_tasks_initWithComplCB(azx_tasks_onTaskComplCB cb)
Initializes the callback with all parameters needed to use tasks and monitoring the execution end.
+
Definition: azx_tasks.h:97
+
AZX_TASKS_MBOX_SIZE
Task convenient message box size values.
Definition: azx_tasks.h:128
+
Definition: azx_tasks.h:130
+
Definition: azx_tasks.h:115
Logging utilities to print on available output channels.
INT32 azx_tasks_getCurrentTaskId(void)
Retrieves the current task ID value.
-
Definition: azx_tasks.h:80
+
Definition: azx_tasks.h:95
INT32 azx_tasks_createTask(CHAR *task_name, INT32 stack_size, INT32 priority, INT32 msg_q_size, USER_TASK_CB cb)
Creates a new user task.
-
Definition: azx_tasks.h:84
-
Definition: azx_tasks.h:87
+
Definition: azx_tasks.h:99
+
INT32(* azx_tasks_onTaskComplCB)(INT32, INT32, INT32)
task complete return user function
Definition: azx_tasks.h:80
+
Definition: azx_tasks.h:102
diff --git a/LE910Cx_L/AZX_Docs/html/azx__utils_8h__incl.md5 b/LE910Cx_L/AZX_Docs/html/azx__utils_8h__incl.md5 index af81da44..5f9db6e7 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__utils_8h__incl.md5 +++ b/LE910Cx_L/AZX_Docs/html/azx__utils_8h__incl.md5 @@ -1 +1 @@ -5fbede61aed01c8ea2e24e351d14d872 \ No newline at end of file +6103f4b67032cbceb51f7a9db08b3ff4 \ No newline at end of file diff --git a/LE910Cx_L/AZX_Docs/html/azx__utils_8h__incl.png b/LE910Cx_L/AZX_Docs/html/azx__utils_8h__incl.png index ef67fd99..621f7a8c 100644 Binary files a/LE910Cx_L/AZX_Docs/html/azx__utils_8h__incl.png and b/LE910Cx_L/AZX_Docs/html/azx__utils_8h__incl.png differ diff --git a/LE910Cx_L/AZX_Docs/html/azx__utils_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__utils_8h_source.html index 3ad948a3..0148a632 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__utils_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__utils_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__zlib_8h.html b/LE910Cx_L/AZX_Docs/html/azx__zlib_8h.html index 126ec1c4..1cd666e6 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__zlib_8h.html +++ b/LE910Cx_L/AZX_Docs/html/azx__zlib_8h.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx__zlib_8h_source.html b/LE910Cx_L/AZX_Docs/html/azx__zlib_8h_source.html index 48aec323..6bf321ac 100644 --- a/LE910Cx_L/AZX_Docs/html/azx__zlib_8h_source.html +++ b/LE910Cx_L/AZX_Docs/html/azx__zlib_8h_source.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx_base64_example_8c-example.html b/LE910Cx_L/AZX_Docs/html/azx_base64_example_8c-example.html index 33f19000..ef1ef889 100644 --- a/LE910Cx_L/AZX_Docs/html/azx_base64_example_8c-example.html +++ b/LE910Cx_L/AZX_Docs/html/azx_base64_example_8c-example.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
diff --git a/LE910Cx_L/AZX_Docs/html/azx_ftp_example_8c-example.html b/LE910Cx_L/AZX_Docs/html/azx_ftp_example_8c-example.html index d3f6c612..a9e11779 100644 --- a/LE910Cx_L/AZX_Docs/html/azx_ftp_example_8c-example.html +++ b/LE910Cx_L/AZX_Docs/html/azx_ftp_example_8c-example.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -153,11 +153,11 @@
55  if ( f->fsz )
56  {
57  double pct = (xfered * 100.0) / f->fsz;
-
58  AZX_LOG_INFO("%s %5.2f%% %u\r\n", f->fnm, pct, xfered);
+
58  AZX_LOG_INFO("%s %5.2f%% %u\r\n", f->fnm, pct, xfered);
59  }
60  else
61  {
-
62  AZX_LOG_INFO("%s %u\r\rn", f->fnm, xfered);
+
62  AZX_LOG_INFO("%s %u\r\rn", f->fnm, xfered);
63  }
64 
65  return 1;
@@ -177,7 +177,7 @@
79 
80  switch(level)
81  {
- +
83  offset = sprintf(buf, "%5u.%03u %6s - %15s:%-4d - %32s - ",
84  now / 1000, now % 1000,
85  "ERR - ",
@@ -185,10 +185,10 @@
87  function);
88  break;
89  break;
- +
91  offset = 0;
92  break;
- +
94  offset = sprintf(buf, "%5u.%03u %6s - %15s:%-4d - %32s - ",
95  now / 1000, now % 1000,
96  "DBG - ",
@@ -203,7 +203,7 @@
105  vsnprintf(buf + offset, bufSize-offset, fmt, arg);
106  va_end(arg);
107 
-
108  return AZX_LOG_INFO(buf);
+
108  return AZX_LOG_INFO(buf);
109 }
110 
111 
@@ -213,11 +213,11 @@
115  if ( f->fsz )
116  {
117  double pct = (xfered * 100.0) / f->fsz;
-
118  AZX_LOG_INFO("%s %5.2f%% %u\r\n", f->fnm, pct, xfered);
+
118  AZX_LOG_INFO("%s %5.2f%% %u\r\n", f->fnm, pct, xfered);
119  }
120  else
121  {
-
122  AZX_LOG_INFO("%s %u\r\rn", f->fnm, xfered);
+
122  AZX_LOG_INFO("%s %u\r\rn", f->fnm, xfered);
123  }
124 
125  return 1;
@@ -228,13 +228,13 @@
130 {
131  switch(ev)
132  {
-
133  case DATA_CB_START:
+
133  case DATA_CB_START:
134  //do some initialization before receiving data (e.g. open a file descriptor)
135  break;
-
136  case DATA_CB_DATA:
+
136  case DATA_CB_DATA:
137  //manage the data
138  break;
-
139  case DATA_CB_END:
+
139  case DATA_CB_END:
140  //finalize
141  break;
142  }
@@ -247,8 +247,8 @@
149 
150 void M2MB_main( int argc, char **argv )
151 {
-
152  AZX_FTP_OPTIONS_T opts;
- +
152  AZX_FTP_OPTIONS_T opts;
+
154 
155 
156  int ret;
@@ -264,17 +264,17 @@
166  ....
167  */
168 
- -
170  opts.cbFunc = ftp_debug_hk;
-
171  opts.cid = 3; //use CID 3
+ +
170  opts.cbFunc = ftp_debug_hk;
+
171  opts.cid = 3; //use CID 3
172 
-
173  ret = azx_ftp_init(&opts);
+
173  ret = azx_ftp_init(&opts);
174  if (ret != 1)
175  {
176  MYLOG("failed initializing ftp_client... \r\n");
177  return;
178  }
-
179  ret = azx_ftp_connect(FTP_ADDR, &ftp_client);
+
179  ret = azx_ftp_connect(FTP_ADDR, &ftp_client);
180  if (ret == 1)
181  {
182  MYLOG("Connected.\r\n");
@@ -284,7 +284,7 @@
186  MYLOG("failed connecting.. \r\n");
187  return;
188  }
-
189  ret = azx_ftp_login(FTP_USER, FTP_PASS, ftp_client);
+
189  ret = azx_ftp_login(FTP_USER, FTP_PASS, ftp_client);
190  if (ret == 1)
191  {
192  MYLOG("FTP login successful.\r\n");
@@ -299,7 +299,7 @@
201  f.fsz = 0;
202 
203  MYLOG("Get remote file %s size\r\n", DLFILE);
-
204  ret = azx_ftp_size(f.fnm, &file_size, AZX_FTP_BINARY, ftp_client);
+
204  ret = azx_ftp_size(f.fnm, &file_size, AZX_FTP_BINARY, ftp_client);
205  if (ret == 1)
206  {
207  MYLOG("Done. File size: %u.\r\n", file_size);
@@ -307,12 +307,12 @@
209  }
210  else
211  {
-
212  MYLOG("failed file size.. error: %s \r\n", azx_ftp_lastResponse(ftp_client));
+
212  MYLOG("failed file size.. error: %s \r\n", azx_ftp_lastResponse(ftp_client));
213  return;
214  }
215 
216  MYLOG("Get remote file %s last modification date\r\n", (char*)DLFILE);
-
217  ret = azx_ftp_modDate((char*)DLFILE, tmp, sizeof(tmp), ftp_client);
+
217  ret = azx_ftp_modDate((char*)DLFILE, tmp, sizeof(tmp), ftp_client);
218  if (ret == 1)
219  {
220  MYLOG("Done. File last mod date: %s.\r\n", tmp);
@@ -325,24 +325,24 @@
227 
228  /*Download to file*/
229  {
-
230  AZX_FTP_XFER_T local;
-
231  azx_ftp_clearCallback(ftp_client);
+
230  AZX_FTP_XFER_T local;
+
231  azx_ftp_clearCallback(ftp_client);
232 
233  memset(&local, 0, sizeof(AZX_FTP_XFER_T));
234 
-
235  cb_opts.cbFunc = log_progress;
-
236  cb_opts.cbArg = &f; /* Pass the file name and size as parameter */
-
237  cb_opts.idleTime = 1000; /* Call the callback function every second if there were no data exchange */
-
238  cb_opts.bytesXferred = 1024; /* Call the callback function every 1024 Bytes data exchange */
+
235  cb_opts.cbFunc = log_progress;
+
236  cb_opts.cbArg = &f; /* Pass the file name and size as parameter */
+
237  cb_opts.idleTime = 1000; /* Call the callback function every second if there were no data exchange */
+
238  cb_opts.bytesXferred = 1024; /* Call the callback function every 1024 Bytes data exchange */
239 
-
240  local.type = AZX_FTP_XFER_FILE; //define local type as file: it will be stored in filesystem
-
241  local.payload.fileInfo.path = (char*) "/mod/" DLFILE; //define the local file path
+
240  local.type = AZX_FTP_XFER_FILE; //define local type as file: it will be stored in filesystem
+
241  local.payload.fileInfo.path = (char*) "/mod/" DLFILE; //define the local file path
242 
-
243  azx_ftp_setCallback(&opt,ftp_client);
+
243  azx_ftp_setCallback(&opt,ftp_client);
244 
245  MYLOG("starting download of remote file %s\r\n", DLFILE);
246 
-
247  ret = azx_ftp_get(&(local), DLFILE, FTPLIB_BINARY, ftp_client);
+
247  ret = azx_ftp_get(&(local), DLFILE, FTPLIB_BINARY, ftp_client);
248  if (ret == 1)
249  {
250  MYLOG("download successful.\r\n");
@@ -388,7 +388,7 @@
290 
291 
292  MYLOG("starting upload of local file %s\r\n", local.payload.fileInfo.path);
-
293  ret = azx_ftp_put(&(local), "m2mb_test.txt", AZX_FTP_BINARY, ftp_client);
+
293  ret = azx_ftp_put(&(local), "m2mb_test.txt", AZX_FTP_BINARY, ftp_client);
294 
295  if (ret == 1)
296  {
@@ -427,10 +427,10 @@
329  opt.idleTime = 1000;
330  opt.bytesXferred = 1024;
331 
-
332  local.type = AZX_FTP_XFER_BUFF; //set local recipient type as buffer
-
333  local.payload.buffInfo.buffer = (char*) m2mb_os_malloc(file_size + 2); //pass the buffer to be used to hold file content
-
334  local.payload.buffInfo.bufferSize = file_size + 1; //pass buffer size
-
335  local.payload.buffInfo.buf_cb = my_data_cb; //the data callback needed to manage the data.
+
332  local.type = AZX_FTP_XFER_BUFF; //set local recipient type as buffer
+
333  local.payload.buffInfo.buffer = (char*) m2mb_os_malloc(file_size + 2); //pass the buffer to be used to hold file content
+
334  local.payload.buffInfo.bufferSize = file_size + 1; //pass buffer size
+
335  local.payload.buffInfo.buf_cb = my_data_cb; //the data callback needed to manage the data.
336 
337  memset(local.payload.buffInfo.buffer,0,local.payload.buffInfo.bufferSize + 2);
338 
@@ -464,21 +464,21 @@
366  }
367 
368  MYLOG("FTP quit...\r\n");
-
369  azx_ftp_quit(ftp_client);
+
369  azx_ftp_quit(ftp_client);
370 }
-
UINT32 idleTime
Definition: azx_ftp.h:585
+
UINT32 idleTime
Definition: azx_ftp.h:586
INT32 azx_ftp_modDate(const CHAR *path, CHAR *dt, INT32 max, AZX_FTP_NET_BUF_T *nControl)
FTP retrieve modification date of remote file.
#define AZX_FTP_BINARY
Definition: azx_ftp.h:107
AZX_FTP_DEBUG_HOOK_LEVELS_E level
Definition: azx_ftp.h:348
-
AZX_FTP_FILE_INFO_T fileInfo
Definition: azx_ftp.h:557
+
AZX_FTP_FILE_INFO_T fileInfo
Definition: azx_ftp.h:558
Definition: azx_ftp.h:373
INT32 azx_ftp_setCallback(const AZX_FTP_CALLBACK_OPTIONS_T *opt, AZX_FTP_NET_BUF_T *nControl)
FTP callback set function.
CHAR * path
Definition: azx_ftp.h:471
-
void * cbArg
Definition: azx_ftp.h:583
+
void * cbArg
Definition: azx_ftp.h:584
CHAR * azx_ftp_lastResponse(AZX_FTP_NET_BUF_T *nControl)
Return last FTP server response.
-
UINT32 bytesXferred
Definition: azx_ftp.h:584
+
UINT32 bytesXferred
Definition: azx_ftp.h:585
Definition: azx_ftp.h:369
union AZX_FTP_XFER_TAG::@0 payload
unsigned char cid
Definition: azx_ftp.h:349
@@ -491,14 +491,14 @@
Definition: azx_ftp.h:521
AZX_FTP_DEBUG_HOOK_LEVELS_E
Logging levels for FTP logs.
Definition: azx_ftp.h:244
Application configuration settings conveniently located here.
-
AZX_FTP_XFER_E type
Definition: azx_ftp.h:554
+
AZX_FTP_XFER_E type
Definition: azx_ftp.h:555
Definition: azx_ftp.h:248
UINT32 bufferSize
Definition: azx_ftp.h:506
-
AZX_FTP_BUFFER_T buffInfo
Definition: azx_ftp.h:558
-
azx_ftp_callback cbFunc
Definition: azx_ftp.h:582
+
AZX_FTP_BUFFER_T buffInfo
Definition: azx_ftp.h:559
+
azx_ftp_callback cbFunc
Definition: azx_ftp.h:583
INT32 azx_ftp_size(const CHAR *path, UINT32 *size, CHAR mode, AZX_FTP_NET_BUF_T *nControl)
FTP ask file size to remote server.
INT32 azx_ftp_connect(const CHAR *host, AZX_FTP_NET_BUF_T **nControl)
FTP connection function.
-
Generic transfer information structure.
Definition: azx_ftp.h:552
+
Generic transfer information structure.
Definition: azx_ftp.h:553
Ftp Client parameters structure.
Definition: azx_ftp.h:370
INT32 azx_ftp_login(const CHAR *user, const CHAR *pass, AZX_FTP_NET_BUF_T *nControl)
FTP login function.
@@ -509,8 +509,9 @@
INT32 azx_ftp_clearCallback(AZX_FTP_NET_BUF_T *nControl)
FTP callback clear function.
Definition: azx_ftp.h:247
uint32_t azx_ftp_fsz_t
Definition: azx_ftp.h:174
+
#define AZX_LOG_INFO(a...)
Definition: azx_log.h:321
void azx_ftp_quit(AZX_FTP_NET_BUF_T *nControl)
FTP close session.
-
Definition: azx_ftp.h:580
+
Definition: azx_ftp.h:581
INT32 azx_ftp_get(AZX_FTP_XFER_T *output, const CHAR *path, CHAR mode, AZX_FTP_NET_BUF_T *nControl)
FTP retrieve remote file.
diff --git a/LE910Cx_L/AZX_Docs/html/azx_https_example_8c-example.html b/LE910Cx_L/AZX_Docs/html/azx_https_example_8c-example.html index 358d8129..9ff36acc 100644 --- a/LE910Cx_L/AZX_Docs/html/azx_https_example_8c-example.html +++ b/LE910Cx_L/AZX_Docs/html/azx_https_example_8c-example.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -114,148 +114,155 @@
16 
17 
18 
-
19 INT8 cbEvt = 0;
-
20 int CB_COUNT = 0;
-
21 
-
22 INT32 DATA_CB(void *buffer, UINT32 size, INT8* flag)
-
23 {
+
19 INT32 g_cbArg = 0;
+
20 
+
21 INT32 DATA_CB(void *buffer, UINT32 size, void *cbArg)
+
22 {
+
23  INT32 CB_COUNT = *(INT32*)cbArg;
24  /**** Stop http donwload on a specific user event
25  CB_COUNT++;
26  if(CB_COUNT >= 3)
27  {
28  AZX_LOG_INFO("\r\nCB COUNT LIMIT REACHED\r\n");
-
29  *flag = 1;
-
30  return 0;
+
29 
+
30  return 1;
31  }
32  */
-
33  strcat((char*) buffer,"\0");
-
34  MYLOG("%s",buffer);
-
35 
-
36  return 0;
-
37 }
-
38 
-
39 static int http_debug_hk(AZX_HTTP_LOG_HOOK_LEVELS_E level, const char *function, const char *file, int line, const char *fmt, ...)
-
40 {
-
41  char buf[512];
-
42  int bufSize = sizeof(buf);
-
43  va_list arg;
-
44  INT32 offset = 0;
-
45  UINT32 now = (UINT32) ( m2mb_os_getSysTicks() * m2mb_os_getSysTickDuration_ms() );
-
46 
-
47  memset(buf,0,bufSize);
-
48 
-
49  switch(level)
-
50  {
-
51  case AZX_HTTP_LOG_ERROR:
-
52  offset = sprintf(buf, "%5u.%03u %6s %32s:%-4d - ",
-
53  now / 1000, now % 1000,
-
54  "ERR - ",
-
55  function,
-
56  line
-
57  );
-
58  break;
-
59  case AZX_HTTP_LOG_INFO:
-
60  offset = 0;
-
61  break;
-
62  case AZX_HTTP_LOG_DEBUG:
-
63  offset = sprintf(buf, "%5u.%03u %6s %32s:%-4d - ",
-
64  now / 1000, now % 1000,
-
65  "DBG - ",
-
66  function,
-
67  line
-
68  );
-
69 
-
70  break;
-
71  }
-
72  va_start(arg, fmt);
-
73  vsnprintf(buf + offset, bufSize-offset, fmt, arg);
-
74  va_end(arg);
-
75 
-
76  return MYLOG(buf);
-
77 
-
78 }
-
79 
-
80 void M2MB_main( int argc, char **argv )
-
81 {
-
82  int ret;
-
83  AZX_HTTP_OPTIONS opts;
-
84  AZX_HTTP_INFO hi;
-
85  AZX_HTTP_SSL tls;
- -
87 
-
88  /*Initialize PDP context*/
-
89 
-
90  opts.logFunc = http_debug_hk;
- -
92  opts.cid = _CID;
-
93  azx_http_initialize(&opts);
+
33  if(buffer != NULL) /*received data*/
+
34  {
+
35  strcat((char*) buffer,"\0");
+
36  MYLOG("%s",buffer);
+
37  }
+
38  else /*transmitted data*/
+
39  {
+
40  /*size will contain the amount of transmitted data*/
+
41  }
+
42 
+
43  return 0;
+
44 }
+
45 
+
46 static int http_debug_hk(AZX_HTTP_LOG_HOOK_LEVELS_E level, const char *function, const char *file, int line, const char *fmt, ...)
+
47 {
+
48  char buf[512];
+
49  int bufSize = sizeof(buf);
+
50  va_list arg;
+
51  INT32 offset = 0;
+
52  UINT32 now = (UINT32) ( m2mb_os_getSysTicks() * m2mb_os_getSysTickDuration_ms() );
+
53 
+
54  memset(buf,0,bufSize);
+
55 
+
56  switch(level)
+
57  {
+
58  case AZX_HTTP_LOG_ERROR:
+
59  offset = sprintf(buf, "%5u.%03u %6s %32s:%-4d - ",
+
60  now / 1000, now % 1000,
+
61  "ERR - ",
+
62  function,
+
63  line
+
64  );
+
65  break;
+
66  case AZX_HTTP_LOG_INFO:
+
67  offset = 0;
+
68  break;
+
69  case AZX_HTTP_LOG_DEBUG:
+
70  offset = sprintf(buf, "%5u.%03u %6s %32s:%-4d - ",
+
71  now / 1000, now % 1000,
+
72  "DBG - ",
+
73  function,
+
74  line
+
75  );
+
76 
+
77  break;
+
78  }
+
79  va_start(arg, fmt);
+
80  vsnprintf(buf + offset, bufSize-offset, fmt, arg);
+
81  va_end(arg);
+
82 
+
83  return MYLOG(buf);
+
84 
+
85 }
+
86 
+
87 void M2MB_main( int argc, char **argv )
+
88 {
+
89  int ret;
+
90  AZX_HTTP_OPTIONS opts;
+
91  AZX_HTTP_INFO hi;
+
92  AZX_HTTP_SSL tls;
+
94 
-
95 
-
96  cbOpt.user_cb_bytes_size = 1500; //call data callback every 1500 bytes
-
97  cbOpt.cbFunc = DATA_CB;
-
98  cbOpt.cbData = m2mb_os_malloc(cbOpt.user_cb_bytes_size + 1); //one more element for \0
-
99  cbOpt.cbEvtFlag = &cbEvt;
-
100 
-
101  azx_http_setCB(&hi,cbOpt);
+
95  /*Initialize PDP context*/
+
96 
+
97  opts.logFunc = http_debug_hk;
+ +
99  opts.cid = _CID;
+
100  azx_http_initialize(&opts);
+
101 
102 
-
103  if(-1 == (ret = azx_http_SSLInit(&tls,M2MB_SSL_NO_AUTH)))
-
104  {
-
105  MYLOG("SSL init error \r\n");
-
106  }
+
103  cbOpt.user_cb_bytes_size = 1500; //call data callback every 1500 bytes
+
104  cbOpt.cbFunc = DATA_CB;
+
105  cbOpt.cbData = m2mb_os_malloc(cbOpt.user_cb_bytes_size + 1); //one more element for \0
+
106  cbOpt.cbArg = &g_cbArg;
107 
-
108  hi.tls = tls;
+
108  azx_http_setCB(&hi,cbOpt);
109 
-
110 
-
111  /******* GET *****/
-
112  MYLOG("GET request \r\n");
-
113  //ret = azx_http_get(&hi,(char*) "https://www.google.com"); //HTTPS & CHUNKED
-
114  //ret = azx_http_get(&hi,"https://modules.telit.com", response, sizeof(response)); // HTTPS + SSL server auth
-
115  ret = azx_http_get(&hi,(char*) "http://linux-ip.net"); // HTTP only
-
116  //hi.request.auth_type = azx_AuthSchemaBasic;
-
117  //ret = azx_http_get(&hi,"http://guest:guest@jigsaw.w3.org/HTTP/Basic/"); //BASIC AUTH
-
118 
-
119 
-
120  /******* HEAD *****/
-
121  //MYLOG("HEAD request \r\n");
-
122  //ret = azx_http_head(&hi,(char*) "https://www.google.com");
-
123 
-
124  /* RESET
-
125  memset(&hi, 0, sizeof(HTTP_INFO));
-
126  memset(response, 0, sizeof(response));
-
127  hi.tls = tls;
-
128  */
-
129 
-
130  /******* POST ****
-
131  MYLOG("POST request \r\n");
-
132  char* data = "This is expected to be sent";
-
133  hi.request.post_data = (char *)m2mb_os_malloc(sizeof(char)* (strlen(data) + 1));
-
134  memset(hi.request.post_data, 0, sizeof(sizeof(char)* (strlen(data) + 1)));
-
135  strcpy(hi.request.post_data,data);
-
136  ret = azx_http_post(&hi,(char *)"http://postman-echo.com:80/post");
-
137  */
-
138 }
+
110  if(-1 == (ret = azx_http_SSLInit(&tls,M2MB_SSL_NO_AUTH)))
+
111  {
+
112  MYLOG("SSL init error \r\n");
+
113  }
+
114 
+
115  hi.tls = tls;
+
116 
+
117 
+
118  /******* GET *****/
+
119  MYLOG("GET request \r\n");
+
120  //ret = azx_http_get(&hi,(char*) "https://www.google.com"); //HTTPS & CHUNKED
+
121  //ret = azx_http_get(&hi,"https://modules.telit.com", response, sizeof(response)); // HTTPS + SSL server auth
+
122  ret = azx_http_get(&hi,(char*) "http://linux-ip.net"); // HTTP only
+
123  //hi.request.auth_type = azx_AuthSchemaBasic;
+
124  //ret = azx_http_get(&hi,"http://guest:guest@jigsaw.w3.org/HTTP/Basic/"); //BASIC AUTH
+
125 
+
126 
+
127  /******* HEAD *****/
+
128  //MYLOG("HEAD request \r\n");
+
129  //ret = azx_http_head(&hi,(char*) "https://www.google.com");
+
130 
+
131  /* RESET
+
132  memset(&hi, 0, sizeof(HTTP_INFO));
+
133  memset(response, 0, sizeof(response));
+
134  hi.tls = tls;
+
135  */
+
136 
+
137  /******* POST ****
+
138  MYLOG("POST request \r\n");
+
139  char* data = "This is expected to be sent";
+
140  hi.request.post_data = (char *)m2mb_os_malloc(sizeof(char)* (strlen(data) + 1));
+
141  memset(hi.request.post_data, 0, sizeof(sizeof(char)* (strlen(data) + 1)));
+
142  strcpy(hi.request.post_data,data);
+
143  ret = azx_http_post(&hi,(char *)"http://postman-echo.com:80/post");
+
144  */
+
145 }
void azx_http_setCB(AZX_HTTP_INFO *hi, azx_httpCallbackOptions http_cb)
Sets user callback.
+
void * cbArg
Definition: azx_https.h:242
azx_httpDebugHook logFunc
Definition: azx_https.h:397
-
The HTTP operation structure.
Definition: azx_https.h:258
+
The HTTP operation structure.
Definition: azx_https.h:259
int azx_http_SSLInit(AZX_HTTP_SSL *sslInfo)
Initialize SSL data.
-
Definition: azx_https.h:296
-
Definition: azx_https.h:294
-
The HTTP callback options structure.
Definition: azx_https.h:234
+
Definition: azx_https.h:297
+
Definition: azx_https.h:295
+
The HTTP callback options structure.
Definition: azx_https.h:235
void azx_http_initialize(AZX_HTTP_OPTIONS *opts)
Initialize HTTPs client parameters.
-
Definition: azx_https.h:295
-
INT8 * cbEvtFlag
Definition: azx_https.h:241
-
void * cbData
Definition: azx_https.h:239
+
Definition: azx_https.h:296
+
void * cbData
Definition: azx_https.h:240
HTTPs client.
-
AZX_HTTP_LOG_HOOK_LEVELS_E
HTTP Log global level.
Definition: azx_https.h:291
-
Definition: azx_https.h:393
-
UINT32 user_cb_bytes_size
Definition: azx_https.h:237
-
unsigned char cid
Definition: azx_https.h:395
+
AZX_HTTP_LOG_HOOK_LEVELS_E
HTTP Log global level.
Definition: azx_https.h:292
+
Definition: azx_https.h:394
+
UINT32 user_cb_bytes_size
Definition: azx_https.h:238
+
unsigned char cid
Definition: azx_https.h:399
int azx_http_get(AZX_HTTP_INFO *hi, char *url)
Run a HTTP GET request.
AZX_HTTP_LOG_HOOK_LEVELS_E loglevel
Definition: azx_https.h:396
-
HTTP SSL structure.
Definition: azx_https.h:132
-
AZX_HTTPS_USER_CB cbFunc
Definition: azx_https.h:242
+
HTTP SSL structure.
Definition: azx_https.h:133
+
AZX_HTTPS_USER_CB cbFunc
Definition: azx_https.h:243
Application configuration settings conveniently located here.
-
Definition: azx_pduCommon.h:288
+
Definition: azx_pduCommon.h:289
INT32 azx_pdu_decode(UINT8 *pdu, UINT32 pdu_len, pdu_struct *packet, CHAR *number, CHAR *msg)
Decodes an incoming PDU in binary format.
Decoding functionalities for PDUs.
INT32 azx_pdu_decodeString(CHAR *pdu_str, pdu_struct *packet, CHAR *number, CHAR *msg)
Decodes an incoming PDU in ASCII string format.
Logging utilities to print on available output channels.
+
#define AZX_LOG_INFO(a...)
Definition: azx_log.h:321
-
Definition: azx_tasks.h:99
-
Definition: azx_tasks.h:114
-
INT32 azx_tasks_sendMessageToTask(INT8 task_id, INT32 type, INT32 param1, INT32 param2)
Sends a message to a task.
+
INT32 azx_tasks_destroyTask(INT32 task_id)
Destroys an user task.
+
Definition: azx_tasks.h:116
+
INT32 azx_tasks_sendMessageToTask(INT32 task_id, INT32 type, INT32 param1, INT32 param2)
Sends a message to a task.
+
Definition: azx_tasks.h:131
Application configuration settings conveniently located here.
INT32 azx_tasks_init(void)
Initializes the parameters needed to use tasks.
-
INT32 azx_tasks_destroyTask(INT8 task_id)
Destroys an user task.
Tasks related utilities.
INT32 azx_tasks_createTask(CHAR *task_name, INT32 stack_size, INT32 priority, INT32 msg_q_size, USER_TASK_CB cb)
Creates a new user task.
+
#define AZX_LOG_INFO(a...)
Definition: azx_log.h:321
diff --git a/LE910Cx_L/AZX_Docs/html/functions.html b/LE910Cx_L/AZX_Docs/html/functions.html index 421a5994..b4a3614a 100644 --- a/LE910Cx_L/AZX_Docs/html/functions.html +++ b/LE910Cx_L/AZX_Docs/html/functions.html @@ -34,7 +34,7 @@ Logo
AZX (AppZone eXtensions) documentation -  1.1.15-CxL +  1.1.19-CxL
A set of companion utilities that make AZ development easier
@@ -113,9 +113,6 @@

- a -