view src/cs/services/vibr/vibr_messages_i.h @ 297:8dfdf88d632f

BUZM SWE initial implementation
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 29 Mar 2022 03:45:41 +0000
parents e17bdedfbf2b
children
line wrap: on
line source

/*
 * In this header file we are going to define our internal messages
 * that will be sent to our VIBR task by our API layer.
 */

#ifndef __VIBR_MESSAGES_I
#define __VIBR_MESSAGES_I

#include "rv/rv_general.h"

struct vibr_start_msg {
	T_RV_HDR hdr;
	UINT8 num_pulses;
	UINT8 vibr_level;
};

struct vibr_stop_msg {
	T_RV_HDR hdr;
};

enum vibr_msg_id {
	VIBR_START_REQ	= 1,
	VIBR_STOP_REQ
};

#endif