SOES/applications/rtl_slavedemo/utypes.h

41 lines
669 B
C
Raw Normal View History

/*
* Licensed under the GNU General Public License version 2 with exceptions. See
* LICENSE file in the project root for full license information
*/
2015-05-20 13:15:49 +02:00
/** \file
* \brief
2015-05-20 13:15:49 +02:00
* Header file for Application types.
*
* Part of the application, host declarations of application types mapped against
2015-05-20 13:15:49 +02:00
* ServiceData Objects and ProcessData Objects.
*/
2015-05-20 13:15:49 +02:00
#ifndef __utypes_h__
#define __utypes_h__
2015-05-20 13:15:49 +02:00
#include <cc.h>
typedef struct
{
2015-05-21 10:41:13 +02:00
uint8_t state;
uint8_t button;
uint32_t encoder;
} _Rbuffer;
typedef struct
{
2015-05-21 10:41:13 +02:00
uint8_t LED;
} _Wbuffer;
typedef struct
{
2015-05-21 10:41:13 +02:00
uint32_t reset_counter;
} _Cbuffer;
extern _Rbuffer Rb;
extern _Wbuffer Wb;
extern _Cbuffer Cb;
#endif