Open Garden  0.10.1-21
Functions
tcn75.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <avr/io.h>
#include <util/delay.h>
#include "tcn75.h"
Include dependency graph for tcn75.c:

Functions

uint8_t tcn75_write_config_reg (const uint8_t cfg)
 
uint8_t tcn75_read_config_reg (uint8_t *reg)
 
void tcn75_one_shot (void)
 take a temperature sample. More...
 
void tcn75_init (void)
 
float tcn75_read_temperature (void)
 

Detailed Description

PC0 SCL PC1 SDA PC2 IN ALLERT PC3 - 5 ADDRESS

Function Documentation

◆ tcn75_init()

void tcn75_init ( void  )

Initialize tcn75

◆ tcn75_one_shot()

void tcn75_one_shot ( void  )

take a temperature sample.

Bug:
should check the config register after the delay to see if the sample has been taken.

◆ tcn75_read_config_reg()

uint8_t tcn75_read_config_reg ( uint8_t *  reg)

read config register.

◆ tcn75_read_temperature()

float tcn75_read_temperature ( void  )

read the temperature and return it in a float

◆ tcn75_write_config_reg()

uint8_t tcn75_write_config_reg ( const uint8_t  cfg)

write config register.