59 UInt8
rep_snd(UInt8 len,
void *pBuf);
123 __bis_SR_register(LPM3_bits + GIE);
126 uart_snd(31,
"******************************\n");
134 __bis_SR_register(LPM3_bits + GIE);
138 uart_snd(27,
" Fernando Biazi Nascimento\n");
141 uart_snd(31,
" Prof. Dr. Paulo Batista Lopes\n");
147 __bis_SR_register(LPM3_bits + GIE);
150 uart_snd(30,
"******************************");
156 __bis_SR_register(LPM3_bits + GIE);
UInt8 nwk_isSink()
Is sink.
UInt16 rep_proccess()
Report process.
Network functions interface.
uint64_t * nwk_getPIeeeAddress()
Get pointer to the IEEE address.
UInt8 nwk_sndInt64(int64_t *p)
Send signed 64 bits integer.
UInt8 uart_sndUInt8(UInt8 v)
Send UInt8.
UInt8 rep_sndUInt48sc(clock_secondsCount *p)
Send seconds count value.
UInt8 nwk_sndUInt64(uint64_t *p)
Send unsigned 64 bits integer.
void adc_getLux(UInt16 *lux, clock_timeStamp *luxTime)
This function get current stored luminescence.
UInt8 rep_snd(UInt8 len, void *pBuf)
Send.
void rep_endFrame(UInt8 forwardToSerial)
End frame.
UInt8 uart_txBufFree()
TX buffer free.
UInt8 nwk_sndUInt48(uint64_t *p)
Send unsigned 48 bits integer.
UInt8 nwk_sndUInt32(UInt32 *p)
Send unsigned 32 bits integer.
ADC10 connected sensors reading interface.
UInt8 nwk_isBound()
Is bound.
UInt8 rep_sndUInt8(UInt8 v)
Send 8 bits unsigned integer.
UInt8 rep_sndUInt64(uint64_t *p)
Send 64 bits unsigned integer.
UInt8 rep_sndUInt32(UInt32 *p)
Send 32 bits unsigned integer.
void rep_init()
Report initialization.
UInt8 nwk_sndUInt16(UInt16 v)
Send unsigned 16 bits integer.
UInt8 uart_startFrame(UInt8 len, UInt8 cmd0, UInt8 cmd1)
Start frame.
UInt8 uart_sndUInt16(UInt16 v)
Send UInt16.
UInt8 nwk_sndUInt8(UInt8 v)
Send unsigned 8 bits integer.
UInt8 uart_sndUInt32(UInt32 *p)
Send UInt32.
#define NWK_CMDIDRPT
Command id for report.
UInt8 rep_sndUInt48(uint64_t *p)
Send 48 bits unsigned integer.
UInt8 uart_sndInt64(int64_t *p)
Send Int64.
UInt8 uart_snd(UInt8 len, void *pBuf)
Send.
#define NWK_DEFRADIUS
Default radius. Default value for maximum hops before a transmitted packet is dropped.
UInt8 rep_sndInt64(int64_t *p)
Send 64 bits integer.
UInt8 rep_sndUInt16(UInt16 v)
Send 16 bits unsigned integer.
void adc_getVolt(UInt16 *volt, clock_timeStamp *voltTime)
This function get current stored voltage.
UInt8 nwk_startFrame(UInt16 destination, UInt16 cmdId, UInt8 radius, UInt8 len)
Start Frame.
void rep_hello()
Hello message.
void adc_getTemp(UInt16 *temp, clock_timeStamp *tempTime)
This function get current stored temperature.
UInt8 nwk_snd(UInt8 len, void *pBuf)
Send data.
void uart_endFrame()
End frame.
void nwk_endFrame(UInt8 forwardToSerial)
End frame.
UInt8 uart_sndUInt48(uint64_t *p)
Send UInt48.
#define REP_SENSORS_REPORT_PERIOD
UInt8 rep_startFrame(UInt8 len, UInt8 reportType)
Start frame.
UInt8 uart_sndUInt64(uint64_t *p)
Send UInt64.