/* Increment the message ID counter for the last transmitted packet type.  */
static void increment_msgid_counter(const struct device *dev)
/* Increment the message ID counter for the last transmitted packet type.  */
static void increment_msgid_counter(const struct device *dev)
{
	struct usbc_port_data *data = dev->data;
	struct protocol_layer_tx_t *prl_tx = data->prl_tx;
	if (prl_tx->last_xmit_type >= NUM_SOP_STAR_TYPES) {
		return;
	}
	prl_tx->msg_id_counter[prl_tx->last_xmit_type] =
		(prl_tx->msg_id_counter[prl_tx->last_xmit_type] + 1) & PD_MESSAGE_ID_COUNT;
}