/* Write to SSC Transmit Holding Register. Send data through SSC Data frame.  */
uint32_t ssc_write(Ssc *p_ssc, uint32_t ul_frame)
/* Write to SSC Transmit Holding Register. Send data through SSC Data frame.  */
uint32_t ssc_write(Ssc *p_ssc, uint32_t ul_frame)
{
	uint32_t ul_timeout = SSC_DEFAULT_TIMEOUT;
	while (!(p_ssc->SSC_SR & SSC_SR_TXEMPTY)) {
		if (!ul_timeout--) {
			return SSC_RC_ERROR;
		}
	}
	p_ssc->SSC_THR = ul_frame;
	return SSC_RC_OK;
}