2013-01-19 05:31:35 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Copyright (C) 2012 Chalk <chalk.secu at gmail.com>
|
2019-03-10 06:35:06 +08:00
|
|
|
// 2015 Dake <thomas.cayrou at gmail.com>
|
2015-10-08 05:00:46 +08:00
|
|
|
|
2013-01-19 05:31:35 +08:00
|
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
|
|
// the license.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Low frequency PCF7931 commands
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef CMDLFPCF7931_H__
|
|
|
|
#define CMDLFPCF7931_H__
|
|
|
|
|
2019-08-08 22:57:33 +08:00
|
|
|
#include "common.h"
|
|
|
|
|
2019-03-10 07:00:59 +08:00
|
|
|
struct pcf7931_config {
|
2019-03-10 06:35:06 +08:00
|
|
|
uint8_t Pwd[7];
|
|
|
|
uint16_t InitDelay;
|
|
|
|
int16_t OffsetWidth;
|
|
|
|
int16_t OffsetPosition;
|
2015-10-08 05:00:46 +08:00
|
|
|
};
|
|
|
|
|
2019-04-10 04:42:23 +08:00
|
|
|
int pcf7931_resetConfig(void);
|
|
|
|
int pcf7931_printConfig(void);
|
2015-10-13 03:49:11 +08:00
|
|
|
|
2013-01-19 05:31:35 +08:00
|
|
|
int CmdLFPCF7931(const char *Cmd);
|
|
|
|
|
|
|
|
#endif
|