You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include "board/board.h"
typedef enum { kevent_sensor_drop = 0, // ���������¼�
kevent_tmr_scheduler, // ��ʱ�������¼�
kevent_capture_data_block_event, // ÿ�ɼ�һ�����ݺ��ص�һ��
kevent_capture_little_data_block_event, // ������С���ݿ��ص��¼�
kevent_button_push_event, // ���������¼�
kevent_button_release_event, // �����ͷ��¼�
kevent_start_sample_cmd_event, // ��ʼ�ɼ��¼�
kevent_stop_sample_cmd_event, // ֹͣ�ɼ��¼�
kevent_sample_start_event, // ��ʼ�ɼ��¼�
kevent_sample_stop_event, // ֹͣ�ɼ��¼�
kevent_ble_connect_event, // ���������¼�
kevent_ble_disconnect_event, // �����Ͽ��¼�
} app_event_type_t;
typedef struct { uint32_t data0; uint32_t data1; uint32_t data2; } one_frame_data_t;
typedef struct { app_event_type_t eventType; union { struct { uint32_t frameIndex; one_frame_data_t data[LITTLE_DATA_BLOCK_FRAME_NUM]; } little_data_block;
struct { uint8_t* data; // ����֤���ݶ���
int len; } block_sensor_data;
struct { uint8_t drop0; uint8_t drop1; } sensor_drop; } val; } app_event_t;
void app_event_process_cb(void* p_event_data, uint16_t event_size);
|