--- libsigrok-internal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libsigrok-internal.h b/libsigrok-internal.h index aa8283f..05d3f2a 100644 --- a/libsigrok-internal.h +++ b/libsigrok-internal.h @@ -51,6 +51,13 @@ #endif /** + * Read a 8 bits integer out of memory. + * @param x a pointer to the input memory + * @return the corresponding integer + */ +#define R8(x) ((unsigned)((const uint8_t*)(x))[0]) + +/** * Read a 16 bits big endian integer out of memory. * @param x a pointer to the input memory * @return the corresponding integer -- 1.9.rc1
------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ sigrok-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sigrok-devel

