LibDriver TM1638
Loading...
Searching...
No Matches
tm1638 extern driver function

tm1638 extern driver modules More...

Collaboration diagram for tm1638 extern driver function:

Functions

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

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.