RTOS_MSPM0  1.1
ECE445M starter code
Functions
TFLuna3.h File Reference

Initialize TFLuna3, interrupt synchronization. More...

Go to the source code of this file.

Functions

void TFLuna3_Init (void(*function)(uint32_t))
 Initialize TFLuna3. More...
 
void TFLuna3_Format_Standard_mm (void)
 mm units More...
 
void TFLuna3_Format_Standard_cm (void)
 cm units More...
 
void TFLuna3_Format_Pixhawk (void)
 Pixhawk. More...
 
void TFLuna3_Frame_Rate (void)
 sampling rate More...
 
void TFLuna3_SaveSettings (void)
 save format and rate More...
 
void TFLuna3_System_Reset (void)
 start measurements More...
 
void TFLuna3_Output_Enable (void)
 enable More...
 
void TFLuna3_Output_Disable (void)
 disable More...
 
void TFLuna3_SendMessage (const uint8_t msg[])
 output message to TFLuna3 More...
 
uint8_t TFLuna3_InChar (void)
 
uint32_t TFLuna3_InStatus (void)
 
uint32_t TFLuna3_OutStatus (void)
 
void TFLuna3_OutString (uint8_t *pt)
 output string to TFLuna3 More...
 
void TFLuna3_OutChar (uint8_t data)
 output character to TFLuna3 More...
 

Detailed Description

Initialize TFLuna3, interrupt synchronization.

TFLuna3 initialization. UART3 115200 bps baud, 1 start, 8 data bits, 1 stop, no parity.

Version
RTOS
Author
Jonathan Valvano
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 UART3 Tx (MSPM0 to TFLuna3)
3 Serial RxD: PA22/PA24/PB16/PB18 is UART3 Rx (TFLuna3 to MSPM0)
4 black ground