XilinxProcessorIPLib/drivers/spips/examples/xspips_tpm_polled_example.c
int SpiPsTpmFifoWrite(XSpiPs *SpiPtr, u8* DataPtr, u8 ByteCount) {
	int Status;

	Status = SpiPsTpmTransfer(SpiPtr, XSPIPS_TPM_DATA_FIFO, DataPtr, NULL, ByteCount);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function write the data TPM FIFO.
*
* @param	SpiPtr is a pointer to the SPIPS driver component to use.
* @param	DataPtr is data pointer to be written to FIFO.
* @param	ByteCount is the number of bytes to read.
*
* @return	XST_SUCCESS if successful, else XST_FAILURE.
*
* @note		None.
*
******************************************************************************/
This function write the data TPM FIFO.
This function write the data TPM FIFO .
int SpiPsTpmFifoWrite(XSpiPs *SpiPtr, u8* DataPtr, u8 ByteCount) {
	int Status;
	Status = SpiPsTpmTransfer(SpiPtr, XSPIPS_TPM_DATA_FIFO, DataPtr, NULL, ByteCount);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}
	return XST_SUCCESS;
}
int SpiPsTpmFifoWrite ( XSpiPs * SpiPtr , u8 * DataPtr , u8 ByteCount ) { int Status ; Status = SpiPsTpmTransfer ( SpiPtr , XSPIPS_TPM_DATA_FIFO , DataPtr , NULL , ByteCount ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } return XST_SUCCESS ; }
This function write the data TPM FIFO.
This function write the data TPM FIFO .