XilinxProcessorIPLib/drivers/spips/examples/xspips_tpm_polled_example.c
int SpiPsTpmStatusSet(XSpiPs *SpiPtr, u8 StatusVal) {
	int Status;

	Status = SpiPsTpmTransfer(SpiPtr, XSPIPS_TPM_STS, &StatusVal, NULL, 1);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function sets the TPM status.
*
* @param	SpiPtr is a pointer to the SPIPS driver component to use.
* @param	StatusVal is to be written to status register
*
* @return	XST_SUCCESS if successful, else XST_FAILURE.
*
* @note		None.
*
******************************************************************************/
This function sets the TPM status.
This function sets the TPM status .
int SpiPsTpmStatusSet(XSpiPs *SpiPtr, u8 StatusVal) {
	int Status;
	Status = SpiPsTpmTransfer(SpiPtr, XSPIPS_TPM_STS, &StatusVal, NULL, 1);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	return XST_SUCCESS;
}
int SpiPsTpmStatusSet ( XSpiPs * SpiPtr , u8 StatusVal ) { int Status ; Status = SpiPsTpmTransfer ( SpiPtr , XSPIPS_TPM_STS , & StatusVal , NULL , 1 ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } return XST_SUCCESS ; }
This function sets the TPM status.
This function sets the TPM status .