AM62x MCU+ SDK  09.00.00
pok/v1/sdl_pok.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Texas Instruments Incorporated 2023
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  *
32  */
33 
47 #ifndef SDL_POK_H_
48 #define SDL_POK_H_
49 #include <sdl/dpl/sdl_dpl.h>
50 #include <sdl/pok/v1/sdl_pok_def.h>
51 #if defined (SOC_AM62x)
52 #include <sdl/include/am62x/sdlr_soc_baseaddress.h>
53 #include <sdl/include/am62x/sdlr_mcu_ctrl_mmr.h>
54 #endif
55 
56 #if defined (SOC_AM62Ax)
57 #include <sdl/include/am62ax/sdlr_soc_baseaddress.h>
58 #include <sdl/include/am62ax/sdlr_mcu_ctrl_mmr.h>
59 #endif
60 #ifdef __cplusplus
61 extern "C" {
62 #endif
63 
96 typedef struct SDL_Pok_Static_Reg_read{
97  uint8_t hystCtrl;
99  uint8_t hystCtrlOV;
101  uint8_t voltDetMode;
103  uint8_t trim;
105  uint8_t trimOV;
107  uint8_t deglitch;
109  bool porBGapOK;
114 
125 int32_t SDL_POK_enablePP(SDL_PRG_Inst instance, bool enable);
126 
141 
151 int32_t SDL_POK_init(SDL_POK_Inst instance, SDL_POK_config *pConfig);
152 
166 
169 #ifdef __cplusplus
170 }
171 #endif
172 #endif /* SDL_POK_H_ */
sdl_pok_def.h
Header file containing various enumerations, structure definitions and function declarations for the ...
SDL_POK_staticRegs::porBGapOK
bool porBGapOK
Definition: pok/v1/sdl_pok.h:109
SDL_POK_Inst
int8_t SDL_POK_Inst
Definition: sdl_pok_def.h:135
SDL_POK_staticRegs::hystCtrl
uint8_t hystCtrl
Definition: pok/v1/sdl_pok.h:97
SDL_POK_config
POK Configuration structure.
Definition: sdl_pok_def.h:425
SDL_POK_getStaticRegisters
int32_t SDL_POK_getStaticRegisters(SDL_POK_Inst instance, SDL_POK_staticRegs *pStaticRegs)
POK Function to get the Static Registers. This function reads the values of the static registers such...
SDL_PRG_Inst
int8_t SDL_PRG_Inst
Definition: sdl_pok_def.h:134
SDL_POK_staticRegs
POK Static Registers structure.
Definition: pok/v1/sdl_pok.h:96
sdl_dpl.h
This file contains the SDL DPL API's.
SDL_POK_staticRegs::hystCtrlOV
uint8_t hystCtrlOV
Definition: pok/v1/sdl_pok.h:99
SDL_POK_staticRegs::trimOV
uint8_t trimOV
Definition: pok/v1/sdl_pok.h:105
SDL_POK_verifyConfig
int32_t SDL_POK_verifyConfig(SDL_POK_Inst instance, SDL_POK_config *pConfig)
POK Function to verify the written configuration. This function checks the provided config against th...
SDL_POK_staticRegs::trim
uint8_t trim
Definition: pok/v1/sdl_pok.h:103
SDL_POK_staticRegs::voltDetMode
uint8_t voltDetMode
Definition: pok/v1/sdl_pok.h:101
SDL_POK_staticRegs::deglitch
uint8_t deglitch
Definition: pok/v1/sdl_pok.h:107
SDL_POK_staticRegs::porModuleStatus
uint8_t porModuleStatus
Definition: pok/v1/sdl_pok.h:111
SDL_POK_enablePP
int32_t SDL_POK_enablePP(SDL_PRG_Inst instance, bool enable)
POK Function to enable or disable ping/pong mode for a specified PRG. Only supported for v1 version o...
SDL_POK_init
int32_t SDL_POK_init(SDL_POK_Inst instance, SDL_POK_config *pConfig)
POK module configuration API.