RTOS_MSPM0  1.1
ECE445M starter code
Functions
TFLuna1.h File Reference

Initialize TFLuna1, interrupt synchronization. More...

Go to the source code of this file.

Functions

void TFLuna1_Init (void(*function)(uint32_t))
 Initialize TFLuna1. More...
 
void TFLuna1_Format_Standard_mm (void)
 mm units More...
 
void TFLuna1_Format_Standard_cm (void)
 cm units More...
 
void TFLuna1_Format_Pixhawk (void)
 Pixhawk. More...
 
void TFLuna1_Frame_Rate (void)
 sampling rate More...
 
void TFLuna1_SaveSettings (void)
 save format and rate More...
 
void TFLuna1_System_Reset (void)
 start measurements More...
 
void TFLuna1_Output_Enable (void)
 enable More...
 
void TFLuna1_Output_Disable (void)
 disable More...
 
void TFLuna1_SendMessage (const uint8_t msg[])
 output message to TFLuna More...
 
uint8_t TFLuna1_InChar (void)
 
uint32_t TFLuna1_InStatus (void)
 
uint32_t TFLuna1_OutStatus (void)
 
void TFLuna1_OutString (uint8_t *pt)
 output string to TFLuna More...
 
void TFLuna1_OutChar (uint8_t data)
 output character to TFLuna More...
 

Detailed Description

Initialize TFLuna1, interrupt synchronization.

TFLuna1 initialization. UART1 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: PA8/PA17/PB4/PB6 is UART1 Tx (MSPM0 to TFLuna1)
3 Serial RxD: PA9/PA18/PB5/PB7 is UART1 Rx (TFLuna1 to MSPM0)
4 black ground