LibDriver TM1640
Loading...
Searching...
No Matches
tm1640 extern driver function

tm1640 extern driver modules More...

Collaboration diagram for tm1640 extern driver function:

Functions

uint8_t tm1640_set_reg (tm1640_handle_t *handle, uint8_t cmd, uint8_t *data, uint8_t len)
 set the chip register

Detailed Description

tm1640 extern driver modules

Function Documentation

◆ tm1640_set_reg()

uint8_t tm1640_set_reg ( tm1640_handle_t * handle,
uint8_t cmd,
uint8_t * data,
uint8_t len )

set the chip register

Parameters
[in]*handlepointer to a tm1640 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 824 of file driver_tm1640.c.