LibDriver TM1637
Loading...
Searching...
No Matches
tm1637 extern driver function

tm1637 extern driver modules More...

Collaboration diagram for tm1637 extern driver function:

Functions

uint8_t tm1637_set_reg (tm1637_handle_t *handle, uint8_t cmd, uint8_t *data, uint8_t len)
 set the chip register
uint8_t tm1637_get_reg (tm1637_handle_t *handle, uint8_t cmd, uint8_t *data, uint8_t len)
 get the chip register

Detailed Description

tm1637 extern driver modules

Function Documentation

◆ tm1637_get_reg()

uint8_t tm1637_get_reg ( tm1637_handle_t * handle,
uint8_t cmd,
uint8_t * data,
uint8_t len )

get the chip register

Parameters
[in]*handlepointer to a tm1637 handle structure
[in]cmdsent command
[out]*datapointer 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
Note
none

Definition at line 709 of file driver_tm1637.c.

◆ tm1637_set_reg()

uint8_t tm1637_set_reg ( tm1637_handle_t * handle,
uint8_t cmd,
uint8_t * data,
uint8_t len )

set the chip register

Parameters
[in]*handlepointer to a tm1637 handle structure
[in]cmdsent command
[in]*datapointer 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
Note
none

Definition at line 675 of file driver_tm1637.c.