Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of rosserial_mbed_lib by
Diff: std_msgs/UInt32.h
- Revision:
- 1:ff0ec969dad1
- Parent:
- 0:77afd7560544
- Child:
- 3:1cf99502f396
--- a/std_msgs/UInt32.h Fri Aug 19 09:06:30 2011 +0000 +++ b/std_msgs/UInt32.h Sun Oct 16 07:19:36 2011 +0000 @@ -12,14 +12,14 @@ class UInt32 : public ros::Msg { public: - unsigned long data; + uint32_t data; virtual int serialize(unsigned char *outbuffer) { int offset = 0; union { - unsigned long real; - unsigned long base; + uint32_t real; + uint32_t base; } u_data; u_data.real = this->data; *(outbuffer + offset + 0) = (u_data.base >> (8 * 0)) & 0xFF; @@ -34,8 +34,8 @@ { int offset = 0; union { - unsigned long real; - unsigned long base; + uint32_t real; + uint32_t base; } u_data; u_data.base = 0; u_data.base |= ((typeof(u_data.base)) (*(inbuffer + offset + 0))) << (8 * 0);