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

	Status = SpiPsTpmTransfer(SpiPtr, XSPIPS_TPM_ACCESS, NULL, AccessPtr, 1);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function gets TPM access configuration.
*
* @param	SpiPtr is a pointer to the SPIPS driver component to use.
* @param	AccessPtr is pointer to get access configuration
*
* @return	XST_SUCCESS if successful, else XST_FAILURE.
*
* @note		None.
*
******************************************************************************/
This function gets TPM access configuration.
This function gets TPM access configuration .
int SpiPsTpmAccessGet(XSpiPs *SpiPtr, u8* AccessPtr) {
	int Status;
	Status = SpiPsTpmTransfer(SpiPtr, XSPIPS_TPM_ACCESS, NULL, AccessPtr, 1);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	return XST_SUCCESS;
}
int SpiPsTpmAccessGet ( XSpiPs * SpiPtr , u8 * AccessPtr ) { int Status ; Status = SpiPsTpmTransfer ( SpiPtr , XSPIPS_TPM_ACCESS , NULL , AccessPtr , 1 ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } return XST_SUCCESS ; }
This function gets TPM access configuration.
This function gets TPM access configuration .