Gear Indication
This module provides a set of functionalities for managing the gear system, including determining the current gear state and handling gear mode transitions. It supports various gear modes such as Manual Transmission (MT), Automatic Transmission (AT), Automated Manual Transmission (AMT), and Dual-Clutch Transmission (DCT).
Configuration Parameters
All API functions have the first argument as the module ID.
Name |
Description |
Range |
|---|---|---|
enable |
Enables gear functionality. |
0 (disabled) or 1 (enabled) |
transmission_type |
Gear mode selection (e.g., MT, AT, AMT, DCT). |
1 (MT), 2 (AT), 3 (AMT), 4 (DCT) |
APIs
The Gear module provides the following APIs to initialize, process, and update gear state:
Function |
Description |
|---|---|
rs_am_gear_init |
Initializes the gear system with default configuration values and registers with the dispatcher. |
rs_am_gear_process |
Processes the gear system by checking gear conditions and updating the display based on the current gear. |
Error Codes
Each API for the gear module returns success or failure codes. For detailed information on the error codes, please refer to the following section:
See also
:doc:/error_codes
Gear Module Header Details
The header file for the gear module, rs_am_gear_indication.h, defines the required structures and APIs for initialization and processing.
Warning
doxygenfile: Cannot find file “rs_am_gear_indication.h