Trident IoT SDK
 
Loading...
Searching...
No Matches
tr_hal_spi.h File Reference

This is the common include file for the Trident HAL SPI Driver. More...

#include "tr_hal_platform.h"
+ Include dependency graph for tr_hal_spi.h:

Go to the source code of this file.

Functions

tr_hal_status_t tr_hal_spi_init (tr_hal_spi_id_t spi_id, tr_hal_spi_settings_t *spi_settings)
 
tr_hal_status_t tr_hal_spi_uninit (tr_hal_spi_id_t spi_id)
 
tr_hal_status_t tr_hal_spi_settings_read (tr_hal_spi_id_t spi_id, tr_hal_spi_settings_t *spi_settings)
 
tr_hal_status_t tr_hal_spi_raw_rx_one_byte (tr_hal_spi_id_t spi_id, uint8_t *byte)
 
tr_hal_status_t tr_hal_spi_raw_rx_available_bytes (tr_hal_spi_id_t spi_id, char *bytes, uint16_t buffer_size, uint16_t *num_returned_bytes)
 
tr_hal_status_t tr_hal_spi_raw_tx_one_byte (tr_hal_spi_id_t spi_id, uint8_t chip_select_index_to_use, char byte_to_send, bool receive_bytes)
 
tr_hal_status_t tr_hal_spi_raw_tx_buffer (tr_hal_spi_id_t spi_id, uint8_t chip_select_index_to_use, char *bytes_to_send, uint16_t num_bytes_to_send, bool receive_bytes)
 
tr_hal_status_t tr_hal_spi_dma_tx_bytes_in_buffer (tr_hal_spi_id_t spi_id, uint8_t chip_select_index_to_use, char *bytes_to_send, uint16_t num_bytes_to_send, bool receive_bytes)
 
tr_hal_status_t tr_hal_spi_dma_receive_buffer_num_bytes_left (tr_hal_spi_id_t spi_id, uint32_t *bytes_left)
 
tr_hal_status_t tr_hal_spi_dma_change_rx_buffer (tr_hal_spi_id_t spi_id, uint8_t *new_receive_buffer, uint16_t new_buffer_length)
 

Detailed Description

This is the common include file for the Trident HAL SPI Driver.


SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com