39 #ifndef CSL_SLV_TOG_H_ 40 #define CSL_SLV_TOG_H_ 48 #include <ti/csl/cslr_tog.h> 117 #define CSL_SLV_TOG_INTRSRC_TRANSACTION_TIMEOUT ((uint32_t) 1U<<0) 119 #define CSL_SLV_TOG_INTRSRC_UNEXPECTED_RESPONSE ((uint32_t) 1U<<1) 121 #define CSL_SLV_TOG_INTRSRC_COMMAND_TIMEOUT ((uint32_t) 1U<<2) 123 #define CSL_SLV_TOG_INTRSRC_ALL (CSL_SLV_TOG_INTRSRC_TRANSACTION_TIMEOUT | CSL_SLV_TOG_INTRSRC_UNEXPECTED_RESPONSE | CSL_SLV_TOG_INTRSRC_COMMAND_TIMEOUT) 221 int32_t
CSL_slvTogGetCfg(
const CSL_ksbus_vbusm_to_gasketRegs *pRegs, uint32_t *pTotalReads, uint32_t *pTotalWrites );
238 int32_t
CSL_slvTogGetStatus(
const CSL_ksbus_vbusm_to_gasketRegs *pRegs, uint32_t *pCurrReads, uint32_t *pCurrWrites );
442 uint32_t timeoutVal );
uint32_t CFG
Definition: csl_slv_tog.h:178
int32_t CSL_slvTogSetFlushModeEnable(CSL_ksbus_vbusm_to_gasketRegs *pRegs, bool bEnable)
Enable/disable flush mode.
int32_t CSL_slvTogGetIntrPending(const CSL_ksbus_vbusm_to_gasketRegs *pRegs, uint32_t *pPendInts)
Get masked (enabled) pending interrupt sources.
uint32_t FLUSH
Definition: csl_slv_tog.h:180
uint32_t type
Definition: csl_slv_tog.h:148
Slave TOG Static Registers.
Definition: csl_slv_tog.h:176
int32_t CSL_slvTogGetStatus(const CSL_ksbus_vbusm_to_gasketRegs *pRegs, uint32_t *pCurrReads, uint32_t *pCurrWrites)
Get module status information.
int32_t CSL_slvTogVerifyTimeoutVal(const CSL_ksbus_vbusm_to_gasketRegs *pRegs, uint32_t timeoutVal)
Verify the set timeout value.
uint32_t currByteCnt
Definition: csl_slv_tog.h:162
int32_t CSL_slvTogVerifyIntrEnable(CSL_ksbus_vbusm_to_gasketRegs *pRegs, CSL_SlvTogIntrSrc intrSrcs, bool bEnable)
Verify Enable/disable interrupt source(s)
int32_t CSL_slvTogGetCurrTimerCnt(const CSL_ksbus_vbusm_to_gasketRegs *pRegs, uint32_t *pTimerCnt)
Get the current timer count value.
uint32_t tag
Definition: csl_slv_tog.h:150
This structure contains timeout error information.
Definition: csl_slv_tog.h:139
int32_t CSL_slvTogGetRawIntrPending(const CSL_ksbus_vbusm_to_gasketRegs *pRegs, uint32_t *pRawPendInts)
Get raw pending interrupt sources.
uint32_t commandId
Definition: csl_slv_tog.h:153
int32_t CSL_slvTogReadBackStaticRegisters(const CSL_ksbus_vbusm_to_gasketRegs *pRegs, CSL_SlvTog_staticRegs *pStaticRegs)
Readback Static configuration registers.
uint32_t ENABLE
Definition: csl_slv_tog.h:179
int32_t CSL_slvTogStop(CSL_ksbus_vbusm_to_gasketRegs *pRegs)
Stop the timer counter.
int32_t CSL_slvTogGetIntrCount(const CSL_ksbus_vbusm_to_gasketRegs *pRegs, CSL_SlvTogIntrSrc intrSrc, uint32_t *pIntrCnt)
Get interrupt count.
int32_t CSL_slvTogSetIntrPending(CSL_ksbus_vbusm_to_gasketRegs *pRegs, CSL_SlvTogIntrSrc intrSrcs)
Set interrupt source(s)
int32_t CSL_slvTogGetRevision(const CSL_ksbus_vbusm_to_gasketRegs *pRegs, uint32_t *pRev)
Get module revision information.
uint32_t dir
Definition: csl_slv_tog.h:146
This file contains the Register Desciptions for CSL types.
int32_t CSL_slvTogReset(CSL_ksbus_vbusm_to_gasketRegs *pRegs)
Reset the timeout functionality.
int32_t CSL_slvTogGetCfg(const CSL_ksbus_vbusm_to_gasketRegs *pRegs, uint32_t *pTotalReads, uint32_t *pTotalWrites)
Get module configuration information.
uint32_t TIMEOUT
Definition: csl_slv_tog.h:181
int32_t CSL_slvTogSetTimeoutVal(CSL_ksbus_vbusm_to_gasketRegs *pRegs, uint32_t timeoutVal)
Set the timeout value.
uint32_t orgByteCnt
Definition: csl_slv_tog.h:158
int32_t CSL_slvTogAckIntr(CSL_ksbus_vbusm_to_gasketRegs *pRegs, CSL_SlvTogIntrSrc intrSrc, uint32_t ackCnt)
Ack interrupt source.
int32_t CSL_slvTogStart(CSL_ksbus_vbusm_to_gasketRegs *pRegs)
Start the timer counter.
uint32_t PID
Definition: csl_slv_tog.h:177
int32_t CSL_slvTogGetErrInfo(const CSL_ksbus_vbusm_to_gasketRegs *pRegs, CSL_SlvTogErrInfo *pErrInfo)
Get timeout error information.
int32_t CSL_slvTogSetIntrEnable(CSL_ksbus_vbusm_to_gasketRegs *pRegs, CSL_SlvTogIntrSrc intrSrcs, bool bEnable)
Enable/disable interrupt source(s)
uint32_t CSL_SlvTogIntrSrc
Definition: csl_slv_tog.h:115
uint64_t address
Definition: csl_slv_tog.h:166
uint32_t routeId
Definition: csl_slv_tog.h:142
int32_t CSL_slvTogVerifyFlushModeEnable(const CSL_ksbus_vbusm_to_gasketRegs *pRegs, bool bEnable)
Verify Enable/disable flush mode.
uint32_t orderId
Definition: csl_slv_tog.h:144
int32_t CSL_slvTogClrIntrPending(CSL_ksbus_vbusm_to_gasketRegs *pRegs, CSL_SlvTogIntrSrc intrSrcs)
Clear pending interrupt source(s)