Skip to content

Modify code for sensor reading  #212

Description

@Yi-Shum

Hi @DelphineChiu,

We want to modify the code for sensor reading, including:

  1. The member init_args in struct sensor_cfg should only be used in the function DeviceName_init().
    So we want to add a private data member that will be used in other functions such as DeviceName_read().
  2. Add the header files for each sensor.
  3. Changed ADC amplification calculation from arg0 and arg1 to post_sensor_read_hook and post_sensor_read_args.

Do you have any suggestions for this?

Thanks,
Yi-Shum

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions