Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data ObdSignal = ObdSignal' {}
- newObdSignal :: Natural -> Natural -> Natural -> Double -> Double -> Natural -> Natural -> ObdSignal
- obdSignal_bitMaskLength :: Lens' ObdSignal (Maybe Natural)
- obdSignal_bitRightShift :: Lens' ObdSignal (Maybe Natural)
- obdSignal_pidResponseLength :: Lens' ObdSignal Natural
- obdSignal_serviceMode :: Lens' ObdSignal Natural
- obdSignal_pid :: Lens' ObdSignal Natural
- obdSignal_scaling :: Lens' ObdSignal Double
- obdSignal_offset :: Lens' ObdSignal Double
- obdSignal_startByte :: Lens' ObdSignal Natural
- obdSignal_byteLength :: Lens' ObdSignal Natural
Documentation
Information about signal messages using the on-board diagnostics (OBD) II protocol in a vehicle.
See: newObdSignal
smart constructor.
ObdSignal' | |
|
Instances
Create a value of ObdSignal
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:bitMaskLength:ObdSignal'
, obdSignal_bitMaskLength
- The number of bits to mask in a message.
$sel:bitRightShift:ObdSignal'
, obdSignal_bitRightShift
- The number of positions to shift bits in the message.
$sel:pidResponseLength:ObdSignal'
, obdSignal_pidResponseLength
- The length of the requested data.
$sel:serviceMode:ObdSignal'
, obdSignal_serviceMode
- The mode of operation (diagnostic service) in a message.
$sel:pid:ObdSignal'
, obdSignal_pid
- The diagnostic code used to request data from a vehicle for this signal.
$sel:scaling:ObdSignal'
, obdSignal_scaling
- A multiplier used to decode the message.
$sel:offset:ObdSignal'
, obdSignal_offset
- Indicates where data appears in the message.
$sel:startByte:ObdSignal'
, obdSignal_startByte
- Indicates the beginning of the message.
$sel:byteLength:ObdSignal'
, obdSignal_byteLength
- The length of a message.
obdSignal_bitMaskLength :: Lens' ObdSignal (Maybe Natural) Source #
The number of bits to mask in a message.
obdSignal_bitRightShift :: Lens' ObdSignal (Maybe Natural) Source #
The number of positions to shift bits in the message.
obdSignal_serviceMode :: Lens' ObdSignal Natural Source #
The mode of operation (diagnostic service) in a message.