|
stm32-async-1wire 3.2.0
Non-blocking 1-Wire master for STM32 with DS18B20 temperature and DS2431 EEPROM drivers
|
Macros | |
| #define | DS2431_FAMILY_CODE 0x2D |
| DS2431 1-Wire family code (LSB of the 64-bit ROM address). | |
| #define | DS2431_BITS_PER_BYTE 8 |
| Standard 8 bits per byte. | |
| #define | DS2431_ROM_BYTES 8 |
| Number of bytes in a device ROM address. | |
| #define | DS2431_EEPROM_SIZE 128 |
| DS2431 EEPROM size in bytes (1 kbit). | |
| #define | DS2431_PAGE_SIZE 32 |
| DS2431 EEPROM page size in bytes (4 pages of 32 bytes). | |
| #define | DS2431_PAGE_COUNT (DS2431_EEPROM_SIZE / DS2431_PAGE_SIZE) |
| Number of EEPROM pages. | |
| #define | DS2431_SCRATCH_SIZE 8 |
| DS2431 scratchpad size in bytes (one EEPROM block). | |
| #define | DS2431_SCRATCH_FRAME (DS2431_SCRATCH_SIZE + 3) |
| Maximum length of the Read Scratchpad reply frame in bytes. | |
| #define | DS2431_SCRATCH_FRAME_CRC (DS2431_SCRATCH_FRAME + 2) |
| Maximum wire length of the Read Scratchpad reply in bytes, CRC included. | |
| #define | DS2431_READ_MEMORY 0xF0 |
| DS2431 Read Memory command. | |
| #define | DS2431_WRITE_SCRATCHPAD 0x0F |
| DS2431 Write Scratchpad command. | |
| #define | DS2431_READ_SCRATCHPAD 0xAA |
| DS2431 Read Scratchpad command. | |
| #define | DS2431_COPY_SCRATCHPAD 0x55 |
| DS2431 Copy Scratchpad command. | |
| #define | DS2431_MATCH_ROM 0x55 |
| DS2431 Match ROM command (ROM-level addressing prefix). | |
| #define | DS2431_SKIP_ROM 0xCC |
| DS2431 Skip ROM command (ROM-level broadcast prefix). | |
| #define | DS2431_TPROG_US 11000 |
| Copy Scratchpad EEPROM programming hold-off in microseconds. | |
| #define | DS2431_READ_PASS 8 |
| Maximum EEPROM bytes read by one Read Memory bus transaction. | |
| #define DS2431_BITS_PER_BYTE 8 |
Standard 8 bits per byte.
| #define DS2431_COPY_SCRATCHPAD 0x55 |
DS2431 Copy Scratchpad command.
| #define DS2431_EEPROM_SIZE 128 |
DS2431 EEPROM size in bytes (1 kbit).
| #define DS2431_FAMILY_CODE 0x2D |
DS2431 1-Wire family code (LSB of the 64-bit ROM address).
| #define DS2431_MATCH_ROM 0x55 |
DS2431 Match ROM command (ROM-level addressing prefix).
| #define DS2431_PAGE_COUNT (DS2431_EEPROM_SIZE / DS2431_PAGE_SIZE) |
Number of EEPROM pages.
| #define DS2431_PAGE_SIZE 32 |
DS2431 EEPROM page size in bytes (4 pages of 32 bytes).
| #define DS2431_READ_MEMORY 0xF0 |
DS2431 Read Memory command.
| #define DS2431_READ_PASS 8 |
Maximum EEPROM bytes read by one Read Memory bus transaction.
| #define DS2431_READ_SCRATCHPAD 0xAA |
DS2431 Read Scratchpad command.
| #define DS2431_ROM_BYTES 8 |
Number of bytes in a device ROM address.
| #define DS2431_SCRATCH_FRAME (DS2431_SCRATCH_SIZE + 3) |
Maximum length of the Read Scratchpad reply frame in bytes.
| #define DS2431_SCRATCH_FRAME_CRC (DS2431_SCRATCH_FRAME + 2) |
Maximum wire length of the Read Scratchpad reply in bytes, CRC included.
| #define DS2431_SCRATCH_SIZE 8 |
DS2431 scratchpad size in bytes (one EEPROM block).
| #define DS2431_SKIP_ROM 0xCC |
DS2431 Skip ROM command (ROM-level broadcast prefix).
| #define DS2431_TPROG_US 11000 |
Copy Scratchpad EEPROM programming hold-off in microseconds.
| #define DS2431_WRITE_SCRATCHPAD 0x0F |
DS2431 Write Scratchpad command.