LibDriver SSD1306
Loading...
Searching...
No Matches
ssd1306 extend driver function

ssd1306 extend driver modules More...

Collaboration diagram for ssd1306 extend driver function:

Functions

uint8_t ssd1306_write_cmd (ssd1306_handle_t *handle, uint8_t *buf, uint8_t len)
 write the register command
uint8_t ssd1306_write_data (ssd1306_handle_t *handle, uint8_t *buf, uint8_t len)
 write the register data

Detailed Description

ssd1306 extend driver modules

Function Documentation

◆ ssd1306_write_cmd()

uint8_t ssd1306_write_cmd ( ssd1306_handle_t * handle,
uint8_t * buf,
uint8_t len )

write the register command

Parameters
[in]*handlepointer to an ssd1306 handle structure
[in]*bufpointer to a data buffer
[in]lendata length
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2289 of file driver_ssd1306.c.

◆ ssd1306_write_data()

uint8_t ssd1306_write_data ( ssd1306_handle_t * handle,
uint8_t * buf,
uint8_t len )

write the register data

Parameters
[in]*handlepointer to an ssd1306 handle structure
[in]*bufpointer to a data buffer
[in]lendata length
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2315 of file driver_ssd1306.c.