Home | History | Annotate | Download | only in linux
      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
     17 extern "C" {
     18 #endif
     19 
     20 #include "invensense.h"
     21 
     22 int find_type_by_name(const char *name, const char *type);
     23 int find_name_by_sensor_type(const char *sensor_type, const char *type, char *sensor_name);
     24 inv_error_t inv_get_sysfs_path(char *name);
     25 inv_error_t inv_get_sysfs_abs_path(char *name);
     26 inv_error_t inv_get_dmpfile(char *name);
     27 inv_error_t inv_get_chip_name(char *name);
     28 inv_error_t inv_get_sysfs_key(unsigned char *key);
     29 inv_error_t inv_get_handler_number(const char *name, int *num);
     30 inv_error_t inv_get_input_number(const char *name, int *num);
     31 inv_error_t inv_get_iio_trigger_path(const char *name);
     32 inv_error_t inv_get_iio_device_node(const char *name);
     33 
     34 #ifdef __cplusplus
     35 }
     36 #endif
     37 #endif	/* MLDMP_SYSFS_HELPER_H__ */
     38