1/* 2 $License: 3 Copyright (C) 2014 InvenSense Corporation, All Rights Reserved. 4 $ 5 */ 6 7/******************************************************************************* 8 * 9 * $Id$ 10 * 11 ******************************************************************************/ 12 13#ifndef MLDMP_SYSFS_HELPER_H__ 14#define MLDMP_SYSFS_HELPER_H__ 15 16#ifdef __cplusplus 17extern "C" { 18#endif 19 20#include "invensense.h" 21 22int find_type_by_name(const char *name, const char *type); 23int find_name_by_sensor_type(const char *sensor_type, const char *type, char *sensor_name); 24inv_error_t inv_get_sysfs_path(char *name); 25inv_error_t inv_get_sysfs_abs_path(char *name); 26inv_error_t inv_get_dmpfile(char *name); 27inv_error_t inv_get_chip_name(char *name); 28inv_error_t inv_get_sysfs_key(unsigned char *key); 29inv_error_t inv_get_handler_number(const char *name, int *num); 30inv_error_t inv_get_input_number(const char *name, int *num); 31inv_error_t inv_get_iio_trigger_path(const char *name); 32inv_error_t inv_get_iio_device_node(const char *name); 33 34#ifdef __cplusplus 35} 36#endif 37#endif /* MLDMP_SYSFS_HELPER_H__ */ 38