?? csl_uhpiaux.h
字號:
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_uhpiGetPidClass (hUhpi, &response);
@endverbatim
* ===========================================================================
*/
static inline
void CSL_uhpiGetPidClass(
CSL_UhpiHandle hUhpi,
void * response
)
{
*((Uint32 *)response) = CSL_FEXT(hUhpi->regs->PID, HPI_PID_CLASS);
}
/** ===========================================================================
* @n@b CSL_uhpiGetPidType
*
* @b Description
* @n This function gets the Peripheral ID Tupe.
*
* @b Arguments
* @verbatim
hUhpi Handle to UHPI instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> None
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_uhpiGetPidType (hUhpi, &response);
@endverbatim
* ===========================================================================
*/
static inline
void CSL_uhpiGetPidType(
CSL_UhpiHandle hUhpi,
void * response
)
{
*((Uint32 *)response) = CSL_FEXT(hUhpi->regs->PID, HPI_PID_TYPE);
}
/** ===========================================================================
* @n@b CSL_uhpiGetGpintEn0
*
* @b Description
* @n This function gets GPINT Enable 0.
*
* @b Arguments
* @verbatim
hUhpi Handle to UHPI instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> None
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_uhpiGetGpintEn0 (hUhpi, &response);
@endverbatim
* ===========================================================================
*/
static inline
void CSL_uhpiGetGpintEn0(
CSL_UhpiHandle hUhpi,
void * response
)
{
*((Uint32 *)response) = CSL_FEXT(hUhpi->regs->GPINT_CTRL, HPI_GPINT_CTRL_GPINT_EN0);
}
/** ===========================================================================
* @n@b CSL_uhpiGetGpintEn1
*
* @b Description
* @n This function gets GPINT Enable 1.
*
* @b Arguments
* @verbatim
hUhpi Handle to UHPI instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> None
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_uhpiGetGpintEn1 (hUhpi, &response);
@endverbatim
* ===========================================================================
*/
static inline
void CSL_uhpiGetGpintEn1(
CSL_UhpiHandle hUhpi,
void * response
)
{
*((Uint32 *)response) = CSL_FEXT(hUhpi->regs->GPINT_CTRL, HPI_GPINT_CTRL_GPINT_EN1);
}
/** ===========================================================================
* @n@b CSL_uhpiGetGpintEn2
*
* @b Description
* @n This function gets GPINT Enable 2.
*
* @b Arguments
* @verbatim
hUhpi Handle to UHPI instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> None
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_uhpiGetGpintEn2 (hUhpi, &response);
@endverbatim
* ===========================================================================
*/
static inline
void CSL_uhpiGetGpintEn2(
CSL_UhpiHandle hUhpi,
void * response
)
{
*((Uint32 *)response) = CSL_FEXT(hUhpi->regs->GPINT_CTRL, HPI_GPINT_CTRL_GPINT_EN2);
}
/** ===========================================================================
* @n@b CSL_uhpiGetGpioDir1
*
* @b Description
* @n This function gets GPIO Direction-1.
*
* @b Arguments
* @verbatim
hUhpi Handle to UHPI instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> None
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_uhpiGetGpioDir1 (hUhpi, &response);
@endverbatim
* ===========================================================================
*/
static inline
void CSL_uhpiGetGpioDir1(
CSL_UhpiHandle hUhpi,
void * response
)
{
*((Uint32 *)response) = hUhpi->regs->GPIO_DIR1;
}
/** ===========================================================================
* @n@b CSL_uhpiGetGpioDir2
*
* @b Description
* @n This function gets GPIO Direction-2.
*
* @b Arguments
* @verbatim
hUhpi Handle to UHPI instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> None
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_uhpiGetGpioDir2 (hUhpi, &response);
@endverbatim
* ===========================================================================
*/
static inline
void CSL_uhpiGetGpioDir2(
CSL_UhpiHandle hUhpi,
void * response
)
{
*((Uint32 *)response) = hUhpi->regs->GPIO_DIR2;
}
/** ===========================================================================
* @n@b CSL_uhpiGetGpioDir3
*
* @b Description
* @n This function gets GPIO Direction-3.
*
* @b Arguments
* @verbatim
hUhpi Handle to UHPI instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> None
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_uhpiGetGpioDir3 (hUhpi, &response);
@endverbatim
* ===========================================================================
*/
static inline
void CSL_uhpiGetGpioDir3(
CSL_UhpiHandle hUhpi,
void * response
)
{
*((Uint32 *)response) = hUhpi->regs->GPIO_DIR3;
}
/** ===========================================================================
* @n@b CSL_uhpiGetHpicHrdy
*
* @b Description
* @n This function gets HRDY bit of the HPIC.
*
* @b Arguments
* @verbatim
hUhpi Handle to UHPI instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> None
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_uhpiGetHpicHrdy (hUhpi, &response);
@endverbatim
* ===========================================================================
*/
static inline
void CSL_uhpiGetHpicHrdy(
CSL_UhpiHandle hUhpi,
void * response
)
{
*((Uint32 *)response) = CSL_FEXT(hUhpi->regs->HPIC, HPI_HPIC_HRDY);
}
/** ===========================================================================
* @n@b CSL_uhpiGetHpicFetch
*
* @b Description
* @n This function gets FETCH bit of the HPIC Register.
*
* @b Arguments
* @verbatim
hUhpi Handle to UHPI instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> None
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_uhpiGetHpicFetch (hUhpi, &response);
@endverbatim
* ===========================================================================
*/
static inline
void CSL_uhpiGetHpicFetch(
CSL_UhpiHandle hUhpi,
void * response
)
{
*((Uint32 *)response) = CSL_FEXT(hUhpi->regs->HPIC, HPI_HPIC_FETCH);
}
/** ===========================================================================
* @n@b CSL_uhpiGetHpicHpiRst
*
* @b Description
* @n This function gets HPI_RST bit of the HPIC Register.
*
* @b Arguments
* @verbatim
hUhpi Handle to UHPI instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> None
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_uhpiGetHpicHpiRst (hUhpi, &response);
@endverbatim
* ===========================================================================
*/
static inline
void CSL_uhpiGetHpicHpiRst(
CSL_UhpiHandle hUhpi,
void * response
)
{
*((Uint32 *)response) = CSL_FEXT(hUhpi->regs->HPIC, HPI_HPIC_HPI_RST);
}
/** ===========================================================================
* @n@b CSL_uhpiGetHpicHwobStat
*
* @b Description
* @n This function gets HWOB_STAT bit of the HPIC Register.
*
* @b Arguments
* @verbatim
hUhpi Handle to UHPI instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> None
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_uhpiGetHpicHwobStat (hUhpi, &response);
@endverbatim
* ===========================================================================
*/
static inline
void CSL_uhpiGetHpicHwobStat(
CSL_UhpiHandle hUhpi,
void * response
)
{
*((Uint32 *)response) = CSL_FEXT(hUhpi->regs->HPIC, HPI_HPIC_HWOB_STAT);
}
#ifdef __cplusplus
}
#endif
#endif /* _CSL_UHPIAUX_H_ */
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -