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 CanSignal = CanSignal' {}
- newCanSignal :: Natural -> Bool -> Bool -> Natural -> Double -> Double -> Natural -> CanSignal
- canSignal_name :: Lens' CanSignal (Maybe Text)
- canSignal_messageId :: Lens' CanSignal Natural
- canSignal_isBigEndian :: Lens' CanSignal Bool
- canSignal_isSigned :: Lens' CanSignal Bool
- canSignal_startBit :: Lens' CanSignal Natural
- canSignal_offset :: Lens' CanSignal Double
- canSignal_factor :: Lens' CanSignal Double
- canSignal_length :: Lens' CanSignal Natural
Documentation
Information about a single controller area network (CAN) signal and the messages it receives and transmits.
See: newCanSignal
smart constructor.
CanSignal' | |
|
Instances
Create a value of CanSignal
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:name:CanSignal'
, canSignal_name
- The name of the signal.
$sel:messageId:CanSignal'
, canSignal_messageId
- The ID of the message.
$sel:isBigEndian:CanSignal'
, canSignal_isBigEndian
- Whether the byte ordering of a CAN message is big-endian.
$sel:isSigned:CanSignal'
, canSignal_isSigned
- Whether the message data is specified as a signed value.
$sel:startBit:CanSignal'
, canSignal_startBit
- Indicates the beginning of the CAN message.
$sel:offset:CanSignal'
, canSignal_offset
- Indicates where data appears in the CAN message.
$sel:factor:CanSignal'
, canSignal_factor
- A multiplier used to decode the CAN message.
$sel:length:CanSignal'
, canSignal_length
- How many bytes of data are in the message.
canSignal_isBigEndian :: Lens' CanSignal Bool Source #
Whether the byte ordering of a CAN message is big-endian.