LibDriver TM1638  1.0.0
TM1638 full-featured driver
tm1638 extern driver function

tm1638 extern driver modules More...

Functions

uint8_t tm1638_set_reg (tm1638_handle_t *handle, uint8_t cmd, uint8_t *data, uint8_t len)
 set the chip register More...
 
uint8_t tm1638_get_reg (tm1638_handle_t *handle, uint8_t cmd, uint8_t *data, uint8_t len)
 get the chip register More...
 

Detailed Description

tm1638 extern driver modules

Function Documentation

◆ tm1638_get_reg()

uint8_t tm1638_get_reg ( tm1638_handle_t handle,
uint8_t  cmd,
uint8_t *  data,
uint8_t  len 
)

get the chip register

Parameters
[in]*handlepointer to a tm1638 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 769 of file driver_tm1638.c.

◆ tm1638_set_reg()

uint8_t tm1638_set_reg ( tm1638_handle_t handle,
uint8_t  cmd,
uint8_t *  data,
uint8_t  len 
)

set the chip register

Parameters
[in]*handlepointer to a tm1638 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 732 of file driver_tm1638.c.