DS1821复位时序
DS1821读写时序
DS1821命令设置
DS1821 工作流程
DS1821 驱动
头文件
#ifndef __DS1821DRIVER_H
#define __DS1821DRIVER_H
/* ------------------------------------------------------------------------- +
| MACROS
+ ------------------------------------------------------------------------- */
extern char DS1821DriverStateMachine(void);
/* ------------------------------------------------------------------------- +
| END
+ ------------------------------------------------------------------------- */
#endif
源文件
/* ------------------------------------------------------------------------- +
| Televic N.V.
+ ------------------------------------------------------------------------- */
/* --------------------------- COPYRIGHT INFORMATION ----------------------- +
| This program contains proprietary information that is a trade secret of
| Televic N.V. and also is protected as an
| unpublished work under applicable Copyright laws. Recipient is to retain
| this program in confidence and is not permitted to use or make copies
| thereof other than as permitted in a prior written agreement with
| Televic N.V.
| (c) Copyright, 2005, Televic N.V.
| All rights reserved. Company confidential.
+ ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- +
| Module : MCC
| File name : ds1821_driver.c
| Description :
| Reference(s) : none
+ ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- +
| HEADER (INCLUDE) SECTION
+ ------------------------------------------------------------------------- */
#include "ds1821_driver.h"
#include "Timer_user.h"
#include "hhd_sys.h"
#include "hhd_gpio.h"
#include <stdio.h>
#include <string.h>
/* ------------------------------------------------------------------------- +