SingingCat 0
application
Macros | Functions | Variables
onewire.c File Reference

code to interface via onewire. (uses bit-banging and timer) More...

#include "main-header.h"
#include "onewire.h"
#include "ds18b20crc.h"
#include "powersave.h"

Go to the source code of this file.

Macros

#define ONEWIRE_INTERVAL   600
 
#define ONEWIRE_TIMER   5
 

Functions

int onewire_init (byte idx)
 
int onewire_reading_size (byte idx)
 
int onewire_run (byte idx, byte *error)
 
int query_onewire (struct onewire_hwdef *hw, byte *error)
 

Variables

volatile uint32_t * r_adr = (volatile uint32_t *)0x40020810
 
volatile uint32_t * wr_adr = (volatile uint32_t *)0x40020814
 

Detailed Description

code to interface via onewire. (uses bit-banging and timer)

Definition in file onewire.c.

Macro Definition Documentation

◆ ONEWIRE_TIMER

#define ONEWIRE_TIMER   5

Definition at line 11 of file onewire.c.