static bool SiiMhlTxSetStatus(uint8_t regToWrite, uint8_t value)
{
	cbus_req_t	req;
	bool retVal;

	req.retryCount  = 2;
	req.command     = MHL_WRITE_STAT;
	req.offsetData  = regToWrite;
	req.payload_u.msgData[0]  = value;

	TPI_DEBUG_PRINT(("MhlTx:SiiMhlTxSetStatus\n"));
	retVal = PutNextCBusTransaction(&req);
	return retVal;
}
Beispiel #2
0
static bool_t SiiMhlTxSetInt(uint8_t regToWrite, uint8_t mask, uint8_t priorityLevel)
{
	cbus_req_t req;
	bool_t retVal;
	req.retryCount = 2;
	req.command = MHL_SET_INT;
	req.offsetData = regToWrite;
	req.payload_u.msgData[0] = mask;
	if (0 == priorityLevel) {
		retVal = PutPriorityCBusTransaction(&req);
	} else {
		retVal = PutNextCBusTransaction(&req);
	}
	return retVal;
}