Skip to content

muhammetkocak0/STM32_LIN_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Basic STM32 LIN Communication API with Checksum Calculation

STM32 LIN Communication API for basic usage like unleashing the restricted features of a car, reverse engineering etc. not professional intended. Do not forget to configure UART as LIN in CubeIDE

Features

  • Send LIN Frames: Transmit LIN frames over the UART interface with calculated checksum, just pass data and uart channel
  • Process Received LIN Frames: Extract and process data from received LIN frames.

Note: More features will be added

Usage

To use the library change the "stm32f4xx_hal.h" according to your MCU

#ifndef INC_STM32_SENDLINFRAME_H_
#define INC_STM32_SENDLINFRAME_H_

#include "stm32f4xx_hal.h" //change this 
#include <stdint.h>

Initialize the LIN frame structure in main.c:

#include "stm32_lin_frame.h"
LIN_Frame_t BLDC_02_Set_Frame = {
    .Sync = 0x55,
    .Identifier = 0x6A,
    .Data = {0x00, 0x00, 0x50, 0x00, 0x81, 0x11, 0xC5, 0x00}
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages