|
SSD1306 Driver for TivaC
SSD1306 i2c driver for use with Texas Instrument TivaC
|
Source file implementing utils functions for helping the main SSD1306 functions. More...
#include "ssd1306_utils.h"#include <assert.h>#include <stdbool.h>#include <stdint.h>#include <stdio.h>#include <string.h>#include "inc/hw_i2c.h"#include "inc/hw_ints.h"#include "inc/hw_memmap.h"#include "inc/hw_types.h"#include "driverlib/gpio.h"#include "driverlib/i2c.h"#include "driverlib/interrupt.h"#include "driverlib/pin_map.h"#include "driverlib/sysctl.h"#include "driverlib/uart.h"#include "bit_manipulation.h"#include "ssd1306_info.h"
Functions | |
| void | ssd1306Write (const Ssd1306ComType comType, const uint8_t dataByte) |
| Single I2C write to the SSD1306. More... | |
| void | ssd1306BeginCom (const Ssd1306ComType comType) |
| Helper function uses for making i2c transaction to initiate contact with ssd1306. More... | |
| void | ssd1306EndCom (const uint8_t lastByteToSend) |
| Helper function uses for ending i2c transaction. More... | |
| void | ssd1306ContinueCom (const uint8_t dataToSend) |
| Transfer the data and let SSD1306 know transaction will still continue. More... | |
| void | ssd1306WriteList (const Ssd1306ComType comType, const uint8_t dataByte[], const uint32_t totalByte) |
| List I2C write to the SSD1306. More... | |
| void | ssd1306WaitMaster (void) |
| Helper function to wait for master to finnish i2c. | |
| void | ssd1306WaitBus (void) |
| Helper function to wait for all transaction on the i2c bus to finnish. | |
| void | setColumnRange (const uint32_t startColCoordinate, const uint32_t endColCoordinate) |
| Set the Column Range that can be printed on OLED. More... | |
| void | setPageRange (const uint32_t startPageCoordinate, const uint32_t endPageCoordinate) |
| Set the Page Range that can be printed on OLED. More... | |
Source file implementing utils functions for helping the main SSD1306 functions.
| void setColumnRange | ( | const uint32_t | startColCoordinate, |
| const uint32_t | endColCoordinate | ||
| ) |
Set the Column Range that can be printed on OLED.
| startColCoordinate | Column to start printing |
| endColCoordinate | Column to stop printing(inclusive) |
| void setPageRange | ( | const uint32_t | startPageCoordinate, |
| const uint32_t | endPageCoordinate | ||
| ) |
Set the Page Range that can be printed on OLED.
| startPageCoordinate | Page to start printing |
| endPageCoordinate | Page to stop printing(inclusive) |
| void ssd1306BeginCom | ( | const Ssd1306ComType | comType | ) |
Helper function uses for making i2c transaction to initiate contact with ssd1306.
| comType | Communication type of this transaction |
| void ssd1306ContinueCom | ( | const uint8_t | dataToSend | ) |
Transfer the data and let SSD1306 know transaction will still continue.
| dataToSend | The data byte to be sent |
| void ssd1306EndCom | ( | const uint8_t | lastByteToSend | ) |
Helper function uses for ending i2c transaction.
| lastByteToSend | The last byte to be sent |
| void ssd1306Write | ( | const Ssd1306ComType | comType, |
| const uint8_t | dataByte | ||
| ) |
Single I2C write to the SSD1306.
| comType | Communication type of this transaction |
| dataByte | The data byte to be written |
| void ssd1306WriteList | ( | const Ssd1306ComType | comType, |
| const uint8_t | dataByte[], | ||
| const uint32_t | totalByte | ||
| ) |
List I2C write to the SSD1306.
| comType | Communication type of this transaction |
| dataByte | List containing the bytes to be transferred |
| totalByte | Total bytes to be transferred |
1.8.13