view src/cs/services/vibr/vibr_messages_i.h @ 295:e5cfd6362158

VIBR SWE hooked into RiViera
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 27 Mar 2022 19:44:08 +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