Documentation ¶
Index ¶
Constants ¶
const ( // SoundLevelRange30_130 is from 30dB to 130dB SoundLevelRange30_130 = iota // SoundLevelRange30_80 is from 30dB to 80dB SoundLevelRange30_80 // SoundLevelRange50_100 is from 50dB to 100dB SoundLevelRange50_100 // SoundLevelRange60_110 is from 60dB to 110dB SoundLevelRange60_110 // SoundLevelRange80_130 is from 80dB to 130dB SoundLevelRange80_130 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { TimeWeight TimeWeight FrequencyWeight FrequencyWeight SoundLevelRange SoundLevelRange SoundLevelDisplayMode SoundLevelDisplayMode }
Config is configuration of GM1356 device
type ConfiguredEvent ¶
type ConfiguredEvent struct { }
ConfiguredEvent from GM1356
func (ConfiguredEvent) String ¶
func (e ConfiguredEvent) String() string
String returns string describes event
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is GM1356 controller
func (*Driver) EventChannel ¶
EventChannel retuns event channel
func (*Driver) IsImporting ¶
IsImporting returns true when importing recorded data
type FrequencyWeight ¶
type FrequencyWeight int
FrequencyWeight is frequency weighting characteristic
const ( // FrequencyWeightA is dBA FrequencyWeightA FrequencyWeight = iota // FrequencyWeightC is dBC FrequencyWeightC )
func (FrequencyWeight) String ¶
func (f FrequencyWeight) String() string
FrequencyWeight is frequency weighting characteristic
type MeasuredEvent ¶
MeasuredEvent from GM1356
func (MeasuredEvent) String ¶
func (e MeasuredEvent) String() string
String returns string describes event
type SoundLevelDisplayMode ¶
type SoundLevelDisplayMode int
SoundLevelDisplayMode is display mode
const ( // SoundLevelDisplayModeNormal is normal mode SoundLevelDisplayModeNormal SoundLevelDisplayMode = iota // SoundLevelDisplayModeMaxHold is max hold mode SoundLevelDisplayModeMaxHold )
func (SoundLevelDisplayMode) String ¶
func (d SoundLevelDisplayMode) String() string
SoundLevelDisplayMode is display mode
type SoundLevelRange ¶
type SoundLevelRange int
SoundLevelRange is sound level range on indicator
func (SoundLevelRange) String ¶
func (l SoundLevelRange) String() string
SoundLevelRange is sound level range on indicator
type TimeWeight ¶
type TimeWeight int
TimeWeight is time weighting characteristic
const ( // TimeWeightFast is fast mode TimeWeightFast TimeWeight = iota // TimeWeightSlow is slow mode TimeWeightSlow )
func (TimeWeight) String ¶
func (t TimeWeight) String() string
TimeWeight is time weighting characteristic