1 #ifndef __RAK_SYSTEM_H__ 2 #define __RAK_STSTEM_H__ 96 #define CHANGE_ATCMD_PERM(_atcmd_name,_atcmd_perm) \ 97 ATCMD_ITEM(atcmd_queue, atcmd_permission_item UNIQUE_NAME(permissions)) = \ 99 .atcmd_id = _atcmd_name, \ 100 .permission = _atcmd_perm, \ 108 #define RAK_FS_OK SERVICE_FS_OK 109 #define RAK_FS_ERR_NOT_MOUNTED SERVICE_FS_ERR_NOT_MOUNTED 110 #define RAK_FS_ERR_FULL SERVICE_FS_ERR_FULL 111 #define RAK_FS_ERR_NOT_FOUND SERVICE_FS_ERR_NOT_FOUND 112 #define RAK_FS_ERR_END_OF_OBJECT SERVICE_FS_ERR_END_OF_OBJECT 113 #define RAK_FS_ERR_DELETED SERVICE_FS_ERR_DELETED 114 #define RAK_FS_ERR_NOT_FINALIZED SERVICE_FS_ERR_NOT_FINALIZED 115 #define RAK_FS_ERR_NOT_INDEX SERVICE_FS_ERR_NOT_INDEX 116 #define RAK_FS_ERR_OUT_OF_FILE_DESCS SERVICE_FS_ERR_OUT_OF_FILE_DESCS 117 #define RAK_FS_ERR_FILE_CLOSED SERVICE_FS_ERR_FILE_CLOSED 118 #define RAK_FS_ERR_FILE_DELETED SERVICE_FS_ERR_FILE_DELETED 119 #define RAK_FS_ERR_BAD_DESCRIPTOR SERVICE_FS_ERR_BAD_DESCRIPTOR 120 #define RAK_FS_ERR_IS_INDEX SERVICE_FS_ERR_IS_INDEX 121 #define RAK_FS_ERR_IS_FREE SERVICE_FS_ERR_IS_FREE 122 #define RAK_FS_ERR_INDEX_SPAN_MISMATCH SERVICE_FS_ERR_INDEX_SPAN_MISMATCH 123 #define RAK_FS_ERR_DATA_SPAN_MISMATCH SERVICE_FS_ERR_DATA_SPAN_MISMATCH 124 #define RAK_FS_ERR_INDEX_REF_FREE SERVICE_FS_ERR_INDEX_REF_FREE 125 #define RAK_FS_ERR_INDEX_REF_LU SERVICE_FS_ERR_INDEX_REF_LU 126 #define RAK_FS_ERR_INDEX_REF_INVALID SERVICE_FS_ERR_INDEX_REF_INVALID 127 #define RAK_FS_ERR_INDEX_FREE SERVICE_FS_ERR_INDEX_FREE 128 #define RAK_FS_ERR_INDEX_LU SERVICE_FS_ERR_INDEX_LU 129 #define RAK_FS_ERR_INDEX_INVALID SERVICE_FS_ERR_INDEX_INVALID 130 #define RAK_FS_ERR_NOT_WRITABLE SERVICE_FS_ERR_NOT_WRITABLE 131 #define RAK_FS_ERR_NOT_READABLE SERVICE_FS_ERR_NOT_READABLE 132 #define RAK_FS_ERR_CONFLICTING_NAME SERVICE_FS_ERR_CONFLICTING_NAME 133 #define RAK_FS_ERR_NOT_CONFIGURED SERVICE_FS_ERR_NOT_CONFIGURED 134 #define RAK_FS_ERR_NOT_A_FS SERVICE_FS_ERR_NOT_A_FS 135 #define RAK_FS_ERR_MOUNTED SERVICE_FS_ERR_MOUNTED 136 #define RAK_FS_ERR_ERASE_FAIL SERVICE_FS_ERR_ERASE_FAIL 137 #define RAK_FS_ERR_MAGIC_NOT_POSSIBLE SERVICE_FS_ERR_MAGIC_NOT_POSSIBLE 138 #define RAK_FS_ERR_NO_DELETED_BLOCKS SERVICE_FS_ERR_NO_DELETED_BLOCKS 139 #define RAK_FS_ERR_FILE_EXISTS SERVICE_FS_ERR_FILE_EXISTS 140 #define RAK_FS_ERR_NOT_A_FILE SERVICE_FS_ERR_NOT_A_FILE 141 #define RAK_FS_ERR_RO_NOT_IMPL SERVICE_FS_ERR_RO_NOT_IMPL 142 #define RAK_FS_ERR_RO_ABORTED_OPERATION SERVICE_FS_ERR_RO_ABORTED_OPERATION 143 #define RAK_FS_ERR_PROBE_TOO_FEW_BLOCKS SERVICE_FS_ERR_PROBE_TOO_FEW_BLOCKS 144 #define RAK_FS_ERR_PROBE_NOT_A_FS SERVICE_FS_ERR_PROBE_NOT_A_FS 145 #define RAK_FS_ERR_NAME_TOO_LONG SERVICE_FS_ERR_NAME_TOO_LONG 146 #define RAK_FS_ERR_IX_MAP_UNMAPPED SERVICE_FS_ERR_IX_MAP_UNMAPPED 147 #define RAK_FS_ERR_IX_MAP_MAPPED SERVICE_FS_ERR_IX_MAP_MAPPED 148 #define RAK_FS_ERR_IX_MAP_BAD_RANGE SERVICE_FS_ERR_IX_MAP_BAD_RANGE 149 #define RAK_FS_ERR_SEEK_BOUNDS SERVICE_FS_ERR_SEEK_BOUNDS 150 #define RAK_FS_ERR_INTERNAL SERVICE_FS_ERR_INTERNAL 151 #define RAK_FS_ERR_TEST SERVICE_FS_ERR_TEST 152 #define RAK_FS_ERR_CONTINUE SERVICE_FS_ERR_CONTINUE 456 void restoreDefault();
494 bool set(
char *passwd, uint32_t len);
825 int32_t
remove(
SERVICE_FS fs,
const char* path);
912 int32_t rename(
SERVICE_FS fs,
const char* old_name,
const char* new_name);
1001 bool get(uint32_t offset, uint8_t *buf, uint32_t len);
1014 bool set(uint32_t offset, uint8_t *buf, uint32_t len);
1044 bool set(
char * buf,uint32_t len);
1070 bool get(
char * buf,uint32_t len);
1247 bool destroy(
char *name);
flash flash
Definition: RAKSystem.h:1258
This file contains all error code for the hardware independent driver layer.
Definition: RAKSystem.h:371
this is the number of all available timers
Definition: RAKSystem.h:46
Definition: service_fs.h:135
cliVersion cliVer
Definition: RAKSystem.h:404
Definition: RAKSystem.h:987
Definition: udrv_timer.h:16
apiVersion apiVersion
Definition: RAKSystem.h:406
Definition: udrv_timer.h:30
Disables the AT command from being used.
Definition: RAKSystem.h:34
pword pword
Definition: RAKSystem.h:1252
Provide filesystem service layer.
cliVersion cliVersion
Definition: RAKSystem.h:405
Definition: udrv_timer.h:12
Definition: RAKSystem.h:1017
Definition: RAKSystem.h:1179
firmwareVersion firmwareVersion
Definition: RAKSystem.h:403
timer ID #2
Definition: RAKSystem.h:43
Definition: udrv_timer.h:29
timer ID #0
Definition: RAKSystem.h:41
Provide battery service layer.
timer timer
Definition: RAKSystem.h:1261
void * SERVICE_FS
Definition: service_fs.h:161
void(* RAK_TIMER_HANDLER)(void *data)
Definition: RAKSystem.h:52
The C++ wrapper for watch dog functions.
modelId modelId
Definition: RAKSystem.h:408
This timer is only triggered one time.
Definition: RAKSystem.h:55
task task
Definition: RAKSystem.h:1250
Definition: udrv_timer.h:11
void(* RAK_TASK_HANDLER)(void)
Definition: RAKSystem.h:62
alias alias
Definition: RAKSystem.h:1260
Definition: udrv_timer.h:13
atMode atMode
Definition: RAKSystem.h:1254
Definition: service_fs.h:111
Write permission allows for writting a variable data only and disables any read functionality.
Definition: RAKSystem.h:31
firmwareVersion firmwareVer
Definition: RAKSystem.h:402
Definition: service_fs.h:124
Special functionality that allows for setting variable once and only allows for reading after...
Definition: RAKSystem.h:33
Definition: RAKSystem.h:221
This timer is triggered periodically.
Definition: RAKSystem.h:56
Definition: RAKSystem.h:281
RAK_TIMER_MODE
Definition: RAKSystem.h:54
Definition: RAKSystem.h:164
Definition: RAKSystem.h:1177
Provide a hardware independent serial driver layer for API layer to use.
Definition: service_fs.h:147
modelId hwModel
Definition: RAKSystem.h:407
Definition: udrv_timer.h:15
Read permission allows for reading a variable data only and disables any write functionality.
Definition: RAKSystem.h:32
bat bat
Definition: RAKSystem.h:1253
Definition: RAKSystem.h:561
RAK_AT_PERMISSION
Definition: RAKSystem.h:30
Definition: RAKSystem.h:458
int(* PF_handle)(SERIAL_PORT port, char *cmd, stParam *param)
Definition: atcmd.h:65
timer ID #4
Definition: RAKSystem.h:45
timer ID #3
Definition: RAKSystem.h:44
Definition: RAKSystem.h:589
timer ID #1
Definition: RAKSystem.h:42
chipId chipId
Definition: RAKSystem.h:409
scheduler scheduler
Definition: RAKSystem.h:1262
Provide NVM service layer.
Definition: RAKSystem.h:312
Definition: RAKSystem.h:157
Definition: udrv_timer.h:14
Definition: RAKSystem.h:1072
RAK_TIMER_ID
Definition: RAKSystem.h:40
The c++ wrapper for sleep functions.