RasPi Direct Hardware Access
Integrated peripheral access without operating system drivers.
|
This file contains the whole API as static inline functions, since all functions are very short. More...
Go to the source code of this file.
Functions | |
static void | spisl_init () |
Configure PCM hardware to act as SPI slave. | |
static int | spisl_poll (int num) |
Return true if at least num bytes are available in the receive FIFO. Only guaranteed to work correctly with num == 1. Larger values may return true even if less bytes (but at least one) are available. | |
static uint8_t | spisl_read (void) |
Read a single byte received via SPI. Block if FIFO is currently empty. | |
static void | spisl_write (uint8_t data) |
Send data via SPI. Block if FIFO is currently full. Note that an SPI slave only sends while receiving, so data is only sent while the master transmits a new byte, which may be much later (or never). | |
static void | spisl_flush () |
Block until transmit FIFO is empty. | |
static void | spisl_synchronize (void) |
Synchronize to SPI master. More... | |
This file contains the whole API as static inline functions, since all functions are very short.
There is no accompanying C file.
Copyright (c) 2013 OFFIS e.V.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.