Interface: tos.lib.diagmsg.DiagMsg
interface DiagMsg
The DiagMsg interface allows messages to be sent back to the base station
containing several values and their type information, like in
printf(...). The base station must be connected to a PC using
a serial cable. On the PC a Java application (net.tinyos.util.DiagMsg)
decodes the message and displays its content using the correct type
information. See the implementation for the format of the message.
Commands
command void chr(char value)
command void chrs(const char *value, uint8_t len)
command void hex16(uint16_t value)
command void hex16s(uint16_t *value, uint8_t len)
command void hex32(uint32_t value)
command void hex32s(uint32_t *value, uint8_t len)
command void hex8(uint8_t value)
command void hex8s(uint8_t *value, uint8_t len)
command void int16(int16_t value)
command void int16s(int16_t *value, uint8_t len)
command void int32(int32_t value)
command void int32s(int32_t *value, uint8_t len)
command void int64(int64_t value)
command void int64s(int64_t *value, uint8_t len)
command void int8(int8_t value)
command void int8s(int8_t *value, uint8_t len)
command void real(float value)
command void reals(const float *value, uint8_t len)
command bool record()
command void send()
command void str(const char *value)
command void uint16(uint16_t value)
command void uint16s(uint16_t *value, uint8_t len)
command void uint32(uint32_t value)
command void uint32s(uint32_t *value, uint8_t len)
command void uint64(uint64_t value)
command void uint64s(uint64_t *value, uint8_t len)
command void uint8(uint8_t value)
command void uint8s(uint8_t *value, uint8_t len)
Commands - Details
chr
command void chr(char value)
chrs
command void chrs(const char *value, uint8_t len)
hex16
command void hex16(uint16_t value)
hex16s
command void hex16s(uint16_t *value, uint8_t len)
hex32
command void hex32(uint32_t value)
hex32s
command void hex32s(uint32_t *value, uint8_t len)
hex8
command void hex8(uint8_t value)
hex8s
command void hex8s(uint8_t *value, uint8_t len)
int16
command void int16(int16_t value)
int16s
command void int16s(int16_t *value, uint8_t len)
int32
command void int32(int32_t value)
int32s
command void int32s(int32_t *value, uint8_t len)
int64
command void int64(int64_t value)
int64s
command void int64s(int64_t *value, uint8_t len)
int8
command void int8(int8_t value)
int8s
command void int8s(int8_t *value, uint8_t len)
real
command void real(float value)
reals
command void reals(const float *value, uint8_t len)
record
command bool record()
send
command void send()
str
command void str(const char *value)
uint16
command void uint16(uint16_t value)
uint16s
command void uint16s(uint16_t *value, uint8_t len)
uint32
command void uint32(uint32_t value)
uint32s
command void uint32s(uint32_t *value, uint8_t len)
uint64
command void uint64(uint64_t value)
uint64s
command void uint64s(uint64_t *value, uint8_t len)
uint8
command void uint8(uint8_t value)
uint8s
command void uint8s(uint8_t *value, uint8_t len)