view src/cs/services/vibr/vibr_struct_i.h @ 296:a927f030a4e0

add AT@VIBR and AT@VIBS commands for testing VIBR SWE
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 28 Mar 2022 00:43:11 +0000
parents e17bdedfbf2b
children
line wrap: on
line source

/*
 * This header file holds the internal structure definition
 * for VIBR SWE.
 */

#ifndef __VIBR_STRUCT_I
#define __VIBR_STRUCT_I

#include "rv/rv_general.h"
#include "rvf/rvf_api.h"

struct vibr_env {
	/* RiViera boilerplate */
	T_RVF_ADDR_ID	addr_id;
	T_RVF_MB_ID	prim_id;
	/* vibration state */
	UINT8		vibr_level;
	BOOL		on_state;
	BOOL		cont_mode;
	UINT8		remain_cycles;
};

#endif	/* include guard */