ESP Line Following Buggy
2nd Year Embedded System Project (Group 48 - 2023/24)
Loading...
Searching...
No Matches
ds2781.cpp File Reference
#include "ds2781.h"
#include "OneWire_Methods.h"
Include dependency graph for ds2781.cpp:

Go to the source code of this file.

Functions

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)
 

Function Documentation

◆ AdjustCurrentOffset()

void AdjustCurrentOffset ( void )

Definition at line 210 of file ds2781.cpp.

Here is the call graph for this function:

◆ CopyEEPROM()

void CopyEEPROM ( uint8_t addr)

Definition at line 318 of file ds2781.cpp.

Here is the call graph for this function:

◆ ReadAccumulatedCurrent()

uint32_t ReadAccumulatedCurrent ( void )

Definition at line 73 of file ds2781.cpp.

Here is the call graph for this function:

◆ ReadCurrent()

uint16_t ReadCurrent ( void )

Definition at line 50 of file ds2781.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadCurrentOffset()

uint8_t ReadCurrentOffset ( void )

Definition at line 167 of file ds2781.cpp.

Here is the call graph for this function:

◆ ReadNetAddress()

uint32_t ReadNetAddress ( void )

Definition at line 117 of file ds2781.cpp.

Here is the call graph for this function:

◆ ReadRAM()

uint8_t ReadRAM ( uint8_t addr)

Definition at line 274 of file ds2781.cpp.

Here is the call graph for this function:

◆ ReadTemperature()

uint16_t ReadTemperature ( void )

Definition at line 144 of file ds2781.cpp.

Here is the call graph for this function:

◆ ReadVoltage()

int ReadVoltage ( void )

Definition at line 27 of file ds2781.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RecallEEPROM()

void RecallEEPROM ( uint8_t addr)

Definition at line 337 of file ds2781.cpp.

Here is the call graph for this function:

◆ ResetAccumulatedCurrent()

void ResetAccumulatedCurrent ( void )

Definition at line 97 of file ds2781.cpp.

Here is the call graph for this function:

◆ UpdateControlRegister()

void UpdateControlRegister ( uint8_t control)

Definition at line 247 of file ds2781.cpp.

Here is the call graph for this function:

◆ WriteCurrentOffset()

void WriteCurrentOffset ( uint8_t offset)

Definition at line 189 of file ds2781.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteRAM()

void WriteRAM ( uint8_t byte,
uint8_t addr )

Definition at line 296 of file ds2781.cpp.

Here is the call graph for this function: