/* Check if a specific control message was received.  */
bool received_control_message(const struct device *dev, const union pd_header header, const enum pd_ctrl_msg_type mt)
/* Check if a specific control message was received.  */
bool received_control_message(const struct device *dev, const union pd_header header, const enum pd_ctrl_msg_type mt)
{
	struct usbc_port_data *data = dev->data;
	struct protocol_layer_rx_t *prl_rx = data->prl_rx;
	if (prl_rx->emsg.len == 0 && header.message_type == mt && header.extended == 0) {
		return true;
	}
	return false;
}