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.
Dependents: SPARKFUN_WEATHER_SHIELD
Fork of htu21d by
htu21d::HTU21snStruct Struct Reference
Structure to access HTU21D's serial number
- HTU21D_sna is the hi 16 bit word of the s/n, always is 0x4854
- HTU21D_snb is the mid 32 bit word of the s/n, 0x00--------
- HTU21D_snc is the low 16 bit word of the s/n, 0x32--
- The complete 64 bit s/n value is: 0x48 54 00 -- -- -- 32 --
- The numbers shown are fixed fields
- The '-' numbers are variable
- For reference, the CRC values for the s/n are included.
#include <htu21d.h>
Data Fields | |
| uint16_t | HTU21D_sna |
Highest order 16 bit word of SN
| |
| uint32_t | HTU21D_snb |
Middle order 32 bit word of SN
| |
| uint16_t | HTU21D_snc |
Lowest order 16 bit word of SN
| |
| uint8_t | HTU21D_crca |
| Single byte checksum from HTU21D_sna. | |
| uint32_t | HTU21D_crcb |
| Four byte checksum from HTU21D_snb. | |
| uint8_t | HTU21D_crcc |
| Single byte checksum from HTU21D_snc. | |
Detailed Description
Structure to access HTU21D's serial number
- HTU21D_sna is the hi 16 bit word of the s/n, always is 0x4854
- HTU21D_snb is the mid 32 bit word of the s/n, 0x00--------
- HTU21D_snc is the low 16 bit word of the s/n, 0x32--
- The complete 64 bit s/n value is: 0x48 54 00 -- -- -- 32 --
- The numbers shown are fixed fields
- The '-' numbers are variable
- For reference, the CRC values for the s/n are included.
Definition at line 208 of file htu21d.h.
Field Documentation
| uint8_t HTU21D_crca |
| uint32_t HTU21D_crcb |
| uint8_t HTU21D_crcc |
| uint16_t HTU21D_sna |
| uint32_t HTU21D_snb |
| uint16_t HTU21D_snc |
Generated on Tue Jul 26 2022 23:31:55 by
1.7.2
