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