LIN_master  0.1
Arduino LIN master emulation with preemptive background operation
LIN_master2.cpp File Reference

LIN master emulation library for Serial2. More...

#include "Arduino.h"
#include "LIN_master2.h"

Go to the source code of this file.

Functions

void LIN_master2_send (void)
 Wrapper for LIN_master2 transmission handler. More...
 
void LIN_master2_receive (void)
 Wrapper for LIN_master2 reception handler. More...
 
void LIN_master2_copy (uint8_t numData, uint8_t *data)
 Wrapper for LIN_master2 default receive callback function. More...
 

Variables

LIN_Master_2 LIN_master2
 instance of LIN master via Serial2
 

Detailed Description

LIN master emulation library for Serial2.

This library provides a master node emulation for a LIN bus via Serial2. For an explanation of the LIN bus and protocol e.g. see https://en.wikipedia.org/wiki/Local_Interconnect_Network

Author
Georg Icking-Konert
Date
2020-03-14
Version
0.1

Definition in file LIN_master2.cpp.

Function Documentation

◆ LIN_master2_copy()

void LIN_master2_copy ( uint8_t  numData,
uint8_t *  data 
)

Wrapper for LIN_master2 default receive callback function.

Wrapper for LIN_master2 default receive callback function for receiveSlaveResponse(). Just copies data to a specified buffer.

Definition at line 79 of file LIN_master2.cpp.

◆ LIN_master2_receive()

void LIN_master2_receive ( void  )

Wrapper for LIN_master2 reception handler.

Wrapper for LIN_master2 reception handler. This is required for task scheduler access to non-static member functions.

Definition at line 65 of file LIN_master2.cpp.

◆ LIN_master2_send()

void LIN_master2_send ( void  )

Wrapper for LIN_master2 transmission handler.

Wrapper for LIN_master2 transmission handler. This is required for task scheduler access to non-static member functions.

Definition at line 51 of file LIN_master2.cpp.