blob: d24b6511125724de371d5bd3202f6fc3f40c3b4a [file] [log] [blame]
// Copyright 2018 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_LTR_578ALS_H_
#define SRC_UI_INPUT_LIB_HID_INCLUDE_LIB_HID_LTR_578ALS_H_
#include <zircon/types.h>
__BEGIN_CDECLS
#define LTR_578ALS_RPT_ID_INPUT 1
#define LTR_578ALS_RPT_ID_FEATURE 2
typedef struct ltr_578als_input_rpt {
uint8_t rpt_id;
uint32_t ambient_light;
uint16_t proximity;
} __PACKED ltr_578als_input_rpt_t;
typedef struct ltr_578als_feature_rpt {
uint8_t rpt_id;
uint32_t interval_ms;
} __PACKED ltr_578als_feature_rpt_t;
size_t get_ltr_578als_report_desc(const uint8_t** buf);
__END_CDECLS
#endif // SRC_UI_INPUT_LIB_HID_INCLUDE_LIB_HID_LTR_578ALS_H_