LibDriver DS1302
Loading...
Searching...
No Matches
ds1302 advance driver function

ds1302 advance driver modules More...

Collaboration diagram for ds1302 advance driver function:

Functions

uint8_t ds1302_clock_burst_write (ds1302_handle_t *handle, uint8_t *buf, uint8_t len)
 clock burst write
uint8_t ds1302_clock_burst_read (ds1302_handle_t *handle, uint8_t *buf, uint8_t len)
 clock burst read
uint8_t ds1302_ram_burst_write (ds1302_handle_t *handle, uint8_t *buf, uint8_t len)
 ram burst write
uint8_t ds1302_ram_burst_read (ds1302_handle_t *handle, uint8_t *buf, uint8_t len)
 ram burst read

Detailed Description

ds1302 advance driver modules

Function Documentation

◆ ds1302_clock_burst_read()

uint8_t ds1302_clock_burst_read ( ds1302_handle_t * handle,
uint8_t * buf,
uint8_t len )

clock burst read

Parameters
[in]*handlepointer to a ds1302 handle structure
[out]*bufpointer to a data buffer
[in]lendata buffer length
Returns
status code
  • 0 success
  • 1 read failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 len > 8
Note
none

Definition at line 1382 of file driver_ds1302.c.

◆ ds1302_clock_burst_write()

uint8_t ds1302_clock_burst_write ( ds1302_handle_t * handle,
uint8_t * buf,
uint8_t len )

clock burst write

Parameters
[in]*handlepointer to a ds1302 handle structure
[in]*bufpointer to a data buffer
[in]lendata buffer length
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 len > 8
Note
none

Definition at line 1344 of file driver_ds1302.c.

◆ ds1302_ram_burst_read()

uint8_t ds1302_ram_burst_read ( ds1302_handle_t * handle,
uint8_t * buf,
uint8_t len )

ram burst read

Parameters
[in]*handlepointer to a ds1302 handle structure
[out]*bufpointer to a data buffer
[in]lendata buffer length
Returns
status code
  • 0 success
  • 1 read failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 len > 31
Note
none

Definition at line 1458 of file driver_ds1302.c.

◆ ds1302_ram_burst_write()

uint8_t ds1302_ram_burst_write ( ds1302_handle_t * handle,
uint8_t * buf,
uint8_t len )

ram burst write

Parameters
[in]*handlepointer to a ds1302 handle structure
[in]*bufpointer to a data buffer
[in]lendata buffer length
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 len > 31
Note
none

Definition at line 1420 of file driver_ds1302.c.