Renesas PTX1xxR IoT-Reader API Version 7.3.1
Renesas Software Stack for IoT-Reader Applications
ptxNSC_System.h
Go to the documentation of this file.
1
43#ifndef PTXNSC_SYSTEM_H_
44#define PTXNSC_SYSTEM_H_
45
51#include "ptx_Status.h"
52#include <stddef.h>
53
54#ifdef __cplusplus
55extern "C"
56{
57#endif
58
59/*
60 * ####################################################################################################################
61 * DEFINES / TYPES / INTERNALS
62 * ####################################################################################################################
63 */
64
68#define PTX_NSC_SYSTEM_CONFIG_NAME_CAPACITY 64
69
70/*
71 * Forward declaration
72 */
73struct ptxNSC_System;
74struct ptxNSC;
75
93
104
105/*
106 * ####################################################################################################################
107 * FUNCTIONS API.
108 * ####################################################################################################################
109 */
110
120
130
140
150
159
169ptxStatus_t ptxNSC_System_SetConfigFileName (struct ptxNSC *nscCtx, const char *fileName);
170
180
181#ifdef __cplusplus
182}
183#endif
184
185
188#endif /* Guard */
189
190
ptxStatus_t ptxNSC_System_GetConfig(struct ptxNSC *nscCtx, ptxNSC_System_t *sysParams)
Function used to retrieve the current System-Config parameters.
ptxStatus_t ptxNSC_System_Init(struct ptxNSC *nscCtx)
Initialize the System-component.
ptxStatus_t ptxNSC_System_LoadParamsNvm(struct ptxNSC *nscCtx, ptxNSC_System_t *sysParams)
Function used to load System-Config parameters from NVM to given parameter structure.
enum ptxNSC_System_LoadParams ptxNSC_System_LoadParams_t
Choice of System value select.
ptxStatus_t ptxNSC_System_ApplyDefaults(struct ptxNSC *nscCtx)
Function used to apply default System-Config parameters.
#define PTX_NSC_SYSTEM_CONFIG_NAME_CAPACITY
Definition ptxNSC_System.h:68
ptxStatus_t ptxNSC_System_DeInit(struct ptxNSC *nscCtx)
De-Initialize the NVM.
ptxStatus_t ptxNSC_System_SetConfigFileName(struct ptxNSC *nscCtx, const char *fileName)
Set System Config File Name.
ptxNSC_System_LoadParams
Choice of System value select.
Definition ptxNSC_System.h:98
struct ptxNSC_System ptxNSC_System_t
System confiurations.
ptxStatus_t ptxNSC_System_SetConfig(struct ptxNSC *nscCtx, ptxNSC_System_t *sysParams)
Function used to directly set System-Config parameters.
@ SYSCONFIG_DEFAULT
Definition ptxNSC_System.h:99
@ SYSCONFIG_FROMFILE
Definition ptxNSC_System.h:100
@ SYSCONFIG_MAXNUM
Definition ptxNSC_System.h:102
@ SYSCONFIG_ALWAYS
Definition ptxNSC_System.h:101
uint16_t ptxStatus_t
Status Type.
Definition ptx_Status.h:82
System confiurations.
Definition ptxNSC_System.h:80
uint8_t PowerAmpTempThreshold
Definition ptxNSC_System.h:85
uint8_t Version
Definition ptxNSC_System.h:83
uint8_t UseExtCfg
Definition ptxNSC_System.h:84
uint8_t conHost[4]
Definition ptxNSC_System.h:89
uint8_t ConClkSource
Definition ptxNSC_System.h:87
char ConfigFileName[PTX_NSC_SYSTEM_CONFIG_NAME_CAPACITY]
Definition ptxNSC_System.h:81
uint8_t ConVarLBS
Definition ptxNSC_System.h:88
uint8_t TempSensorValue
Definition ptxNSC_System.h:91
uint8_t conHostCE[4]
Definition ptxNSC_System.h:90
uint8_t Flags
Definition ptxNSC_System.h:82
uint8_t PowerAmpOverCurrThreshold
Definition ptxNSC_System.h:86
Definition ptxNSC_Interface.h:152