Struct calamp_rs::messages::event_report::EventReport[][src]

pub struct EventReport {
Show fields pub update_time: u32, pub time_of_fix: u32, pub latitude: f32, pub longitude: f32, pub altitude: f32, pub speed: f32, pub heading: u16, pub satellites: u8, pub fix_status: FixStatus, pub carrier: u16, pub rssi: i16, pub comm_state: CommState, pub hdop: u8, pub inputs: Inputs, pub unit_status: UnitStatus, pub event_index: u8, pub event_code: u8, pub accums: u8, pub append: u8, pub accum_list: Vec<u32>,
}
Expand description

Event Report messages

Initiated by the LMU and are generated by the LMU’s Programmable Event Generator (PEG). They can be either Acknowledged or Unacknowledged Requests. The Server should respond to an Acknowledged Event Report Request with an Acknowledge Message.

Fields

update_time: u32time_of_fix: u32latitude: f32

The latitude reading of the GPS receiver, measured in degrees with a 1x10^-7 degree lsb, signed 2’s complement.

longitude: f32

The longitude reading of the GPS receiver, measured in degrees with a 1x10^-7 degree lsb, signed 2’s complement.

altitude: f32

The altitude reading of the GPS receiver measured in centimeters above the WGS-84 Datum, signed 2’s complement.

speed: f32

The speed as reported by the GPS receiver, measured in centimeters per second.

heading: u16

The heading value reported in degrees from true North.

satellites: u8

The number of satellites used in the GPS solution.

fix_status: FixStatus

The current fix status of the GPS receiver bitmapped as follows

carrier: u16

The identifier of the Carrier/Operator the wireless modem is currently using. For GSM, HSPA, and LTE networks, this is the MNC (mobile network code). For CDMA networks this is the SID (system identification number).

rssi: i16

The received signal strength of the wireless modem in dBm. This value is signed in a 2’s complement format.

comm_state: CommState

The current state of the wireless modem bit mapped as follows

Bit 0 – Available

Bit 1 – Network Service

Bit 2 – Data Service

Bit 3 – Connected (PPP Session Up)

Bit 4 – Voice Call is Active

Bit 5 – Roaming

Bits 6-7 – Network Technology

00 = 2G Network (CDMA or GSM)

01 = 3G Network (UMTS)

10 = 4G Network (LTE)

11 = Reserved

hdop: u8

The GPS Horizontal Dilution of Precision - it is a unit-less value reported with a 0.1 lsb.

inputs: Inputs

The current state of the inputs, bit mapped as follows:

Bit 0 – Ignition

Bit 1 – Input 1

Bit 2 – Input 2

Bit 3 – Input 3

Bit 4 – Input 4

Bit 5 – Input 5

Bit 6 – Input 6

Bit 7 – Input 7

unit_status: UnitStatus

Status of key modules within the unit:

Bit 0 – LMU32: HTTP OTA Update Status (0=OK, 1=Error), LMU8: Unused

Bit 1 – GPS Antenna Status (0=OK, 1=Error)

Bit 2 – GPS Receiver Self-Test (0=OK, 1=Error) (LMU32 only)

Bit 3 – GPS Receiver Tracking (0=Yes, 1=No)

Bit 4 – Reserved, Currently Unused

Bit 5 – Reserved, Currently Unused

Bit 6 – Reserved, Currently Unused

Bit 7 – Unused

event_index: u8

The index number of the event that generated the report; values should range from 0-249. 255 represents a Real Time PEG Action request.

event_code: u8

The event code assigned to the report as specified by the event’s Action Parameter

accums: u8

The number of 4-byte values in the AccumList and the Accumulator Reporting Format Type (upper 2 bits).

append: u8

This bit-mapped byte is used to indicate the presence, when corresponding bit is set, of specific data types appended to the end of the Event Report following the list of accumulators. Each data type starts with a single length byte followed by the data. If multiple data types are present, they shall appear in order of the bits set in the ‘Append’ byte, starting with bit 0.

Bit 0 – Cell Info (see ‘Appended Data’ section below).

Bit 1 thru 7 – reserved, set to zero (0).

accum_list: Vec<u32>

A list of ‘n’ 4-byte fields where ‘n’ is defined in the Accums field. The format for this list is dependent upon the Accumulator Reporting Format Type also defined in the Accums field. Refer to Appendix G, ‘Accumulator Reporting Formats’ for details.

Implementations

Parse event report

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts self into T using Into<T>. Read more

Converts self into a target type. Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Performs the conversion.

Performs the conversion.

Pipes by value. This is generally the method you want to use. Read more

Borrows self and passes that borrow into the pipe function. Read more

Mutably borrows self and passes that borrow into the pipe function. Read more

Borrows self, then passes self.borrow() into the pipe function. Read more

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

Borrows self, then passes self.as_ref() into the pipe function.

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

Borrows self, then passes self.deref() into the pipe function.

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

Immutable access to a value. Read more

Mutable access to a value. Read more

Immutable access to the Borrow<B> of a value. Read more

Mutable access to the BorrowMut<B> of a value. Read more

Immutable access to the AsRef<R> view of a value. Read more

Mutable access to the AsMut<R> view of a value. Read more

Immutable access to the Deref::Target of a value. Read more

Mutable access to the Deref::Target of a value. Read more

Calls .tap() only in debug builds, and is erased in release builds.

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

Provides immutable access for inspection. Read more

Calls tap in debug builds, and does nothing in release builds.

Provides mutable access for modification. Read more

Calls tap_mut in debug builds, and does nothing in release builds.

Provides immutable access to the reference for inspection.

Calls tap_ref in debug builds, and does nothing in release builds.

Provides mutable access to the reference for modification.

Calls tap_ref_mut in debug builds, and does nothing in release builds.

Provides immutable access to the borrow for inspection. Read more

Calls tap_borrow in debug builds, and does nothing in release builds.

Provides mutable access to the borrow for modification.

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

Immutably dereferences self for inspection.

Calls tap_deref in debug builds, and does nothing in release builds.

Mutably dereferences self for modification.

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

Attempts to convert self into T using TryInto<T>. Read more

Attempts to convert self into a target type. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.