ISSDK  1.8
IoT Sensing Software Development Kit
Functions | Variables
control_lpc.c File Reference

Defines control sub-system for LPC54114. More...

#include "fsl_debug_console.h"
#include "board.h"
#include "pin_mux.h"
#include "fsl_usart.h"
#include "sensor_fusion.h"
#include "control.h"
Include dependency graph for control_lpc.c:

Go to the source code of this file.

Functions

void myUART_WriteByte (USART_Type *base, uint8_t data)
 
int8_t writeControlPort (ControlSubsystem *pComm, uint8_t buffer[], uint16_t nbytes)
 
void WIRED_USART_IRQHandler (void)
 
int8_t initializeControlPort (ControlSubsystem *pComm)
 Initialize the control subsystem and all related hardware. More...
 

Variables

uint8_t sUARTOutputBuffer [256]
 main output buffer defined in control.c More...
 
SensorFusionGlobals sfg
 This is the primary sensor fusion data structure. More...
 

Detailed Description

Defines control sub-system for LPC54114.

This file contains a USART implementation of the control subsystem. The command interpreter and streaming functions are contained in two separate files. So you can easily swap those out with only minor changes here.

Definition in file control_lpc.c.

Function Documentation

◆ initializeControlPort()

int8_t initializeControlPort ( ControlSubsystem pComm)

◆ myUART_WriteByte()

void myUART_WriteByte ( USART_Type *  base,
uint8_t  data 
)

Definition at line 33 of file control_lpc.c.

Referenced by writeControlPort().

Here is the caller graph for this function:

◆ WIRED_USART_IRQHandler()

void WIRED_USART_IRQHandler ( void  )

Definition at line 55 of file control_lpc.c.

References data, DecodeCommandBytes(), and WIRED_USART.

Here is the call graph for this function:

◆ writeControlPort()

int8_t writeControlPort ( ControlSubsystem pComm,
uint8_t  buffer[],
uint16_t  nbytes 
)

Definition at line 44 of file control_lpc.c.

References myUART_WriteByte(), and WIRED_USART.

Referenced by initializeControlPort().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ sfg

This is the primary sensor fusion data structure.

Definition at line 75 of file orientaion_application_baremetal_agm01.c.

◆ sUARTOutputBuffer

uint8_t sUARTOutputBuffer[256]

main output buffer defined in control.c

Definition at line 24 of file control_lpc.c.