Apollo  6.0
Open source self driving car software
Public Member Functions | Static Public Attributes | List of all members
apollo::canbus::lincoln::Gear66 Class Reference

one of the protocol data of lincoln vehicle More...

#include <gear_66.h>

Inheritance diagram for apollo::canbus::lincoln::Gear66:
Inheritance graph
Collaboration diagram for apollo::canbus::lincoln::Gear66:
Collaboration graph

Public Member Functions

virtual uint32_t GetPeriod () const
 get the data period More...
 
virtual void UpdateData (uint8_t *data)
 update the data More...
 
virtual void Reset ()
 reset the private variables More...
 
Gear66set_gear_none ()
 set gear to none More...
 
Gear66set_gear_park ()
 set gear to park More...
 
Gear66set_gear_reverse ()
 set gear to reverse More...
 
Gear66set_gear_neutral ()
 set gear to neutral More...
 
Gear66set_gear_drive ()
 set gear to drive More...
 
Gear66set_gear_low ()
 set gear to low More...
 
- Public Member Functions inherited from apollo::drivers::canbus::ProtocolData< ::apollo::canbus::ChassisDetail >
 ProtocolData ()=default
 construct protocol data. More...
 
virtual ~ProtocolData ()=default
 destruct protocol data. More...
 
virtual int32_t GetLength () const
 
virtual void Parse (const uint8_t *bytes, int32_t length, ::apollo::canbus::ChassisDetail *sensor_data) const
 

Static Public Attributes

static const int32_t ID
 

Additional Inherited Members

- Static Public Member Functions inherited from apollo::drivers::canbus::ProtocolData< ::apollo::canbus::ChassisDetail >
static std::uint8_t CalculateCheckSum (const uint8_t *input, const uint32_t length)
 static function, used to calculate the checksum of input array. More...
 
static T BoundedValue (T lower, T upper, T val)
 

Detailed Description

one of the protocol data of lincoln vehicle

Member Function Documentation

◆ GetPeriod()

virtual uint32_t apollo::canbus::lincoln::Gear66::GetPeriod ( ) const
virtual

get the data period

Returns
the value of data period

Reimplemented from apollo::drivers::canbus::ProtocolData< ::apollo::canbus::ChassisDetail >.

◆ Reset()

virtual void apollo::canbus::lincoln::Gear66::Reset ( )
virtual

reset the private variables

Reimplemented from apollo::drivers::canbus::ProtocolData< ::apollo::canbus::ChassisDetail >.

◆ set_gear_drive()

Gear66* apollo::canbus::lincoln::Gear66::set_gear_drive ( )

set gear to drive

Returns
a this pointer to the instance itself

◆ set_gear_low()

Gear66* apollo::canbus::lincoln::Gear66::set_gear_low ( )

set gear to low

Returns
a this pointer to the instance itself

◆ set_gear_neutral()

Gear66* apollo::canbus::lincoln::Gear66::set_gear_neutral ( )

set gear to neutral

Returns
a this pointer to the instance itself

◆ set_gear_none()

Gear66* apollo::canbus::lincoln::Gear66::set_gear_none ( )

set gear to none

Returns
a this pointer to the instance itself

◆ set_gear_park()

Gear66* apollo::canbus::lincoln::Gear66::set_gear_park ( )

set gear to park

Returns
a this pointer to the instance itself

◆ set_gear_reverse()

Gear66* apollo::canbus::lincoln::Gear66::set_gear_reverse ( )

set gear to reverse

Returns
a this pointer to the instance itself

◆ UpdateData()

virtual void apollo::canbus::lincoln::Gear66::UpdateData ( uint8_t *  data)
virtual

update the data

Parameters
dataa pointer to the data to be updated

Reimplemented from apollo::drivers::canbus::ProtocolData< ::apollo::canbus::ChassisDetail >.

Member Data Documentation

◆ ID

const int32_t apollo::canbus::lincoln::Gear66::ID
static

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