forked from ebrezadev/DS3231-Real-Time-Clock-C-Driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathds3231_low_level.c
27 lines (22 loc) · 964 Bytes
/
ds3231_low_level.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*DS3231 low level API - Reza Ebrahimi v1.0*/
#include "ds3231.h"
/*function to transmit one byte of data to register_address on ds3231 (device_address: 0X68)*/
void time_i2c_write_single(uint8_t device_address, uint8_t register_address, uint8_t *data_byte)
{
}
/*function to transmit an array of data to device_address, starting from start_register_address*/
void time_i2c_write_multi(uint8_t device_address, uint8_t start_register_address, uint8_t *data_array, uint8_t data_length)
{
}
/*function to read one byte of data from register_address on ds3231*/
void time_i2c_read_single(uint8_t device_address, uint8_t register_address, uint8_t *data_byte)
{
}
/*function to read an array of data from device_address*/
void time_i2c_read_multi(uint8_t device_address, uint8_t start_register_address, uint8_t *data_array, uint8_t data_length)
{
}
/*function to initialize I2C peripheral in 100khz or 400khz*/
void ds3231_I2C_init()
{
}