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 Nucleo_FrequencyCounter_Timed by
Diff: ds2781.h
- Revision:
- 2:29a5b859318a
- Parent:
- 1:85b1605ed4e0
--- a/ds2781.h Wed Feb 24 12:33:26 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -#include "stdint.h" - -/* ***** net address commands ***** */ -#define READ_NETADDRESS 0x33 -#define SKIP_NETADDRESS 0xCC - - -/* ***** function commands ***** */ -#define READ_DATA 0x69 -#define WRITE_DATA 0x6C -#define COPY_DATA 0x48 -#define RECALL_DATA 0xB8 -#define LOCK_EEPROM 0x6A //DO NOT USE - - -/* ***** function prototypes ***** */ -/* Function details can be found in the .c file */ -int ReadVoltage (void); -uint16_t ReadCurrent (void); -uint32_t ReadAccumulatedCurrent (void); -void ResetAccumulatedCurrent (void); -uint32_t ReadNetAddress (void); -uint16_t ReadTemperature (void); -uint8_t ReadCurrentOffset (void); -void WriteCurrentOffset (uint8_t offset); -void AdjustCurrentOffset (void); -void UpdateControlRegister (uint8_t control); -uint8_t ReadRAM (uint8_t addr); -void WriteRAM (uint8_t byte, uint8_t addr); -void CopyEEPROM (uint8_t addr); -void RecallEEPROM (uint8_t addr); -
