ATY_LIB V2_102_230218
ATY_LIB for general devices or ALGO
 
Loading...
Searching...
No Matches
rx8025t.c
Go to the documentation of this file.
1// Copyright 2021 IOsetting <iosetting(at)outlook.com>
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#include "rx8025t.h"
16
17__XDATA uint8_t buff[7];
18
20{
21 return I2C_Write(RX8025T_I2C_ADDR, reg, &dat, 1);
22}
23
25{
26 // Reset all flags
28 // Default , turn off all interrupts
30 return HAL_OK;
31}
32
34{
36 return HAL_OK;
37}
38
40{
44
49 return HAL_OK;
50}
__CODE int8_t dat[20]
uint8_t I2C_Read(uint8_t devAddr, uint8_t memAddr, uint8_t *buf, uint16_t size)
Definition: fw_i2c.c:36
uint8_t I2C_Write(uint8_t devAddr, uint8_t memAddr, uint8_t *dat, uint16_t size)
Definition: fw_i2c.c:18
@ HAL_OK
Definition: fw_types.h:76
unsigned char uint8_t
Definition: fw_types.h:18
uint8_t RX8025T_SetTime(uint8_t *t)
Definition: rx8025t.c:39
uint8_t RX8025T_Init(void)
Definition: rx8025t.c:24
__XDATA uint8_t buff[7]
Definition: rx8025t.c:17
uint8_t RX8025T_Write(uint8_t reg, uint8_t dat)
Definition: rx8025t.c:19
uint8_t RX8025T_GetTime(uint8_t *t)
Definition: rx8025t.c:33
#define RX8025T_REG_SECOND
Definition: rx8025t.h:27
#define RX8025T_REG_DAY
Definition: rx8025t.h:31
#define RX8025T_REG_FLAG
Definition: rx8025t.h:60
#define RX8025T_REG_CONTROL
Definition: rx8025t.h:72
#define RX8025T_REG_MONTH
Definition: rx8025t.h:32
#define RX8025T_REG_HOUR
Definition: rx8025t.h:29
#define RX8025T_REG_WEEKDAY
Definition: rx8025t.h:30
#define RX8025T_REG_YEAR
Definition: rx8025t.h:33
#define RX8025T_I2C_ADDR
Definition: rx8025t.h:20
#define RX8025T_REG_MINUTE
Definition: rx8025t.h:28