📄 csl_i2caux.h
字号:
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_i2cGetAcsRdy(hI2c, &response);
@endverbatim
* ============================================================================
*/
static inline
void CSL_i2cGetAcsRdy (
CSL_I2cHandle hI2c,
void *response
)
{
*(Uint32 *)response = CSL_FEXT(hI2c->regs->ICSTR, I2C_ICSTR_ARDY);
}
/** ============================================================================
* @n@b CSL_i2cGetScd
*
* @b Description
* @n This function gets the SCD status of the I2C module.
*
* @b Arguments
* @verbatim
hI2c Handle to I2C instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> Return stop condition detection status.
*
* <b> Pre Condition </b>
* @n CSL_i2cInit(),CSL_i2cOpen()has to be called successfully before calling
* this function
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_i2cGetScd(hI2c, &response);
@endverbatim
* ============================================================================
*/
static inline
void CSL_i2cGetScd (
CSL_I2cHandle hI2c,
void *response
)
{
*(Uint32 *)response = CSL_FEXT(hI2c->regs->ICSTR, I2C_ICSTR_SCD);
}
/** ============================================================================
* @n@b CSL_i2cGetAd0
*
* @b Description
* @n This function gets the AD0 status of the I2C module.
*
* @b Arguments
* @verbatim
hI2c Handle to I2C instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> Return Address Zero Status.
*
* <b> Pre Condition </b>
* @n CSL_i2cInit(),CSL_i2cOpen()has to be called successfully before calling
* this function
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_i2cGetAd0(hI2c, &response);
@endverbatim
* ============================================================================
*/
static inline
void CSL_i2cGetAd0 (
CSL_I2cHandle hI2c,
void *response
)
{
*(Uint32 *)response = CSL_FEXT(hI2c->regs->ICSTR, I2C_ICSTR_AD0);
}
/** ============================================================================
* @n@b CSL_i2cGetAas
*
* @b Description
* @n This function gets the AAS status of the I2C module.
*
* @b Arguments
* @verbatim
hI2c Handle to I2C instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> Return address as slave status.
*
* <b> Pre Condition </b>
* @n CSL_i2cInit(),CSL_i2cOpen()has to be called successfully before calling
* this function
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_i2cGetAas(hI2c, &response);
@endverbatim
* ============================================================================
*/
static inline
void CSL_i2cGetAas (
CSL_I2cHandle hI2c,
void *response
)
{
*(Uint32 *)response = CSL_FEXT(hI2c->regs->ICSTR, I2C_ICSTR_AAS);
}
/** ============================================================================
* @n@b CSL_i2cGetRsFull
*
* @b Description
* @n This function gets the RS Full status of the I2C module.
*
* @b Arguments
* @verbatim
hI2c Handle to I2C instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> Return receive full status.
*
* <b> Pre Condition </b>
* @n CSL_i2cInit(),CSL_i2cOpen()has to be called successfully before calling
* this function
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_i2cGetRsFull(hI2c, &response);
@endverbatim
* ============================================================================
*/
static inline
void CSL_i2cGetRsFull (
CSL_I2cHandle hI2c,
void *response
)
{
*(Uint32 *)response = CSL_FEXT(hI2c->regs->ICSTR, I2C_ICSTR_RSFULL);
}
/** ============================================================================
* @n@b CSL_i2cGetXsmt
*
* @b Description
* @n This function gets the transmit status of the I2C module.
*
* @b Arguments
* @verbatim
hI2c Handle to I2C instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> Return transmit status.
*
* <b> Pre Condition </b>
* @n CSL_i2cInit(),CSL_i2cOpen()has to be called successfully before calling
* this function
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_i2cGetXsmt(hI2c, &response);
@endverbatim
* ============================================================================
*/
static inline
void CSL_i2cGetXsmt (
CSL_I2cHandle hI2c,
void *response
)
{
*(Uint32 *)response = CSL_FEXT(hI2c->regs->ICSTR, I2C_ICSTR_XSMT);
}
/** ============================================================================
* @n@b CSL_i2cGetAl
*
* @b Description
* @n This function gets the AL status of the I2C module.
*
* @b Arguments
* @verbatim
hI2c Handle to I2C instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> Return Arbitration-Lost status.
*
* <b> Pre Condition </b>
* @n CSL_i2cInit(),CSL_i2cOpen()has to be called successfully before calling
* this function
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_i2cGetAl(hI2c, &response);
@endverbatim
* ============================================================================
*/
static inline
void CSL_i2cGetAl (
CSL_I2cHandle hI2c,
void *response
)
{
*(Uint32 *)response = CSL_FEXT(hI2c->regs->ICSTR, I2C_ICSTR_AL);
}
/** ============================================================================
* @n@b CSL_i2cGetSdir
*
* @b Description
* @n This function gets the SDIR status of the I2C module.
*
* @b Arguments
* @verbatim
hI2c Handle to I2C instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> Return Slave Direction status.
*
* <b> Pre Condition </b>
* @n CSL_i2cInit(),CSL_i2cOpen()has to be called successfully before calling
* this function
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_i2cGetSdir(hI2c, &response);
@endverbatim
* ============================================================================
*/
static inline
void CSL_i2cGetSdir (
CSL_I2cHandle hI2c,
void *response
)
{
*(Uint32 *)response = CSL_FEXT(hI2c->regs->ICSTR, I2C_ICSTR_SDIR);
}
/** ============================================================================
* @n@b CSL_i2cGetNacksnt
*
* @b Description
* @n This function gets the No Ack Sent status of the I2C module.
*
* @b Arguments
* @verbatim
hI2c Handle to I2C instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> Return No Acknowledge status.
*
* <b> Pre Condition </b>
* @n CSL_i2cInit(),CSL_i2cOpen()has to be called successfully before calling
* this function
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_i2cGetNacksnt(hI2c, &response);
@endverbatim
* ============================================================================
*/
static inline
void CSL_i2cGetNacksnt (
CSL_I2cHandle hI2c,
void *response
)
{
*(Uint32 *)response = CSL_FEXT(hI2c->regs->ICSTR, I2C_ICSTR_NACKSNT);
}
/** ============================================================================
* @n@b CSL_i2cGetRdone
*
* @b Description
* @n This function gets the Reset Done status of the I2C module.
*
* @b Arguments
* @verbatim
hI2c Handle to I2C instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> Return receive done status.
*
* <b> Pre Condition </b>
* @n CSL_i2cInit(),CSL_i2cOpen()has to be called successfully before calling
* this function
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_i2cGetRdone(hI2c, &response);
@endverbatim
* ============================================================================
*/
static inline
void CSL_i2cGetRdone (
CSL_I2cHandle hI2c,
void *response
)
{
*(Uint32 *)response = CSL_FEXT(hI2c->regs->ICMDR, I2C_ICMDR_IRS);
}
/** ============================================================================
* @n@b CSL_i2cGetBitcount
*
* @b Description
* @n This function gets the bit count number of the I2C module.
*
* @b Arguments
* @verbatim
hI2c Handle to I2C instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> Return bit count value.
*
* <b> Pre Condition </b>
* @n CSL_i2cInit(),CSL_i2cOpen()has to be called successfully before calling
* this function
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_i2cGetBitcount(hI2c, &response);
@endverbatim
* ============================================================================
*/
static inline
void CSL_i2cGetBitcount (
CSL_I2cHandle hI2c,
void *response
)
{
*(Uint32 *)response = CSL_FEXT(hI2c->regs->ICMDR, I2C_ICMDR_BC);
}
/** ============================================================================
* @n@b CSL_i2cGetIntcode
*
* @b Description
* @n This function gets the interrupt code of the I2C module.
*
* @b Arguments
* @verbatim
hI2c Handle to I2C instance
response Placeholder to return status.
@endverbatim
*
* <b> Return Value </b> None
*
* <b> Pre Condition </b>
* @n CSL_i2cInit(),CSL_i2cOpen()has to be called successfully before calling
* this function
*
* <b> Post Condition </b>
* @n None
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_i2cGetIntcode(hI2c, &response);
@endverbatim
* ============================================================================
*/
static inline
void CSL_i2cGetIntcode (
CSL_I2cHandle hI2c,
void *response
)
{
*(Uint32 *)response = CSL_FEXT(hI2c->regs->ICIVR, I2C_ICIVR_INTCODE);
}
#ifdef __cplusplus
}
#endif
#endif /* CSL_I2CAUX_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -