LibDriver TM1622
Loading...
Searching...
No Matches
tm1622 extern driver function

tm1622 extern driver modules More...

Collaboration diagram for tm1622 extern driver function:

Functions

uint8_t tm1622_set_command (tm1622_handle_t *handle, uint16_t cmd)
 set command
uint8_t tm1622_set_data (tm1622_handle_t *handle, uint8_t addr, uint8_t *data, uint8_t len)
 set data
uint8_t tm1622_get_data (tm1622_handle_t *handle, uint8_t addr, uint8_t *data, uint8_t len)
 get data
uint8_t tm1622_read_modify_write (tm1622_handle_t *handle, uint8_t addr, void(*and_or)(uint8_t addr, uint8_t lsb_msb, uint8_t input, uint8_t *output), uint8_t len)
 read modify write

Detailed Description

tm1622 extern driver modules

Function Documentation

◆ tm1622_get_data()

uint8_t tm1622_get_data ( tm1622_handle_t * handle,
uint8_t addr,
uint8_t * data,
uint8_t len )

get data

Parameters
[in]*handlepointer to a tm1622 handle structure
[in]addraddress
[out]*datapointer to an output data buffer
[in]lenoutput data length
Returns
status code
  • 0 success
  • 1 read failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1443 of file driver_tm1622.c.

◆ tm1622_read_modify_write()

uint8_t tm1622_read_modify_write ( tm1622_handle_t * handle,
uint8_t addr,
void(* and_or )(uint8_t addr, uint8_t lsb_msb, uint8_t input, uint8_t *output),
uint8_t len )

read modify write

Parameters
[in]*handlepointer to a tm1622 handle structure
[in]addraddress
[in]*and_orpointer to an and_or function address
[in]lendata length
Returns
status code
  • 0 success
  • 1 read modify write failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1478 of file driver_tm1622.c.

◆ tm1622_set_command()

uint8_t tm1622_set_command ( tm1622_handle_t * handle,
uint16_t cmd )

set command

Parameters
[in]*handlepointer to a tm1622 handle structure
[in]cmdsent command
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1373 of file driver_tm1622.c.

◆ tm1622_set_data()

uint8_t tm1622_set_data ( tm1622_handle_t * handle,
uint8_t addr,
uint8_t * data,
uint8_t len )

set data

Parameters
[in]*handlepointer to a tm1622 handle structure
[in]addraddress
[in]*datapointer to an input data buffer
[in]leninput data length
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1408 of file driver_tm1622.c.