blob: ea93f0c418d30afdd3044eb823423e7e2a47b482 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_UI_INPUT_LIB_HID_INCLUDE_LIB_HID_BMA253_H_
#define SRC_UI_INPUT_LIB_HID_INCLUDE_LIB_HID_BMA253_H_
#include <zircon/types.h>
__BEGIN_CDECLS
#define BMA253_RPT_ID_INPUT 1
#define BMA253_RPT_ID_FEATURE 2
typedef struct bma253_input_rpt {
uint8_t rpt_id;
uint16_t acceleration_x;
uint16_t acceleration_y;
uint16_t acceleration_z;
uint8_t temperature;
} __PACKED bma253_input_rpt_t;
typedef struct bma253_feature_rpt {
uint8_t rpt_id;
uint32_t interval_ms;
} __PACKED bma253_feature_rpt_t;
size_t get_bma253_report_desc(const uint8_t** buf);
__END_CDECLS
#endif // SRC_UI_INPUT_LIB_HID_INCLUDE_LIB_HID_BMA253_H_