Renesas PTX1xxR IoT-Reader API (non-OS) Version 7.3.1
Renesas Software Stack for IoT-Reader Applications (non-OS)
ptxNSC_System.h
Go to the documentation of this file.
1
49#ifndef PTXNSC_SYSTEM_H_
50#define PTXNSC_SYSTEM_H_
51
52#include "ptxStatus.h"
53#include <stddef.h>
54
55#ifdef __cplusplus
56extern "C" {
57#endif
58
59/*
60 * ####################################################################################################################
61 * DEFINES / TYPES / INTERNALS
62 * ####################################################################################################################
63 */
64
70# define SYSTEM_CFG_TAG_VERSION (0x00U)
71# define SYSTEM_CFG_TAG_PA_OVERCURRENT_TH (0x01U)
72# define SYSTEM_CFG_TAG_PA_TEMPERATURE_TH (0x02U)
73# define SYSTEM_CFG_TAG_CON_CLK_SOURCE (0x03U)
74# define SYSTEM_CFG_TAG_CON_VAR_LBS (0x04U)
75# define SYSTEM_CFG_TAG_CON_NHOST (0x05U)
76# define SYSTEM_CFG_TAG_CON_NHOST_CE (0x06U)
84# define SYSTEM_DEFAULT_VERSION (0x10U)
85# define SYSTEM_DEFAULT_PA_OVERCURRENT_TH (0x04U)
86# define SYSTEM_DEFAULT_PA_TEMPERATURE_TH (0xFFU)
87# define SYSTEM_DEFAULT_CON_CLK_SOURCE (0x00U)
88# define SYSTEM_DEFAULT_CON_VAR_LBS (0x20U)
89static const uint8_t SYSTEM_DEFAULT_CON_NHOST[4] = {0x78U, 0x00U, 0x00U, 0x00U};
90static const uint8_t SYSTEM_DEFAULT_CON_NHOST_CE[4] = {0x78U, 0x40U, 0x00U, 0x00U};
93/*
94 * Forward declaration
95 */
96struct ptxNSC_System;
97struct ptxNSC;
98
113
114
115/*
116 * ####################################################################################################################
117 * FUNCTIONS API.
118 * ####################################################################################################################
119 */
120
130
140
149
150#ifdef __cplusplus
151}
152#endif
153
154#endif /* Guard */
155
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_ApplyDefaults(struct ptxNSC *nscCtx)
Function used to apply default System-Config parameters.
struct ptxNSC_System ptxNSC_System_t
PTX NSC system values.
ptxStatus_t ptxNSC_System_SetConfig(struct ptxNSC *nscCtx, ptxNSC_System_t *sysParams)
Function used to directly set System-Config parameters.
uint16_t ptxStatus_t
Status Type.
Definition ptxStatus.h:70
PTX NSC system values.
Definition ptxNSC_System.h:103
uint8_t PowerAmpTempThreshold
Definition ptxNSC_System.h:106
uint8_t Version
Definition ptxNSC_System.h:104
uint8_t UseExtCfg
Definition ptxNSC_System.h:105
uint8_t conHost[4]
Definition ptxNSC_System.h:110
uint8_t ConClkSource
Definition ptxNSC_System.h:108
uint8_t ConVarLBS
Definition ptxNSC_System.h:109
uint8_t conHostCE[4]
Definition ptxNSC_System.h:111
uint8_t PowerAmpOverCurrThreshold
Definition ptxNSC_System.h:107
Main NSC component structure.
Definition ptxNSC.h:1184