Pervasive Displays Library Suite - Basic edition 8.0.8
Library for Pervasive Displays e-paper screens and EXT3 extension board
|
Light hardware abstraction layer for peripherals. More...
#include <Arduino.h>
#include <SPI.h>
#include <Wire.h>
#include <stdint.h>
#include <stdio.h>
#include <stdarg.h>
Macros | |
#define | hV_HAL_PERIPHERALS_RELEASE 806 |
Release. | |
#define | mySerial Serial |
SDK library. | |
Functions | |
void | hV_HAL_begin () |
General initialisation. | |
void | waitFor (uint8_t pin, uint8_t state=HIGH) |
Wait for. | |
void | hV_HAL_SPI_begin (uint32_t speed=8000000) |
Configure and start SPI. | |
void | hV_HAL_SPI_end () |
End SPI. | |
uint8_t | hV_HAL_SPI_transfer (uint8_t data) |
Combined write and read of a single byte. | |
3-wire SPI bus | |
| |
void | hV_HAL_SPI3_begin () |
Configure 3-wire SPI. | |
void | hV_HAL_SPI3_define (uint8_t pinClock=SCK, uint8_t pinData=MOSI) |
Set the 3-wire SPI pins. | |
uint8_t | hV_HAL_SPI3_read () |
Read a single byte. | |
void | hV_HAL_SPI3_write (uint8_t value) |
Write a single byte. | |
Wire bus | |
void | hV_HAL_Wire_begin () |
Configure and start Wire bus. | |
void | hV_HAL_Wire_end () |
End Wire bus. | |
void | hV_HAL_Wire_transfer (uint8_t address, uint8_t *dataWrite, size_t sizeWrite, uint8_t *dataRead=0, size_t sizeRead=0) |
Combined write and read. | |
Light hardware abstraction layer for peripherals.
Project Pervasive Displays Library Suite
Based on highView technology
#define mySerial Serial |
SDK library.
SDK other libraries
Other libraries
void hV_HAL_SPI3_begin | ( | ) |
Configure 3-wire SPI.
void hV_HAL_SPI3_define | ( | uint8_t | pinClock = SCK, |
uint8_t | pinData = MOSI ) |
Set the 3-wire SPI pins.
pinClock | clock, default = SCK |
pinData | combined data, default = MOSI |
uint8_t hV_HAL_SPI3_read | ( | ) |
Read a single byte.
void hV_HAL_SPI3_write | ( | uint8_t | value | ) |
Write a single byte.
data | byte |
void hV_HAL_SPI_begin | ( | uint32_t | speed = 8000000 | ) |
Configure and start SPI.
speed | SPI speed in Hz, 8000000 = default |
void hV_HAL_SPI_end | ( | ) |
End SPI.
uint8_t hV_HAL_SPI_transfer | ( | uint8_t | data | ) |
Combined write and read of a single byte.
data | byte |
void hV_HAL_Wire_begin | ( | ) |
Configure and start Wire bus.
void hV_HAL_Wire_end | ( | ) |
End Wire bus.
void hV_HAL_Wire_transfer | ( | uint8_t | address, |
uint8_t * | dataWrite, | ||
size_t | sizeWrite, | ||
uint8_t * | dataRead = 0, | ||
size_t | sizeRead = 0 ) |
Combined write and read.
[in] | address | I2C device address |
[in] | dataWrite | buffer to write |
[in] | sizeWrite | number of bytes |
[out] | dataRead | buffer to read |
[in] | sizeRead | number of bytes |
void waitFor | ( | uint8_t | pin, |
uint8_t | state = HIGH ) |
Wait for.
pin | pin number |
state | state to reach, default = HIGH |