/* Read from SSC Receive Holding Register. Read data that is received in SSC Data frame.  */
uint32_t ssc_read(Ssc *p_ssc, uint32_t *ul_data)
/* Read from SSC Receive Holding Register. Read data that is received in SSC Data frame.  */
uint32_t ssc_read(Ssc *p_ssc, uint32_t *ul_data)
{
	uint32_t ul_timeout = SSC_DEFAULT_TIMEOUT;
	while (!(p_ssc->SSC_SR & SSC_SR_RXRDY)) {
		if (!ul_timeout--) {
			return SSC_RC_ERROR;
		}
	}
	*ul_data = p_ssc->SSC_RHR;
	return SSC_RC_OK;
}