/CPP-Union-RXTX-Packet-Structure

Using unions to transmit struct data (test for SPI and I2C communication)

Primary LanguageC++

RXTX Packet Structure using Unions

Language System

This code is made for testing operations of send, receive, copy and iterate over struct data, acessing its byte values using a union.

The purpose is to create the basic packet struct to be sent or received via SPI or I2C, between microcontrolers (C based).

Notes

- Using C++20 to test jthread.
- Threads will be used to simulate 2 devices.
- Developed in Termux.

To-do

  • Test async await to simulate events, instead of threads.
  • Test threadpool library.
  • Create class Device_Handle to encapsulate thread functions.