BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
sBSP430sensorsHH10Dstate Struct Reference

#include <bsp430/sensors/hh10d.h>

Data Fields

sBSP430halISRIndexedChainNode cb
 
unsigned int cal_offs
 
unsigned int cal_sens
 
volatile sBSP430hplTIMERfreq_timer
 
unsigned int interval_tck
 
unsigned int last_capture
 
unsigned int last_period_count
 
unsigned int flags
 

Detailed Description

State used to interact with the HH10D sensor.

Examples:
sensors/hh10d/main.c.

Field Documentation

unsigned int sBSP430sensorsHH10Dstate::cal_offs

Device-specific humidity calculation offset parameter by iBSP430sensorsHH10DgetCalibration().

Examples:
sensors/hh10d/main.c.
unsigned int sBSP430sensorsHH10Dstate::cal_sens

Device-specific humidity calculation sensitivity parameter by iBSP430sensorsHH10DgetCalibration().

Examples:
sensors/hh10d/main.c.
sBSP430halISRIndexedChainNode sBSP430sensorsHH10Dstate::cb

The callback node used for periodic sampling of the FOUT counter. The sBSP430halISRIndexedChainNode::callback_ni field should be set to

Examples:
sensors/hh10d/main.c.
unsigned int sBSP430sensorsHH10Dstate::flags

Flags controlling behavior of the callback.

Examples:
sensors/hh10d/main.c.
volatile sBSP430hplTIMER* sBSP430sensorsHH10Dstate::freq_timer

Reference to the timer that is counting device FOUT ticks.

Examples:
sensors/hh10d/main.c.
unsigned int sBSP430sensorsHH10Dstate::interval_tck

The interval between periodic captures. Normal practice would be to set this to the frequency of the controlling alarm timer, so that captures are made at 1Hz. See BSP430_SENSORS_HH10D_FLAG_AUTOSAMPLE.

Examples:
sensors/hh10d/main.c.
unsigned int sBSP430sensorsHH10Dstate::last_capture

The value from freq_timer at the last capture. Invalid unless BSP430_SENSORS_HH10D_FLAG_VALID_CAPTURE is set in flags.

unsigned int sBSP430sensorsHH10Dstate::last_period_count

The number of FOUT pulses within the last interval_tck period. Invalid unless BSP430_SENSORS_HH10D_FLAG_VALID_COUNT is set in flags.

Examples:
sensors/hh10d/main.c.

The documentation for this struct was generated from the following file: