minipix_uart_interface
A library and examples for the MiniPIX UART interface
gatherer_interface.h File Reference
#include <mui.h>
#include <stdint.h>
#include <stdbool.h>
+ Include dependency graph for gatherer_interface.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Gatherer_FcnPrototypes_t
 
struct  Gatherer_Handler_t
 

Macros

#define GATHERER_SEND_STRING   0
 Platform-independent communication interface between MUI and the gatherer example. The data and commands are sent over UART using the same LLCP that is used for communication between MUI and the MiniPIX. Similarly to MUI, prototype function implementation is required to provide platform-specific code (UART handling). More...
 
#define GATHERER_SEND_CHAR   0
 

Typedefs

typedef void(* gatherer_sendChar_t) (const uint8_t char_out)
 
typedef void(* gatherer_sendString_t) (const uint8_t *str_out, const uint16_t len)
 

Functions

void gatherer_initialize (Gatherer_Handler_t *gatherer_handler)
 
void gatherer_receiveCharCallback (Gatherer_Handler_t *gatherer_handler, const uint8_t byte_in)
 callback called by a user with new bytes coming from the UART connected to PC More...
 
void gatherer_processFrameData (Gatherer_Handler_t *gatherer_handler, const LLCP_FrameData_t *data)
 
void gatherer_processFrameDataTerminator (Gatherer_Handler_t *gatherer_handler, const LLCP_FrameDataTerminator_t *data)
 
void gatherer_processStatus (Gatherer_Handler_t *gatherer_handler, const LLCP_Status_t *data)
 
void gatherer_processTemperature (Gatherer_Handler_t *gatherer_handler, const LLCP_Temperature_t *data)
 
void gatherer_processAck (Gatherer_Handler_t *gatherer_handler, const LLCP_Ack_t *data)
 
void gatherer_processMinipixError (Gatherer_Handler_t *gatherer_handler, const LLCP_MinipixError_t *data)
 
void gatherer_processFrameMeasurementFinished (Gatherer_Handler_t *gatherer_handler)
 
void gatherer_sendMessage (Gatherer_Handler_t *gatherer_handler, const uint8_t *str_out, const uint16_t len)
 

Macro Definition Documentation

◆ GATHERER_SEND_CHAR

#define GATHERER_SEND_CHAR   0

◆ GATHERER_SEND_STRING

#define GATHERER_SEND_STRING   0

Platform-independent communication interface between MUI and the gatherer example. The data and commands are sent over UART using the same LLCP that is used for communication between MUI and the MiniPIX. Similarly to MUI, prototype function implementation is required to provide platform-specific code (UART handling).

Dear NASA, this is not a suggested way ho to handle the data onboard any spacecraft! This is just debugging tool.

Author
Tomas Baca

Typedef Documentation

◆ gatherer_sendChar_t

typedef void(* gatherer_sendChar_t) (const uint8_t char_out)

◆ gatherer_sendString_t

typedef void(* gatherer_sendString_t) (const uint8_t *str_out, const uint16_t len)

Function Documentation

◆ gatherer_initialize()

void gatherer_initialize ( Gatherer_Handler_t gatherer_handler)

◆ gatherer_processAck()

void gatherer_processAck ( Gatherer_Handler_t gatherer_handler,
const LLCP_Ack_t data 
)

◆ gatherer_processFrameData()

void gatherer_processFrameData ( Gatherer_Handler_t gatherer_handler,
const LLCP_FrameData_t data 
)

◆ gatherer_processFrameDataTerminator()

void gatherer_processFrameDataTerminator ( Gatherer_Handler_t gatherer_handler,
const LLCP_FrameDataTerminator_t data 
)

◆ gatherer_processFrameMeasurementFinished()

void gatherer_processFrameMeasurementFinished ( Gatherer_Handler_t gatherer_handler)

◆ gatherer_processMinipixError()

void gatherer_processMinipixError ( Gatherer_Handler_t gatherer_handler,
const LLCP_MinipixError_t data 
)

◆ gatherer_processStatus()

void gatherer_processStatus ( Gatherer_Handler_t gatherer_handler,
const LLCP_Status_t data 
)

◆ gatherer_processTemperature()

void gatherer_processTemperature ( Gatherer_Handler_t gatherer_handler,
const LLCP_Temperature_t data 
)

◆ gatherer_receiveCharCallback()

void gatherer_receiveCharCallback ( Gatherer_Handler_t gatherer_handler,
const uint8_t  byte_in 
)

callback called by a user with new bytes coming from the UART connected to PC

Parameters
gatherer_handler
byte_in

◆ gatherer_sendMessage()

void gatherer_sendMessage ( Gatherer_Handler_t gatherer_handler,
const uint8_t *  str_out,
const uint16_t  len 
)