SSD1306 Driver for TivaC
SSD1306 i2c driver for use with Texas Instrument TivaC
|
Header file containg declaration of utils functions for ssd1306. More...
#include <stdint.h>
Go to the source code of this file.
Enumerations | |
enum | Ssd1306ComType { COMMAND = 0b0000000, GDDRAM_DATA = 0b01000000 } |
Enum describing the type of communication that can be done with the SSD1306. | |
Functions | |
void | ssd1306Write (const Ssd1306ComType comType, const uint8_t dataByte) |
Single I2C write to the SSD1306. 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 | 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 | 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... | |
Header file containg declaration of utils functions for ssd1306.
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 |