代码拉取完成,页面将自动刷新
/*
* @Author: ischen.x ischen.x@foxmail.com
* @Date: 2024-07-11 13:31:52
* @LastEditors: ischen.x ischen.x@foxmail.com
* @LastEditTime: 2024-07-19 15:27:39
*
* Copyright (c) 2024 by ischen.x, All Rights Reserved.
*/
#ifndef __AT1337_H
#define __AT1337_H
#include <stdint.h>
#include <time.h>
#define AT1337_IIC_ADDR 0x64
typedef struct at1337{
uint8_t Seconds;
uint8_t Minutes;
uint8_t Hours;
uint8_t Day;
uint8_t Date;
uint8_t Mounth_Century;
uint8_t year;
uint8_t Alarm_1_Seconds;
uint8_t Alarm_1_Minutes;
uint8_t Alarm_1_Hours;
uint8_t Alarm_1_Day;
uint8_t Alarm_1_Date;
uint8_t Alarm_2_Seconds;
uint8_t Alarm_2_Minutes;
uint8_t Alarm_2_Hours;
uint8_t Alarm_2_Day;
uint8_t Alarm_2_Date;
uint8_t Control;
uint8_t Status;
}at1337_reg_type;
int at1337_get_time(struct tm *time_struct);
int at1337_set_time(struct tm *time_struct);
#endif /* __AT1337_H */
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。