no-OS
|
Header file for ssd_1306 Driver. More...
Go to the source code of this file.
Classes | |
struct | ssd_1306_extra |
Extra parameters needed for ssd_1306 usage. More... | |
Typedefs | |
typedef struct ssd_1306_extra | ssd_1306_extra |
Functions | |
int32_t | ssd_1306_init (struct display_dev *device) |
Initializes ssd_1306 for display screening. More... | |
int32_t | ssd_1306_display_on_off (struct display_dev *device, uint8_t on_off) |
ssd_1306 turns display on/off. More... | |
int32_t | ssd_1306_move_cursor (struct display_dev *device, uint8_t row, uint8_t column) |
Moves cursor to desired row/column. More... | |
int32_t | ssd_1306_print_ascii (struct display_dev *device, uint8_t ascii, uint8_t row, uint8_t column) |
Prints character at selected position. More... | |
int32_t | ssd_1306_remove (struct display_dev *device) |
Removes resources allocated by device. More... | |
Variables | |
const struct display_controller_ops | ssd1306_ops |
Header file for ssd_1306 Driver.
Copyright 2021(c) Analog Devices, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
typedef struct ssd_1306_extra ssd_1306_extra |
int32_t ssd_1306_display_on_off | ( | struct display_dev * | device, |
uint8_t | on_off | ||
) |
ssd_1306 turns display on/off.
ssd_1306 ssd_1306 turns display on/off.
device | - The device structure |
on_off | - Display state |
int32_t ssd_1306_init | ( | struct display_dev * | device | ) |
Initializes ssd_1306 for display screening.
Initialize the ssd_1306 peripheral for display operation.
device | - The device structure. |
int32_t ssd_1306_move_cursor | ( | struct display_dev * | device, |
uint8_t | row, | ||
uint8_t | column | ||
) |
Moves cursor to desired row/column.
device | - The device structure |
row | - row |
column | - column |
int32_t ssd_1306_print_ascii | ( | struct display_dev * | device, |
uint8_t | ascii, | ||
uint8_t | row, | ||
uint8_t | column | ||
) |
Prints character at selected position.
Prints character at selected position.
device | - The device structure. |
ascii | - corresponding number to ascii table |
row | - row |
column | - column |
int32_t ssd_1306_remove | ( | struct display_dev * | device | ) |
Removes resources allocated by device.
Removes resources allocated by device.
device | - The device structure. |
const struct display_controller_ops ssd1306_ops |