view src/cs/services/vibr/vibr_messages_i.h @ 294:e17bdedfbf2b

VIBR SWE initial implementation
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 27 Mar 2022 08:46:10 +0000
parents
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