ComAcqSendBytes

This is a special function which is a one-step ComAcquire and ComSendBytes call. The call's parameters are identical to ComSendBytes. ComAcqSendBytes will start the UART transmitter, if necessary. Note that errors relating to port acquisition may also be returned.

Because ComAcqSendBytes attempts to acquire the port exclusively, the caller is responsible for releasing exclusive port access when it is no longer needed. If the port cannot be acquired, the acquisition error returns. Exclusive acquisition is requested because this function is provided for subsystems that call the function after polling for and finding an appropriate message.

Note that the companion function ComAcqReceiveBytes does not gain exclusive access, as it will typically be called in a polling mode where exclusive access will be a burden.