spp_dev_a_buttons.h

来自「蓝牙虚拟串口程序1 设备A BLUELAB4.0」· C头文件 代码 · 共 49 行

H
49
字号
/*
    This file was autogenerated by buttonparse
*/

#ifndef _SPP_DEV_A_BUTTONS_H
#define _SPP_DEV_A_BUTTONS_H

#include <message.h>

/* messages sent to the client */
enum
{
	BUTTON_RESET_PRESS = 1000 /* base value */,
	PIO_RAW
};

typedef enum
{
	sBUTTON_RESET,
	Unknown
} InternalState;

typedef struct
{
	uint16 pio;
} PIO_RAW_T;

typedef struct
{
	InternalState store_held;
	InternalState double_press;
	uint16 pio_raw_bits;
	uint16 pskey_wakeup;
	uint16 store_bits;
	uint16 store_count;
	uint16 timed_id;
} PioStoredState;

typedef struct
{
	TaskData task;
	Task client;
	PioStoredState pio_states;
} PioState;

void pioInit(PioState *state, Task client);

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?