Generic communication interface between the wireless board (mote) and the sensor board. Any kind of sensor board can be connected to the mote using this specification given it provides a SPI peripheral, one input pin with interrupt capability and one digital output. The sensor board must implement a special register set from which all required information can be retrieved. Protocol: http://is.gd/wuQorh Github: http://is.gd/ySj1L9
buf_io.c File Reference
Several functions for handling data in buffers. More...
Go to the source code of this file.
Functions | |
uint16_t | buf_io_swap16 (uint16_t orig_value) |
Swaps a 16 bits unsigned integer. | |
uint32_t | buf_io_swap32 (uint32_t orig_value) |
Swaps a 32 bits unsigned integer. | |
void | buf_io_swap16p (uint8_t *buf) |
Swaps a 16 bits unsigned integer inside a buffer. | |
void | buf_io_swap32p (uint8_t *buf) |
Swaps a 32 bits unsigned integer inside a buffer. | |
uint8_t | buf_io_swap8b (uint8_t orig_value) |
Swaps 8 bits unsigned integer in a byte. |
Detailed Description
Several functions for handling data in buffers.
Basic functions:
buf_io_[get|put][8|16|32|64|f|d]_[f|t][b|l]_ap[r]
Notation:
8|16|32|64|f|d = data size (f for float, d for double) [f|t][b|l] = from/to big/little ap[r] = add pointer [reference] at the end
Check buf_io.c for a proper implementation of these functions for your platform.
Definition in file buf_io.c.
Function Documentation
uint16_t buf_io_swap16 | ( | uint16_t | usShort ) |
void buf_io_swap16p | ( | uint8_t * | pucPtr ) |
uint32_t buf_io_swap32 | ( | uint32_t | ulLong ) |
void buf_io_swap32p | ( | uint8_t * | pucPtr ) |
Generated on Tue Jul 12 2022 21:04:14 by 1.7.2