| RTOS_MSPM0 1.1 ECE445M starter code

Functions
TFLuna2.h File Reference
TFLuna

Initialize TFLuna2, interrupt synchronization. More...

Go to the source code of this file.

## Functions
void | TFLuna2_Init (void(*function)(uint32_t))
| Initialize TFLuna2. More...
void | TFLuna2_Format_Standard_mm (void)
| mm units More...
void | TFLuna2_Format_Standard_cm (void)
| cm units More...
void | TFLuna2_Format_Pixhawk (void)
| Pixhawk. More...
void | TFLuna2_Frame_Rate (void)
| sampling rate More...
void | TFLuna2_SaveSettings (void)
| save format and rate More...
void | TFLuna2_System_Reset (void)
| start measurements More...
void | TFLuna2_Output_Enable (void)
| enable More...
void | TFLuna2_Output_Disable (void)
| disable More...
void | TFLuna2_SendMessage (const uint8_t msg[])
| output message to TFLuna2 More...
uint8_t | TFLuna2_InChar (void)
uint32_t | TFLuna2_InStatus (void)
uint32_t | TFLuna2_OutStatus (void)
void | TFLuna2_OutString (uint8_t *pt)
| output string to TFLuna2 More...
void | TFLuna2_OutChar (uint8_t data)
| output character to TFLuna2 More...

## Detailed Description

Initialize TFLuna2, interrupt synchronization.

TFLuna2 initialization. UART2 115200 bps baud, 1 start, 8 data bits, 1 stop, no parity.

Version
  RTOS

Author
  Jonathan Valvano

Copyright
  Valvano 2025

Warning
  AS-IS

Note
  For more information see http://users.ece.utexas.edu/~valvano/

Date
  Oct 23, 2025

  SJ-PM-TF-Luna+A01 interface
  TFLuna | Pin | Description
  --- | --- | ---
  1 | Red 5V
  2 | Serial TxD: PA21/PA23/PB15/PB17 is UART2 Tx (MSPM0 to TFLuna2)
  3 | Serial RxD: PA22/PA24/PB16/PB18 is UART2 Rx (TFLuna2 to MSPM0)
  4 | black ground