Report implementation. More...
#include <msp430.h>#include "rep.h"#include "adc.h"#include "ptp.h"#include "uart.h"#include "nwk.h"#include "clock.h"
Include dependency graph for rep.c:Go to the source code of this file.
Functions | |
| UInt8 | rep_startFrame (UInt8 len, UInt8 reportType) |
| Start frame. More... | |
| UInt8 | rep_snd (UInt8 len, void *pBuf) |
| Send. More... | |
| void | rep_endFrame (UInt8 forwardToSerial) |
| End frame. More... | |
| UInt8 | rep_sndUInt8 (UInt8 v) |
| Send 8 bits unsigned integer. More... | |
| UInt8 | rep_sndUInt16 (UInt16 v) |
| Send 16 bits unsigned integer. More... | |
| UInt8 | rep_sndUInt32 (UInt32 *p) |
| Send 32 bits unsigned integer. More... | |
| UInt8 | rep_sndUInt48 (uint64_t *p) |
| Send 48 bits unsigned integer. More... | |
| UInt8 | rep_sndUInt48sc (clock_secondsCount *p) |
| Send seconds count value. More... | |
| UInt8 | rep_sndUInt64 (uint64_t *p) |
| Send 64 bits unsigned integer. More... | |
| UInt8 | rep_sndInt64 (int64_t *p) |
| Send 64 bits integer. More... | |
| void | rep_init () |
| Report initialization. More... | |
| UInt16 | rep_proccess () |
| Report process. More... | |
| void | rep_hello () |
| Hello message. More... | |
Report implementation.
Definition in file rep.c.
| void rep_endFrame | ( | UInt8 | forwardToSerial | ) |
End frame.
This function chooses between UART or network output to finish a transmit.
Definition at line 231 of file rep.c.
References nwk_endFrame(), nwk_isBound(), nwk_isSink(), and uart_endFrame().
Referenced by rep_proccess().
Here is the call graph for this function:
Here is the caller graph for this function:| UInt8 rep_snd | ( | UInt8 | len, |
| void * | pBuf | ||
| ) |
Send.
This function chooses between UART or network output to send data.
| [in] | size | Amount of data to put on destination buffer, in bytes. |
| [in] | pBuf | Pointer to the data to be put on the destination buffer. |
Definition at line 213 of file rep.c.
References nwk_isBound(), nwk_isSink(), nwk_snd(), and uart_snd().
Referenced by rep_proccess().
Here is the call graph for this function:
Here is the caller graph for this function:| UInt8 rep_sndInt64 | ( | int64_t * | p | ) |
Send 64 bits integer.
This function chooses between UART or network output to send data.
Definition at line 368 of file rep.c.
References nwk_isBound(), nwk_isSink(), nwk_sndInt64(), and uart_sndInt64().
Referenced by rep_proccess().
Here is the call graph for this function:
Here is the caller graph for this function:| UInt8 rep_sndUInt16 | ( | UInt16 | v | ) |
Send 16 bits unsigned integer.
This function chooses between UART or network output to send data.
Definition at line 267 of file rep.c.
References nwk_isBound(), nwk_isSink(), nwk_sndUInt16(), and uart_sndUInt16().
Referenced by rep_proccess().
Here is the call graph for this function:
Here is the caller graph for this function:| UInt8 rep_sndUInt32 | ( | UInt32 * | p | ) |
Send 32 bits unsigned integer.
This function chooses between UART or network output to send data.
Definition at line 286 of file rep.c.
References nwk_isBound(), nwk_isSink(), nwk_sndUInt32(), and uart_sndUInt32().
Referenced by rep_proccess().
Here is the call graph for this function:
Here is the caller graph for this function:| UInt8 rep_sndUInt48 | ( | uint64_t * | p | ) |
Send 48 bits unsigned integer.
This function chooses between UART or network output to send data.
Definition at line 305 of file rep.c.
References nwk_isBound(), nwk_isSink(), nwk_sndUInt48(), and uart_sndUInt48().
Here is the call graph for this function:| UInt8 rep_sndUInt48sc | ( | clock_secondsCount * | p | ) |
Send seconds count value.
This function chooses between UART or network output to send data.
Definition at line 324 of file rep.c.
References nwk_isBound(), nwk_isSink(), nwk_sndUInt16(), nwk_sndUInt32(), uart_sndUInt16(), and uart_sndUInt32().
Referenced by rep_proccess().
Here is the call graph for this function:
Here is the caller graph for this function:| UInt8 rep_sndUInt64 | ( | uint64_t * | p | ) |
Send 64 bits unsigned integer.
This function chooses between UART or network output to send data.
Definition at line 349 of file rep.c.
References nwk_isBound(), nwk_isSink(), nwk_sndUInt64(), and uart_sndUInt64().
Referenced by rep_proccess().
Here is the call graph for this function:
Here is the caller graph for this function:| UInt8 rep_sndUInt8 | ( | UInt8 | v | ) |
Send 8 bits unsigned integer.
This function chooses between UART or network output to send data.
Definition at line 248 of file rep.c.
References nwk_isBound(), nwk_isSink(), nwk_sndUInt8(), and uart_sndUInt8().
Here is the call graph for this function:| UInt8 rep_startFrame | ( | UInt8 | len, |
| UInt8 | reportType | ||
| ) |
Start frame.
This function chooses between UART or network output to initiate a transmit.
| [in] | size | Size of the data field of the frame |
| [in] | reportType | 0 for boot report, 1 for sensors report, 2 for plain text |
Definition at line 190 of file rep.c.
References NWK_CMDIDRPT, NWK_DEFRADIUS, nwk_isBound(), nwk_isSink(), nwk_startFrame(), and uart_startFrame().
Referenced by rep_proccess().
Here is the call graph for this function:
Here is the caller graph for this function: