net_outbound.c File Reference
#include "net.h"
#include <stdlib.h>
#include "main.h"
Include dependency graph for net_outbound.c:

Go to the source code of this file.

Functions

struct telem_blockcreateTelemetryBlock (p_priority packet)
 
int packetCount ()
 
struct telem_blockgetDebugTelemetryBlock (p_priority packet)
 
void destroyTelemetryBlock (struct telem_block *telem)
 
int pushOutboundTelemetryQueue (struct telem_block *telem)
 
int getOutboundQueueLength (void)
 
int clearOutboundTelemetryQueue (void)
 
void outboundBufferMaintenance (void)
 
void sendNextByte (void)
 
void stageTelemetryBlock (struct telem_block *telem)
 
struct telem_blockpopOutboundTelemetryQueue (void)
 
unsigned int generateApiHeader (unsigned char *apiString, char dataFrame)
 
int sendTelemetryBlock (struct telem_block *telem)
 
void __attribute__ ((__interrupt__, no_auto_psv))
 

Variables

struct telem_blockoutBuffer [OUTBOUND_QUEUE_SIZE]
 net_outbound.c More...
 
int outbuff_start = 0
 
int outbuff_end = 0
 
struct telem_blockdebugTelemetry
 
struct telem_buffer stagingBuffer
 
int packetCounter = 0
 
const unsigned int PACKET_LENGTH = API_HEADER_LENGTH + sizeof(struct telem_block) + 1
 

Function Documentation

void __attribute__ ( (__interrupt__, no_auto_psv)  )

Definition at line 311 of file net_outbound.c.

Here is the call graph for this function:

int clearOutboundTelemetryQueue ( void  )

Definition at line 160 of file net_outbound.c.

Here is the call graph for this function:

struct telem_block* createTelemetryBlock ( p_priority  packet)

Definition at line 23 of file net_outbound.c.

Here is the caller graph for this function:

void destroyTelemetryBlock ( struct telem_block telem)

Definition at line 131 of file net_outbound.c.

Here is the caller graph for this function:

unsigned int generateApiHeader ( unsigned char *  apiString,
char  dataFrame 
)

Definition at line 230 of file net_outbound.c.

Here is the caller graph for this function:

struct telem_block* getDebugTelemetryBlock ( p_priority  packet)

Definition at line 35 of file net_outbound.c.

int getOutboundQueueLength ( void  )

Definition at line 150 of file net_outbound.c.

Here is the caller graph for this function:

void outboundBufferMaintenance ( void  )

Definition at line 172 of file net_outbound.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int packetCount ( )

Definition at line 30 of file net_outbound.c.

struct telem_block* popOutboundTelemetryQueue ( void  )

Definition at line 218 of file net_outbound.c.

Here is the caller graph for this function:

int pushOutboundTelemetryQueue ( struct telem_block telem)

Definition at line 139 of file net_outbound.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void sendNextByte ( void  )

Definition at line 183 of file net_outbound.c.

Here is the caller graph for this function:

int sendTelemetryBlock ( struct telem_block telem)

Definition at line 269 of file net_outbound.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void stageTelemetryBlock ( struct telem_block telem)

Definition at line 208 of file net_outbound.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

struct telem_block* debugTelemetry

Definition at line 14 of file net_outbound.c.

int outbuff_end = 0

Definition at line 12 of file net_outbound.c.

int outbuff_start = 0

Definition at line 11 of file net_outbound.c.

struct telem_block* outBuffer[OUTBOUND_QUEUE_SIZE]

net_outbound.c

Definition at line 10 of file net_outbound.c.

const unsigned int PACKET_LENGTH = API_HEADER_LENGTH + sizeof(struct telem_block) + 1

Definition at line 20 of file net_outbound.c.

int packetCounter = 0

Definition at line 18 of file net_outbound.c.

struct telem_buffer stagingBuffer

Definition at line 16 of file net_outbound.c.