SDL API Guide for J721S2
sdl_mtog.h
Go to the documentation of this file.
1 
39 #ifndef SDL_MTOG_H_
40 #define SDL_MTOG_H_
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 #include <stdint.h>
47 #include <stdbool.h>
48 
49 #if defined (SOC_J7200)
50  #include <src/ip/sdl_ip_mtog.h>
51  #include <src/ip/sdlr_mtog.h>
52  #include <src/sdl/tog/soc/j7200/sdl_soc_mtog.h>
53 #endif
54 
55 #if defined (SOC_J721S2)
56  #include <src/ip/sdl_ip_mtog.h>
57  #include <src/ip/sdlr_mtog.h>
59 #endif
60 
61 #if defined (SOC_J784S4)
62  #include <src/ip/sdl_ip_mtog.h>
63  #include <src/ip/sdlr_mtog.h>
64  #include <src/sdl/tog/soc/j784s4/sdl_soc_mtog.h>
65 #endif
66 
67 /* Magic value used to force a timeout */
68 #define SDL_MTOG_FORCE_KEY ((uint32_t) 0x95U)
69 
125 typedef struct {
129 
131 /* This structure contains Master TOG configuration value */
132 typedef struct {
136 
155 int32_t SDL_MTOG_init(SDL_MTOG_Inst instance, const SDL_MTOG_config *pConfig);
156 
170 int32_t SDL_MTOG_verifyConfig(SDL_MTOG_Inst instance, const SDL_MTOG_config *pConfig);
171 
182 int32_t SDL_MTOG_start( SDL_MTOG_Inst instance );
183 
194 int32_t SDL_MTOG_stop( SDL_MTOG_Inst instance );
195 
209 int32_t SDL_MTOG_forceTimeout( SDL_MTOG_Inst instance );
210 
227 int32_t SDL_MTOG_reset( SDL_MTOG_Inst instance );
228 
243  SDL_MTOG_staticRegs *pStaticRegs);
246 #ifdef __cplusplus
247 }
248 #endif
249 
250 #endif /* SDL_MTOG_H_ */
251 
252 /* nothing past this point */
uint8_t SDL_MTOG_Inst
Definition: sdl_soc_mtog.h:59
Definition: sdl_mtog.h:132
Master TOG Static Registers.
Definition: sdl_mtog.h:125
int32_t SDL_MTOG_getStaticRegisters(SDL_MTOG_Inst instance, SDL_MTOG_staticRegs *pStaticRegs)
Readback Static configuration register.
uint32_t SDL_MTOGVal
Definition: sdl_ip_mtog.h:83
int32_t SDL_MTOG_verifyConfig(SDL_MTOG_Inst instance, const SDL_MTOG_config *pConfig)
Verifying written configuration with Master TOG module.
int32_t SDL_MTOG_init(SDL_MTOG_Inst instance, const SDL_MTOG_config *pConfig)
Initialize Master TOG module with respect of instance.
int32_t SDL_MTOG_forceTimeout(SDL_MTOG_Inst instance)
Force a timeout.
int32_t SDL_MTOG_stop(SDL_MTOG_Inst instance)
Stop the timeout function.
int32_t SDL_MTOG_start(SDL_MTOG_Inst instance)
Start the timeout function.
SDL_MTOGVal timeOut
Definition: sdl_mtog.h:134
int32_t SDL_MTOG_reset(SDL_MTOG_Inst instance)
Reset the timeout functionality.
uint32_t mtogCtrlRegister
Definition: sdl_mtog.h:127