4.16. CDD SENT Module
4.16.1. Acronyms and Definitions
Abbreviation/Term |
Explanation |
|---|---|
AUTOSAR |
Automotive Open System Architecture |
SENT |
Single Edge Nibble Transmission |
API |
Application Programming Interface |
BSW |
Basic Software |
ECU |
Electronic Control Unit |
DET |
Default Error Tracer |
HW |
Hardware |
SW |
Software |
I/O |
Input/Output |
MCAL |
Micro Controller Abstraction Layer |
RTE |
Runtime Environment |
CDD |
Complex Device Driver |
MTP |
Master Pulse Trigger |
GPIO |
General Purpose Input Output |
4.16.2. Introduction
SENT stands for Single Edge Nibble Transmission. The SENT protocol is unidirectional and uses single wire between two or more points to transmit signals from one or more sensors to a controller. This protocol can transmit high resolution data at a low cost to the system. The SENT module utilizes a Master Trigger Pulse Generator to control and receive data from one or more sensors, using a configurable pulse signal. The received data can be stored directly into memory or a FIFO and read by the CPU or RTDMA.
SENT driver is part of complex device drivers which receive the data from the sensors and send the RX indication, support both fast channel and slow channel.
Fig. 4.67 CDD_SENT MCAL AUTOSAR
This document details AUTOSAR BSW CDD_SENT module implementation
Supported AUTOSAR Release |
4.3.1 |
|---|---|
Supported Configuration Variants |
Pre-Compile |
Vendor ID |
CDD_SENT_VENDOR_ID (44) |
Module ID |
CDD_SENT_MODULE_ID (255) |
4.16.3. Functional Overview
F29X supports two modes of the SENT :
Standard SENT:
This supports only one sensor per the instance.
Sensors will be automatically sends the data, no triggering required from the ECU/coordinator.
MTP ( Master Trigger Pulse ):
This supports up to 4 sensors + broadcast.
Sensors sends the data only after master triggers the corresponding pulse of the sensor.
For triggering the pulse, there are 10 comparators which can be configured to different pulse widths.
Sent Integration with AUTOSAR Communication stack Sent is communication protocol implemented in the Cdd Sent driver. Similar to other communication protocols such as Can/Lin/Flexray, Sent can also be integrated with AUTOSAR communication stack. Cdd Sent is a driver. This driver can directly act as a lower layer module for PduR without needing an interface layer in between. Integration of Cdd Sent driver with AUTOSAR com stack is optional and can be enabled by configuration parameter CddSentIntegrationWithAsrComStackEnable. When it is enabled, Cdd Sent driver is responsible to call the receive indication to PduR and PduR is responsible to call transmit function to Cdd Sent. In order to achieve this, correct handle Ids should be configured in both Cdd Sent and PduR. Please refer to the explanation of Cdd_Sent_Transmit() and PduR_Cdd_Sent_RxIndication() in Cdd Sent driver.
4.16.4. Hardware Features
4.16.4.1. Hardware Features supported
The SENT module includes the following features:
Based on SAE J2716 (J2716 January 2010 and J2716 April 2016)
Supports 2007 and 2010 CRC checksum calculation
Fast channel receiver
Slow channel receiver
Short serial message (8-bit data and 4-bit message ID)
Enhanced serial 12-bit message (12-bit data and 8-bit message ID)
Enhanced serial 12-bit message (12-bit data and 8-bit message ID)
Master Trigger Pulse Generator (MTPG) enables multiple sensors for the same SENT bus
Receiver and Interrupt Features
Programmable glitch filter on input (with bypass mode available)
Automatic detection of CRC error and framing error on Fast Channel Data
Automatic detection of CRC error and format error on Slow Channel Data
Option to save data received with error
Configurable number of data nibbles to receive (1 - 8)
FIFO support for received data frames
Error Detection Supported:
Timeout
Calibration
FIFO Overflow/Underflow
Frequency Drift
Overflow Trigger Request
Time stamp captures for received
Configurable memory depth
Time stamp captures for received data frames
5 SENT channels that can each be set to be triggered by one of 63 trigger sources
Nibble sorting to minimize CPU intervention
Fig. 4.68 Cdd_Sent Block Diagram
4.16.4.2. Not supported Features
DMA
4.16.4.3. Non compliance
None
4.16.5. Source files
📦f29h85x_mcal
┣ 📂build
┣ 📂docs
┣ 📂drivers
┃ ┣ 📂BSW_Stubs
┃ ┣ 📂Can
┃ ┣ 📂Cdd_Sent
┃ ┃ ┣ 📂include
┃ ┃ ┃ ┣ 📜Cdd_Sent.h : Contains the API declarations of the Cdd_Sent driver to be used by upper layers.
┃ ┃ ┃ ┣ 📜Cdd_Sent_Priv.h : Contains data structures and Internal function declarations.
┃ ┃ ┃ ┗ 📜Cdd_Sent_Reg_Access.h : Contains the MACROs for Cdd_Sent register access.
┃ ┃ ┣ 📂src
┃ ┃ ┃ ┣ 📜Cdd_Sent.c : Contains the implementation of the API for Cdd_Sent driver.
┃ ┃ ┃ ┣ 📜Cdd_Sent_Irq.c : Contains the implementation for Cdd_Sent interrupts handlers.
┃ ┃ ┃ ┗ 📜Cdd_Sent_Priv.c : Contains Functions that support the API for Cdd_Sent driver
┃ ┃ ┗ 📜CMakeLists.txt
┃ ┣ 📂Dio
┃ ┣ 📂Gpt
┃ ┣ 📂hw_include
┃ ┣ 📂Mcal_Lib
┃ ┣ 📂Mcu
┃ ┗ 📂Port
┣ 📂examples
┣ 📂plugins
┣ 📜CMakeLists.txt
┗ 📜CMakePresets.json
Fig. 4.69 Cdd_Sent Header File Structure
4.16.6. Module requirements
4.16.6.1. Memory Mapping
Will be added in later release
4.16.6.2. Scheduling
None
4.16.6.3. Error handling
4.16.6.3.1. Development Error Reporting
Development errors are reported to the DET using the service Det_ReportError(), when enabled. The driver interface contains the MACRO declaration of the error codes to be returned.
4.16.6.3.2. Extended Production Error Reporting
Extended production errors are reported to the DEM using the service Dem_SetEventStatus(), when enabled. The driver interface contains the MACRO declaration of the error codes to be returned.
4.16.6.4. Error codes
Type of Error |
Related Error code |
Value (Hex) |
|---|---|---|
API called with a NULL_PTR |
CDD_SENT_E_PARAM_POINTER |
0x20U |
API service invoked with invalid channel |
CDD_SENT_E_PARAM_CHANNEL |
0x21U |
API service for initialization called when already initialized |
CDD_SENT_E_ALREADY_INITIALIZED |
0x22U |
API invoked without performing module initialization |
CDD_SENT_E_UNINIT |
0x23U |
4.16.7. Safety Mechanism
TI Diagnostic Unique Identifier |
Summary |
Description |
|---|---|---|
SENT4 |
FIFO Data Overflow Detection |
Error detection are notified to user and Reported to DEM |
SENT5 |
FIFO Data Underflow Detection |
Error detection are notified to user and Reported to DEM |
SENT6 |
SENT CRC Framing Checks |
Error detection are notified to user and Reported to DEM |
SENT7 |
SENT Fast Channel Framing Checks |
Error detection are notified to user and Reported to DEM |
SENT8 |
SENT Slow Channel Framing Checks |
Error detection are notified to user and Reported to DEM |
SENT9 |
SENT Standard Frame Watchdog |
Error detection are notified to user and Reported to DEM |
SENT10 |
SENT Synchronous Frame Watchdog |
Error detection are notified to user and Reported to DEM |
SENT11 |
SENT Synchronization Pulse Length Error Detection |
Error detection are notified to user and Reported to DEM |
SENT12 |
SENT Frequency Drift Error Detection |
Error detection are notified to user and Reported to DEM |
SENT13 |
SENT Synchronous Channel Overflow Trigger Detection |
Error detection are notified to user and Reported to DEM |
SENT15 |
SENT Frame Glitch Filter |
Error detection are notified to user and Reported to DEM |
Note
More details of Safety Mechanisms can be found in Safety Manual.
4.16.8. Used resources
4.16.8.1. Interrupt Handling
Cdd_Sent driver provides ISR. The interrupt vector lines to be used is configurable in Cdd_Sent driver. The ISR functionality is implemented in the file Cdd_Sent_Irq.c.
Cdd_Sent Instance |
Interrupt handler |
Interrupt Line |
|---|---|---|
Cdd_Sent 1 |
Cdd_Sent_1_ISR, |
Line 0 |
Cdd_Sent 2 |
Cdd_Sent_2_ISR |
Line 0 |
Cdd_Sent 3 |
Cdd_Sent_3_ISR |
Line 0 |
Cdd_Sent 4 |
Cdd_Sent_4_ISR |
Line 0 |
Cdd_Sent 5 |
Cdd_Sent_5_ISR |
Line 0 |
Cdd_Sent 6 |
Cdd_Sent_6_ISR |
Line 0 |
Note
Same Interrupt Category needs to be configured in both Cdd_Sent and OS Modules.
4.16.8.2. Instance support
CPU instances |
supported |
|---|---|
CPU 1 |
YES |
CPU 2 |
NO |
CPU 3 |
NO |
4.16.8.3. Hardware-Software Mapping
Below image shows Cdd_Sent driver Hardware-Software mapping. For more information related to HW/SW mapping, refer the F29x Reference Manual.
Fig. 4.70 Cdd_Sent HW/SW Mapping
4.16.9. Integration description
4.16.9.1. Dependent modules
4.16.9.1.1. PduR
The PDU Router module provides services for routing of routing Protocol Data Units(I-PDUs) between various communication modules, ensuring seamless data transfer across different communication protocols.When the Cdd_Sent module receives sensor data, it encapsulates the data into PDUs and sends them to the PduR with PDU id’s. The PduR then routes these PDUs to the appropriate higher-layer modules. User need to configure configure PDUs in ECUC. Cdd_Sent will generate symbolic names for those PDUs in Cdd_Sent module.
Note
Symbolic names are used to call PduR receive indication.
Symbolic name template follows : “PduRConf_PduRSrcPdu_PduRSrcPdu_{PduName}”
PduName is the symbolic name configured in EcuC->Pdu Container.
PduRSrcPdu_PduName must be the name of source PDU configuration container in PduR routing table.[As a result PduR will generate symbolic name “PduRConf_PduRSrcPdu_PduRSrcPdu_PduName”]
4.16.9.1.2. DET
This implementation depends on the DET in order to report development errors. The detection of development errors is configurable (ON / OFF), The switch CDD_SENT_CFG_DEV_ERROR_DETECT will activate or deactivate the detection of all development errors.
4.16.9.1.3. DEM
This implementation depends on the DEM in order to report Extended production errors and can be turned OFF. The switch CDD_SENT_CFG_DEM_ENABLE will activate or deactivate the detection of all extended production errors. If hardware failure notification is enabled in the configuration set and a hardware source failure error occurs, the error code CDD_E_HARDWARE_ERROR shall be reported.
4.16.9.1.4. MCU
MCU Module is required to initialize all the clock to be used by different peripherals.
4.16.9.1.5. Port
The Port module configures the port pins used for the SENT driver as input. Hence, the Port driver has to be initialized prior to the use of SENT functions. Otherwise Cdd_Sent driver functions will exhibit undefined behavior.
4.16.9.1.6. OS
The Cdd_Sent driver uses interrupts and therefore there is a dependency on the OS, which configures the interrupt sources.
4.16.9.2. Resource Allocator
The SENT module references the Resource Allocator for device, package, and variant configuration. See the Resource Allocator Module User Guide for details on configuring device-specific settings.
4.16.9.2.1. Resource Allocator Usage Example
To allocate SENT1 to CPU1 using FRAME0:
In the Resource Allocator configuration, create a new Sent instance allocation
Set InstanceName to
SENT1Set Frame to
FRAME0The BaseAddr will be automatically calculated as
SENT1_DRIVER_BASE_FRAME(0U)
Resource Allocator Configuration:
├── SentInstanceAllocation
│ ├── InstanceName: SENT1
│ ├── Frame: FRAME0
│ └── BaseAddr: SENT1_DRIVER_BASE_FRAME(0U)
4.16.10. Configuration
The Cdd_Sent Driver implementation supports one configuration variant Pre-Compile config. The driver expects generated Cdd_Sent_Cfg.h to be present as input file. The associated Cdd_Sent driver configuration generated source files are Cdd_Sent_Cfg.c
The generated configuration files should not be modified manually. The config tool Elektrobit Tresos should be used to modify the configuration files.
4.16.10.1. Migration Guide
Migration guides between module versions are detailed below.
4.16.10.1.1. v3.0.0 from v2.0.0
This section describes the changes required when migrating from CDD SENT driver version 2.0.0 to version 3.0.0.
4.16.10.1.1.1. Key Changes
Resource Allocator Based Approach
The CDD SENT module now uses the Resource Allocator for device, package, and variant configuration
SENT instance selection is now done through
CddSentInstanceRefwhich references the Resource Allocator’s allocated instancesBase address (
CddSentBaseAddress) is automatically derived from the Resource Allocator configurationSee the Resource Allocator Module User Guide for details on configuring device-specific settings
DEM Configuration Parameter Name Change
The DEM event parameter reference name has been changed for consistency with module naming conventions
Old name:
CDD_E_HARDWARE_ERRORNew name:
CDD_SENT_E_HARDWARE_ERROR
4.16.10.1.1.2. Migration Steps
Update Resource Allocator Configuration
Configure the Resource Allocator module with the required SENT instances
Allocate SENT instances to the appropriate CPU context
Update CDD SENT Configuration
Open the CDD SENT module configuration in EB Tresos
For each
CddSentController, set theCddSentInstanceRefto reference the appropriate allocated instance from Resource AllocatorThe
CddSentBaseAddresswill be automatically populated based on the Resource Allocator configuration
Update DEM Configuration References
If DEM error reporting is enabled, update the DEM event parameter reference
Change references from
CDD_E_HARDWARE_ERRORtoCDD_SENT_E_HARDWARE_ERRORUpdate any application code that references this DEM event parameter name
Regenerate Configuration
Save the configuration and regenerate the configuration files
Rebuild Application
Rebuild your application with the updated configuration
4.16.10.1.2. v2.0.0 from v1.0.0
To align with AUTOSAR CDD naming convention, we have named Module Name as Cdd and apiServicePrefix as Cdd_Sent. This results in change in schema as described below.
To make v1.0.0 Sent schema(generated .xdm file) compatible with v2.0.0 below changes are required:
Change ‘AR-ELEMENT’ name from Cdd_Sent to Cdd.
Update MODULE-CONFIGURATION path from ‘ASPath:/TI_F29H85x/Cdd_Sent’ to ‘ASPath:/TI_F29H85x/Cdd_Sent/Cdd’.
Earlier schema:
<d:lst type="TOP-LEVEL-PACKAGES">
<d:ctr name="Cdd_Sent" type="AR-PACKAGE">
<d:lst type="ELEMENTS">
<d:chc name="Cdd_Sent" type="AR-ELEMENT" value="MODULE-CONFIGURATION">
<d:ctr type="MODULE-CONFIGURATION">
<a:a name="DEF" value="ASPath:/TI_F29H85x/Cdd_Sent"/>
Modified new schema:
<d:lst type="TOP-LEVEL-PACKAGES">
<d:ctr name="Cdd_Sent" type="AR-PACKAGE">
<d:lst type="ELEMENTS">
<d:chc name="Cdd" type="AR-ELEMENT" value="MODULE-CONFIGURATION">
<d:ctr type="MODULE-CONFIGURATION">
<a:a name="DEF" value="ASPath:/TI_F29H85x/Cdd_Sent/Cdd"/>
4.16.10.2. Configuration Parameters
4.16.10.3. CddSentConfig
This container contains the configuration parameters and sub containers of the CddSent module.
4.16.10.3.1. CddSentController
This container contains the configuration parameters of the CddSent HW units.
4.16.10.3.1.1. CddSentBaseAddress
Item |
|
|---|---|
Name |
CddSentBaseAddress |
Description |
Specifies the CddSent HW unit base address. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
SENT1_BASE_FRAME(0) |
4.16.10.3.1.2. CddSentHWUnitId
Item |
|
|---|---|
Name |
CddSentHWUnitId |
Description |
This parameter provides the HW unit ID which is unique in a given CddSent Driver. The value for this parameter starts with 0 and continue without any gaps. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
5 |
Min-value |
0 |
4.16.10.3.1.3. CddSentClockTick
Item |
|
|---|---|
Name |
CddSentClockTick |
Description |
This parameter is for setting the clock tick for the CddSent in Use |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
600 |
Min-value |
0 |
4.16.10.3.1.4. CddSentInterruptType
Item |
|
|---|---|
Name |
CddSentInterruptType |
Description |
Defines the interrupt type. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
CDD_SENT_ISR_CAT2 |
Range |
CDD_SENT_ISR_CAT1_RTINT |
4.16.10.3.1.5. CddSentCRCType
Item |
|
|---|---|
Name |
CddSentCRCType |
Description |
CddSent CRC type selection. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
CDD_SENT_CRC_RECOMENDED_2010 |
Range |
CDD_SENT_CRC_LEGACY_2007 |
4.16.10.3.1.6. CddSentCRCWidth
Item |
|
|---|---|
Name |
CddSentCRCWidth |
Description |
CddSent CRC Width selection. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
CDD_SENT_CRC_4_BIT |
Range |
CDD_SENT_CRC_4_BIT |
4.16.10.3.1.7. CddSentCRCWithStatus
Item |
|
|---|---|
Name |
CddSentCRCWithStatus |
Description |
Enable/Disable CRC with status.. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
CDD_SENT_CRC_WITH_STATUS |
Range |
CDD_SENT_CRC_WITH_STATUS |
4.16.10.3.1.8. CddSentDataNibblesCount
Item |
|
|---|---|
Name |
CddSentDataNibblesCount |
Description |
number of data nibbles expected |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
CDD_SENT_6_DATA_NIBBLES |
Range |
CDD_SENT_1_DATA_NIBBLES |
4.16.10.3.1.9. CddSentFIFOTriggerLevel
Item |
|
|---|---|
Name |
CddSentFIFOTriggerLevel |
Description |
FIFO trigger level expected |
Multiplicity-Configuration-Class |
– |
Pre-Compile Time |
VARIANT-PRE-COMPILE |
Origin |
Texas Instruments |
Post-build-variant-multiplicity |
false |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
CDD_SENT_TRIGLEV6 |
Range |
CDD_SENT_TRIGDISABLE |
4.16.10.3.1.10. CddSentUserCallbackFunction
Item |
|
|---|---|
Name |
CddSentUserCallbackFunction |
Description |
Call back function for the data |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
NULL_PTR |
4.16.10.3.1.11. CddSentUserErrorCallbackFunction
Item |
|
|---|---|
Name |
CddSentUserErrorCallbackFunction |
Description |
Call back function for the error |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
NULL_PTR |
4.16.10.3.1.12. CddSentSyncTimeout
Item |
|
|---|---|
Name |
CddSentSyncTimeout |
Description |
This parameter is for setting Timeout for receiving the synchronization pulse |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
255 |
Min-value |
0 |
4.16.10.3.1.13. CddSentGlitchFilter
Item |
|
|---|---|
Name |
CddSentGlitchFilter |
Description |
This parameter is for number of SYSCLKS that the received serial data input is filtered by |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
5 |
Max-value |
255 |
Min-value |
0 |
4.16.10.3.1.14. CddSentMTP
Item |
|
|---|---|
Name |
CddSentMTP |
Description |
Enable/disable MTP functionality. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
false |
4.16.10.3.1.15. CddSentGlobalWaitTime
Item |
|
|---|---|
Name |
CddSentGlobalWaitTime |
Description |
This parameter is for delay time between the last frame received to the new master trigger pulse to be generated |
Multiplicity-Configuration-Class |
– |
Pre-Compile Time |
VARIANT-PRE-COMPILE |
Origin |
Texas Instruments |
Post-build-variant-multiplicity |
false |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
256 |
Max-value |
65535 |
Min-value |
0 |
4.16.10.3.1.16. CddSentAcceptErrorData
Item |
|
|---|---|
Name |
CddSentAcceptErrorData |
Description |
Accept error data or not. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
false |
4.16.10.3.1.17. CddSentEnableTimeStamp
Item |
|
|---|---|
Name |
CddSentEnableTimeStamp |
Description |
Enable/disable Time stamping. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
true |
4.16.10.3.1.18. CddSentInstanceRef
Item |
|
|---|---|
Name |
CddSentInstanceRef |
Description |
Selects CddSent HW unit Instance. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
4.16.10.3.1.19. CddSentCpuClockRef
Item |
|
|---|---|
Name |
CddSentCpuClockRef |
Description |
Reference to the CPU clock configuration, which is set in the MCU driver configuration |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
4.16.10.3.2. CddSentChannelObject
This container contains the configuration parameters of the CddSent channel object
4.16.10.3.2.1. CddSentSensorType
Item |
|
|---|---|
Name |
CddSentSensorType |
Description |
selection of sensor types |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
CDD_SENT_CHANNEL_STANDARD_SENSOR |
Range |
CDD_SENT_CHANNEL_STANDARD_SENSOR |
4.16.10.3.2.2. CddSentChannelType
Item |
|
|---|---|
Name |
CddSentChannelType |
Description |
selection of channel types |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
CDD_SENT_CHANNEL_STANDARD_SENSOR_FAST_CHANNEL |
Range |
CDD_SENT_CHANNEL_STANDARD_SENSOR_FAST_CHANNEL |
4.16.10.3.2.3. CddSentChannelObjectID
Item |
|
|---|---|
Name |
CddSentChannelObjectID |
Description |
This parameter will be used when CddSentIntegrationWithAsrComStackEnable is disabled. This channel object identifier will be used in configured receive callback function to address the received object from respective sensor. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
65535 |
Min-value |
0 |
4.16.10.3.2.4. CddSentMessageID
Item |
|
|---|---|
Name |
CddSentMessageID |
Description |
This parameter is the message id |
Multiplicity-Configuration-Class |
– |
Pre-Compile Time |
VARIANT-PRE-COMPILE |
Origin |
Texas Instruments |
Post-build-variant-multiplicity |
false |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
1 |
Max-value |
255 |
Min-value |
1 |
4.16.10.3.2.5. CddSentPduID
Item |
|
|---|---|
Name |
CddSentPduID |
Description |
This parameter will be used when CddSentIntegrationWithAsrComStackEnable is enabled. This Pdu identifier will be used in receive function callback to PduR to address the received Pdu from respective sensor. |
Multiplicity-Configuration-Class |
– |
Pre-Compile Time |
VARIANT-PRE-COMPILE |
Origin |
Texas Instruments |
Post-build-variant-multiplicity |
false |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
4.16.10.3.3. CddSentExternalDeviceConfig
This container contains the configuration parameters of the CddSent MTP triggers.
4.16.10.3.3.1. CddSentMTPSensorType
Item |
|
|---|---|
Name |
CddSentMTPSensorType |
Description |
selection of MTP sensor type |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
CDD_SENT_CHANNEL_SENSOR_1 |
Range |
CDD_SENT_CHANNEL_BROADCAST |
4.16.10.3.3.2. CddSentSensorTriggerSource
Item |
|
|---|---|
Name |
CddSentSensorTriggerSource |
Description |
selection of channel types |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
DISABLE |
Range |
DISABLE |
4.16.10.3.3.3. CddSentMTPSensorEnable
Item |
|
|---|---|
Name |
CddSentMTPSensorEnable |
Description |
Accept PArticular MTP channel. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
false |
4.16.10.3.3.4. CddSentMTPSensorCompare1
Item |
|
|---|---|
Name |
CddSentMTPSensorCompare1 |
Description |
The time (inclock tick unit) of the Channel’s Master Trigger Pulse Generator output to be toggled. No toggle if TOGGLETIME = 0. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
1023 |
Min-value |
0 |
4.16.10.3.3.5. CddSentMTPSensorCompare2
Item |
|
|---|---|
Name |
CddSentMTPSensorCompare2 |
Description |
the time (inclock tick unit) of the Channel’s Master Trigger Pulse Generator output to be toggled.For non-zero TOGGLETIME, it has to be larger than CddSentMTPSensorCompare1, No toggle if TOGGLETIME = 0. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
1023 |
Min-value |
0 |
4.16.10.3.3.6. CddSentMTPSensorCompare3
Item |
|
|---|---|
Name |
CddSentMTPSensorCompare3 |
Description |
the time (inclock tick unit) of the Channel’s Master Trigger Pulse Generator output to be toggled.For non-zero TOGGLETIME, it has to be larger than CddSentMTPSensorCompare2, No toggle if TOGGLETIME = 0. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
1023 |
Min-value |
0 |
4.16.10.3.3.7. CddSentMTPSensorCompare4
Item |
|
|---|---|
Name |
CddSentMTPSensorCompare4 |
Description |
the time (inclock tick unit) of the Channel’s Master Trigger Pulse Generator output to be toggled.For non-zero TOGGLETIME, it has to be larger than CddSentMTPSensorCompare3, No toggle if TOGGLETIME = 0. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
1023 |
Min-value |
0 |
4.16.10.3.3.8. CddSentMTPSensorCompare5
Item |
|
|---|---|
Name |
CddSentMTPSensorCompare5 |
Description |
the time (inclock tick unit) of the Channel’s Master Trigger Pulse Generator output to be toggled.For non-zero TOGGLETIME, it has to be larger than CddSentMTPSensorCompare4, No toggle if TOGGLETIME = 0. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
1023 |
Min-value |
0 |
4.16.10.3.3.9. CddSentMTPSensorCompare6
Item |
|
|---|---|
Name |
CddSentMTPSensorCompare6 |
Description |
the time (inclock tick unit) of the Channel’s Master Trigger Pulse Generator output to be toggled.For non-zero TOGGLETIME, it has to be larger than CddSentMTPSensorCompare5, No toggle if TOGGLETIME = 0. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
1023 |
Min-value |
0 |
4.16.10.3.3.10. CddSentMTPSensorCompare7
Item |
|
|---|---|
Name |
CddSentMTPSensorCompare7 |
Description |
the time (inclock tick unit) of the Channel’s Master Trigger Pulse Generator output to be toggled.For non-zero TOGGLETIME, it has to be larger than CddSentMTPSensorCompare6, No toggle if TOGGLETIME = 0. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
1023 |
Min-value |
0 |
4.16.10.3.3.11. CddSentMTPSensorCompare8
Item |
|
|---|---|
Name |
CddSentMTPSensorCompare8 |
Description |
the time (inclock tick unit) of the Channel’s Master Trigger Pulse Generator output to be toggled.For non-zero TOGGLETIME, it has to be larger than CddSentMTPSensorCompare7, No toggle if TOGGLETIME = 0. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
1023 |
Min-value |
0 |
4.16.10.3.3.12. CddSentMTPSensorCompare9
Item |
|
|---|---|
Name |
CddSentMTPSensorCompare9 |
Description |
the time (inclock tick unit) of the Channel’s Master Trigger Pulse Generator output to be toggled.For non-zero TOGGLETIME, it has to be larger than CddSentMTPSensorCompare8, No toggle if TOGGLETIME = 0. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
1023 |
Min-value |
0 |
4.16.10.3.3.13. CddSentMTPSensorCompare10
Item |
|
|---|---|
Name |
CddSentMTPSensorCompare10 |
Description |
the time (inclock tick unit) of the Channel’s Master Trigger Pulse Generator output to be toggled.For non-zero TOGGLETIME, it has to be larger than CddSentMTPSensorCompare9, No toggle if TOGGLETIME = 0. |
Multiplicity-Configuration-Class |
– |
Pre-Compile Time |
VARIANT-PRE-COMPILE |
Origin |
Texas Instruments |
Post-build-variant-multiplicity |
false |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
1023 |
Min-value |
0 |
4.16.10.3.3.14. CddSentMTPSensorPeriod
Item |
|
|---|---|
Name |
CddSentMTPSensorPeriod |
Description |
the total time (inclock tick unit) mater trigger pulse output waveform is active. The CddSentMTPSensorPeriod must be larger than all Channel CddSentMTPSensorCompare10 value. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
1023 |
Min-value |
0 |
4.16.10.3.3.15. CddSentMTPSensorTimeout
Item |
|
|---|---|
Name |
CddSentMTPSensorTimeout |
Description |
The parameter CddSentMTPSensorTimeout indicates a time to initiate an interrupt if the sent receiver has not received responce |
Multiplicity-Configuration-Class |
– |
Pre-Compile Time |
VARIANT-PRE-COMPILE |
Origin |
Texas Instruments |
Post-build-variant-multiplicity |
false |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
4294967295 |
Min-value |
0 |
4.16.10.3.3.16. CddSentExternalDeviceID
Item |
|
|---|---|
Name |
CddSentExternalDeviceID |
Description |
This parameter will be used when CddSentIntegrationWithAsrComStackEnable is disabled. This device identifier will be used in transmit function to address the respective sensor. |
Multiplicity-Configuration-Class |
– |
Pre-Compile Time |
VARIANT-PRE-COMPILE |
Origin |
Texas Instruments |
Post-build-variant-multiplicity |
false |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
65535 |
Min-value |
0 |
4.16.10.3.3.17. CddSentMTPSensorPduID
Item |
|
|---|---|
Name |
CddSentMTPSensorPduID |
Description |
This parameter will be used when CddSentIntegrationWithAsrComStackEnable is enabled. This Pdu identifier will be used in transmit function to address the respective sensor. |
Multiplicity-Configuration-Class |
– |
Pre-Compile Time |
VARIANT-PRE-COMPILE |
Origin |
Texas Instruments |
Post-build-variant-multiplicity |
false |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
4.16.10.3.4. CddSentFIFOInterrupts
Item |
|
|---|---|
Name |
CddSentFIFOInterrupts |
Description |
The CPU reads the receiver FIFO when it is empty |
Multiplicity-Configuration-Class |
– |
Pre-Compile Time |
VARIANT-PRE-COMPILE |
Post-build-variant-multiplicity |
false |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
false |
4.16.10.3.5. CddSentSlowChannelInterrupts
Item |
|
|---|---|
Name |
CddSentSlowChannelInterrupts |
Description |
If there is a format error in slow channel data |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
false |
4.16.10.3.6. CddSentFastChannelCRCErrorInterrupts
Item |
|
|---|---|
Name |
CddSentFastChannelCRCErrorInterrupts |
Description |
When there is a CRC error in sensor 4 fast channel data |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
false |
4.16.10.3.7. CddSentFastChannelFrameErrorInterrupts
Item |
|
|---|---|
Name |
CddSentFastChannelFrameErrorInterrupts |
Description |
When there is a frame error (Invalif nibble) in sensor 4 fast channel data |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
false |
4.16.10.3.8. CddSentTimeoutErrorInterrupts
Item |
|
|---|---|
Name |
CddSentTimeoutErrorInterrupts |
Description |
No responce from sensor 4 in timeout specified |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
false |
4.16.10.3.9. CddSentOverflowErrorInterrupts
Item |
|
|---|---|
Name |
CddSentOverflowErrorInterrupts |
Description |
When the sensor 4 channel trigger pulse genarator recieves a trigger reuest while it is busy |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
false |
4.16.10.3.10. CddSentSyncErrorInterrupts
Item |
|
|---|---|
Name |
CddSentSyncErrorInterrupts |
Description |
The ratio of the calibration pulse to the message length varies by greater than 1/64 or less than -1/64 from one message to another |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
false |
4.16.10.4. CddComStackContribution
Contribution of COM Stack modules.
4.16.10.4.1. CddPduRLowerLayerContribution
Parameters that are necessary for the configuration of a Complex Driver that serves as the LowerLayer of the Pdu Router module.
4.16.10.4.2. CddPduRLowerLayerRxPdu
This container specifies Rx PDUs that are exchanged between the CDD and the standardized BSW module.
4.16.10.4.2.1. CddPduRApiType
Item |
|
|---|---|
Name |
CddPduRApiType |
Description |
This parameter configures the type of the CDD interface (IF/TP) |
Multiplicity-Configuration-Class |
– |
Pre-Compile Time |
VARIANT-PRE-COMPILE |
Origin |
AUTOSAR_ECUC |
Post-build-variant-multiplicity |
false |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
IF |
Range |
IF |
4.16.10.4.2.2. CddPduRLowerLayerHandleId
Item |
|
|---|---|
Name |
CddPduRLowerLayerHandleId |
Description |
ECU wide unique, symbolic handle for the Pdu. |
Multiplicity-Configuration-Class |
– |
Pre-Compile Time |
VARIANT-PRE-COMPILE |
Origin |
AUTOSAR_ECUC |
Post-build-variant-multiplicity |
false |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
65535 |
Min-value |
0 |
4.16.10.4.2.3. CddSentPduRHandle
Item |
|
|---|---|
Name |
CddSentPduRHandle |
Description |
CddSentPduRHandle is a symbolic name of the Pdu with which Cdd_Sent module invokes the receive indication for upper layer. User can modify this parameter to match with the symbolic name used by upper layer. |
Multiplicity-Configuration-Class |
– |
Pre-Compile Time |
VARIANT-PRE-COMPILE |
Origin |
Texas Instruments |
Post-build-variant-multiplicity |
false |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
NULL |
4.16.10.4.2.4. CddPduRLowerLayerPduRef
Item |
|
|---|---|
Name |
CddPduRLowerLayerPduRef |
Description |
Reference to the “global” Pdu structure to allow harmonization of handle IDs in the COM-Stack. |
Origin |
AUTOSAR_ECUC |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
4.16.10.4.3. CddPduRLowerLayerTxPdu
This container specifies Tx PDUs that are exchanged between the CDD and the standardized BSW module.
4.16.10.4.3.1. CddPduRApiType
Item |
|
|---|---|
Name |
CddPduRApiType |
Description |
This parameter configures the type of the CDD interface (IF/TP) |
Multiplicity-Configuration-Class |
– |
Pre-Compile Time |
VARIANT-PRE-COMPILE |
Origin |
AUTOSAR_ECUC |
Post-build-variant-multiplicity |
false |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
IF |
Range |
IF |
4.16.10.4.3.2. CddPduRLowerLayerHandleId
Item |
|
|---|---|
Name |
CddPduRLowerLayerHandleId |
Description |
ECU wide unique, symbolic handle for the Pdu. |
Multiplicity-Configuration-Class |
– |
Pre-Compile Time |
VARIANT-PRE-COMPILE |
Origin |
AUTOSAR_ECUC |
Post-build-variant-multiplicity |
false |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
65535 |
Min-value |
0 |
4.16.10.4.3.3. CddPduRLowerLayerPduRef
Item |
|
|---|---|
Name |
CddPduRLowerLayerPduRef |
Description |
Reference to the “global” Pdu structure to allow harmonization of handle IDs in the COM-Stack. |
Origin |
AUTOSAR_ECUC |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
4.16.10.5. CddSentGeneral
Contains the general configuration parameters of the module.
4.16.10.5.1. CddInstanceId
Item |
|
|---|---|
Name |
CddInstanceId |
Description |
Specifies the InstanceId of this module instance. If only one instance is present it shall have the Id 0. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
0 |
Max-value |
255 |
Min-value |
0 |
4.16.10.5.2. CddSentDevErrorDetect
Item |
|
|---|---|
Name |
CddSentDevErrorDetect |
Description |
Switches the development error detection and notification on or off. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
false |
4.16.10.5.3. CddSentVersionInfoApi
Item |
|
|---|---|
Name |
CddSentVersionInfoApi |
Description |
Adds / removes the service CddSent_GetVersionInfo() from the code. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
false |
4.16.10.5.4. CddSentIntegrationWithAsrComStackEnable
Item |
|
|---|---|
Name |
CddSentIntegrationWithAsrComStackEnable |
Description |
This parameter is used to enable the integration of Cdd Sent module with Autosar Com Stack. 0: Cdd Sent module is not integrated with Autosar Com stack. Transmission and Reception will be handled via Application Cdd or wrapper. 1: Cdd Sent module is integrated as lower module to PduR in Autosar Com stack. Transmission and Reception will be handled via Com Stack i.e. to and from PduR. |
Origin |
Texas Instruments |
Post-Build-Variant-Value |
false |
Value-Configuration-Class |
– |
Pre-Compile-Time |
VARIANT-PRE-COMPILE |
Default-value |
false |
Note
For non-zero TOGGLETIME, it has to be larger than previous compare register.
4.16.10.6. Steps To Configure Cdd_Sent Module
Open EB Tresos configurator tool, load Cdd_Sent module. Select the Precompile Config Variant.
Configure the required parameters.
Save the configuration and generate the configuration.
4.16.11. Examples
The example application demonstrates use of Cdd_Sent module, the list below identifies key steps performed in the example.
4.16.11.1. Cdd_Sent_standard
4.16.11.1.1. Overview Of Cdd_Sent_standard
Cdd_Sent_standard
EcuM_Init()
Initializes clock to 200 MHz using Mcu_Init()
Initializes pins as GPIO Outputs and GPIO Inputs using Port_Init()
Initializes Cdd_Sent driver using Cdd_Sent_Init()
Verification of Cdd_Sent standard mode feature functionality
4.16.11.1.2. Setup required to run Cdd_Sent_standard
Install Code Composer Studio(CCS) latest version
Install latest C29 compiler
Connect the hardware, sensors and power up
Connect the uart set up to check the log on serial console
Below image shows the hardware connections that needs to be done to run the example.
Fig. 4.71 Cdd_Sent HW Setup
4.16.11.1.3. How to run Cdd_Sent_standard
Open CCS and import Cdd_Sent_standard Example
Build project and start debug project
4.16.11.1.4. Sample Log of Cdd_Sent_standard
Cdd_Sent Driver Sample Application - Starts!!!
Cdd_Sent MCAL Version Info
---------------------
Vendor ID : 44
Module ID : 255
SW Major Version : 3
SW Minor Version : 0
SW Patch Version : 0
Initilizing Cdd_Sent Driver
Cdd Sent Drive initilized
Id received from Fast channel : 1
Timestamp received from Fast channel : 13962457
Data received from Fast channel : 977408
Id received from Fast channel : 1
Timestamp received from Fast channel : 13972883
Data received from Fast channel : 16760512
Id received from Fast channel : 1
Timestamp received from Fast channel : 13976794
Data received from Fast channel : 907709
Id received from Fast channel : 1
Timestamp received from Fast channel : 15302815
Data received from Fast channel : 9872400
Cdd_Sent_Standard: Sample Application - Completes successfully !!!
De-Initilizing Cdd_Sent Driver
4.16.11.1.5. How to run Cdd_Sent_MtpMode
Open CCS and import Cdd_Sent_MtpMode Example
Build project and start debug project
4.16.11.1.6. Sample Log of Cdd_Sent_MtpMode
Cdd_Sent Driver Sample Application - Starts!!!
Cdd_Sent MCAL Version Info
---------------------
Vendor ID : 44
Module ID : 255
SW Major Version : 3
SW Minor Version : 0
SW Patch Version : 0
Initilizing Cdd_Sent Driver
Cdd Sent Drive initilized
Trigger sensor with Sent Handle ID
Sensor Id received from Fast channel : 2
Timestamp received from Fast channel : 1656634214
Data received from Fast channel : 708884522
trigger successfully
Trigger sensor with Sent Handle ID
Sensor trigger successfully
Id received from Fast channel : 2
Timestamp received from Fast channel : 1656634214
Data received from Fast channel : 708884522
Cdd_Sent_MtpMode: Sample Application - Completes successfully !!!
De-Initilizing Cdd_Sent Driver
4.16.11.2. Cdd_Sent_Mtp_ExternalTrigger_Source
4.16.11.2.1. Overview of Cdd_Sent_Mtp_ExternalTrigger_Source
Cdd_Sent_Mtp_ExternalTrigger_Source
This example reads data from an MTP sensor with external trigger source using SENT communication protocol
Sensor details:
Product Type: TLE5014C16D
Marking: 014CD
Sensor Type: SPC Interface
The sensor sends out a signal made up of a string of pulses with data encoded as falling to falling edge periods
The modulated signal with constant amplitude voltage evaluates the time interval between two falling edges (a single edge) delivered in units of 4 bits (1 nibble), representing values from 0 to 15
This example configures SENT module to receive 4 Data-nibble per frame for fast channel
DeviceSupport_Init()
EcuM_Init()
Initialize clock using Mcu_Init()
Initialize pins with Port_Init()
Initialize Cdd_Sent driver using Cdd_Sent_Init()
Trigger sensor with Sent Handle ID using Cdd_Sent_Transmit()
Enable GPT notifications and start timer with 1s timeout
Wait for data reception and verify external trigger behavior
Stop timer and trigger sensor again
Receive and display data from fast and slow channels via callback
Deinitialize GPT and Cdd_Sent drivers
External Connections:
Connect GPIO18 to sensor’s SENT channel 4 pin
4.16.11.2.2. Setup required to run Cdd_Sent_Mtp_ExternalTrigger_Source
Install Code Composer Studio (CCS) latest version
Install latest C29 compiler
Connect the hardware and power up
Connect the UART setup to check the log on serial console
Connect GPIO18 to the sensor’s SENT channel 4 pin
4.16.11.2.3. How to run Cdd_Sent_Mtp_ExternalTrigger_Source
Open CCS and import Cdd_Sent_Mtp_ExternalTrigger_Source
Build project and start debug project
4.16.11.2.4. Sample Log of Cdd_Sent_Mtp_ExternalTrigger_Source
Cdd_Sent Driver Sample Application - Starts!!!
Cdd_Sent MCAL Version Info
---------------------
Vendor ID : 44
Module ID : 255
SW Major Version : 3
SW Minor Version : 0
SW Patch Version : 0
Initilizing Cdd_Sent Driver
Cdd Sent Drive initilized
Trigger sensor with Sent Handle ID
Sensor trigger successfully
Enable notifications for channel-0
Notifications enabled for channel-0
Start timer for channel-0 with 1s Timeout
Timer started for channel-0 with 1s Timeout
Stop timer for Channel-0
Timer stopped for channel-0
Trigger sensor with Sent Handle ID
Sensor trigger successfully
Start timer for channel-0 with 1s Timeout
Timer started for channel-0 with 1s Timeout
Stop timer for Channel-0
Timer stopped for channel-0
Deinitialize Gpt & Cdd_Sent Driver
Deinitialize Gpt & Cdd_Sent Driver successfully
------------------------------------------
4.16.11.3. File Structure
📦f29h85x_mcal
┣ 📂build
┣ 📂docs
┣ 📂drivers
┣ 📂examples
┃ ┣ 📂AppUtils
┃ ┣ 📂Can
┃ ┣ 📂Cdd_Adc
┃ ┣ 📂Cdd_Sent
┃ ┃ ┣ 📂Cdd_Sent_MtpMode
┃ ┃ ┃ ┣ 📂CCS
┃ ┃ ┃ ┃ ┗ 📜Cdd_Sent_MtpMode.projectspec
┃ ┃ ┃ ┣ 📂Cdd_Sent_MtpMode_Config
┃ ┃ ┃ ┃ ┣ 📂config
┃ ┃ ┃ ┃ ┃ ┣ 📜Cdd_Sent.xdm : Generated EB Tresos config file in .xdm format
┃ ┃ ┃ ┃ ┃ ┣ 📜Dem.xdm
┃ ┃ ┃ ┃ ┃ ┣ 📜EcuM.xdm
┃ ┃ ┃ ┃ ┃ ┣ 📜Mcu.xdm
┃ ┃ ┃ ┃ ┃ ┣ 📜Os.xdm
┃ ┃ ┃ ┃ ┃ ┗ 📜Port.xdm
┃ ┃ ┃ ┃ ┣ 📂include
┃ ┃ ┃ ┃ ┃ ┣ 📜Cdd_Sent_Cbk.h : Contains the exported function prototypes
┃ ┃ ┃ ┃ ┃ ┣ 📜Cdd_Sent_Cfg.h : Contains the generated pre-compiler configuration header
┃ ┃ ┃ ┃ ┃ ┣ 📜Dem_Cfg.h
┃ ┃ ┃ ┃ ┃ ┣ 📜EcuM_Cfg.h
┃ ┃ ┃ ┃ ┃ ┣ 📜Mcu_Cfg.h
┃ ┃ ┃ ┃ ┃ ┣ 📜Os_Cfg.h
┃ ┃ ┃ ┃ ┃ ┗ 📜Port_Cfg.h
┃ ┃ ┃ ┃ ┣ 📂src
┃ ┃ ┃ ┃ ┃ ┣ 📜Cdd_Sent_Cfg.c : Contains the Pre-compile build configuration parameters.
┃ ┃ ┃ ┃ ┃ ┣ 📜Dem_Cfg.c
┃ ┃ ┃ ┃ ┃ ┣ 📜EcuM_Cfg.c
┃ ┃ ┃ ┃ ┃ ┣ 📜Mcu_PBcfg.c
┃ ┃ ┃ ┃ ┃ ┣ 📜Os_Cfg.c
┃ ┃ ┃ ┃ ┃ ┗ 📜Port_PBcfg.c
┃ ┃ ┃ ┃ ┗ 📜CMakeLists.txt
┃ ┃ ┃ ┣ 📜Cdd_Sent_MtpMode.c : * MTP Mode Example application for Cdd_Sent.
┃ ┃ ┃ ┗ 📜CMakeLists.txt
┃ ┃ ┗ 📂Cdd_Sent_standard
┃ ┃ ┃ ┣ 📂CCS
┃ ┃ ┃ ┃ ┗ 📜Cdd_Sent_Standard.projectspec
┃ ┃ ┃ ┣ 📂Cdd_Sent_Standard_Config
┃ ┃ ┃ ┃ ┣ 📂config
┃ ┃ ┃ ┃ ┃ ┣ 📜Cdd_Sent.xdm : Generated EB Tresos config file in .xdm format
┃ ┃ ┃ ┃ ┃ ┣ 📜Dem.xdm
┃ ┃ ┃ ┃ ┃ ┣ 📜EcuM.xdm
┃ ┃ ┃ ┃ ┃ ┣ 📜Mcu.xdm
┃ ┃ ┃ ┃ ┃ ┣ 📜Os.xdm
┃ ┃ ┃ ┃ ┃ ┗ 📜Port.xdm
┃ ┃ ┃ ┃ ┣ 📂include
┃ ┃ ┃ ┃ ┃ ┣ 📜Cdd_Sent_Cbk.h : Contains the exported function prototypes
┃ ┃ ┃ ┃ ┃ ┣ 📜Cdd_Sent_Cfg.h : Contains the generated pre-compiler configuration header
┃ ┃ ┃ ┃ ┃ ┣ 📜Dem_Cfg.h
┃ ┃ ┃ ┃ ┃ ┣ 📜EcuM_Cfg.h
┃ ┃ ┃ ┃ ┃ ┣ 📜Mcu_Cfg.h
┃ ┃ ┃ ┃ ┃ ┣ 📜Os_Cfg.h
┃ ┃ ┃ ┃ ┃ ┗ 📜Port_Cfg.h
┃ ┃ ┃ ┃ ┣ 📂src
┃ ┃ ┃ ┃ ┃ ┣ 📜Cdd_Sent_Cfg.c : Contains the Pre-compile build configuration parameters.
┃ ┃ ┃ ┃ ┃ ┣ 📜Dem_Cfg.c
┃ ┃ ┃ ┃ ┃ ┣ 📜EcuM_Cfg.c
┃ ┃ ┃ ┃ ┃ ┣ 📜Mcu_PBcfg.c
┃ ┃ ┃ ┃ ┃ ┣ 📜Os_Cfg.c
┃ ┃ ┃ ┃ ┃ ┗ 📜Port_PBcfg.c
┃ ┃ ┃ ┃ ┗ 📜CMakeLists.txt
┃ ┃ ┃ ┣ 📜Cdd_Sent_Standard.c : * Standard Mode Example application for Cdd_Sent.
┃ ┃ ┃ ┗ 📜CMakeLists.txt
┃ ┣ 📂Cdd_Xbar
┃ ┣ 📂DeviceSupport
┃ ┣ 📂Dio
┃ ┣ 📂Gpt
┃ ┣ 📂Lin
┃ ┣ 📂Mcu
┃ ┣ 📂Port
┃ ┣ 📂Spi
┃ ┣ 📂Wdg
┣ 📂plugins
┣ 📜CMakeLists.txt
┗ 📜CMakePresets.json