Header file containing functions prototypes of XQSPI HAL library. More...
Go to the source code of this file.
Classes | |
struct | _xqspi_init_t |
XQSPI init Structure definition. More... | |
struct | _xqspi_handle_t |
XQSPI handle Structure definition. More... | |
struct | _xqspi_command_t |
XQSPI command Structure definition. More... | |
struct | _hal_xqspi_callback |
HAL_XQSPI Callback function definition. More... | |
Typedefs | |
typedef struct _xqspi_init_t | xqspi_init_t |
XQSPI init Structure definition. More... | |
typedef struct _xqspi_handle_t | xqspi_handle_t |
XQSPI handle Structure definition. More... | |
typedef struct _xqspi_command_t | xqspi_command_t |
XQSPI command Structure definition. More... | |
typedef struct _hal_xqspi_callback | hal_xqspi_callback_t |
HAL_XQSPI Callback function definition. More... | |
Enumerations | |
enum | hal_xqspi_state_t { HAL_XQSPI_STATE_RESET = 0x00, HAL_XQSPI_STATE_READY = 0x01, HAL_XQSPI_STATE_BUSY = 0x02, HAL_XQSPI_STATE_BUSY_INDIRECT_TX = 0x12, HAL_XQSPI_STATE_BUSY_INDIRECT_RX = 0x22, HAL_XQSPI_STATE_ABORT = 0x08, HAL_XQSPI_STATE_ERROR = 0x04 } |
HAL XQSPI State Enumerations definition. More... | |
Functions | |
hal_status_t | hal_xqspi_init (xqspi_handle_t *p_xqspi) |
Initialize the XQSPI according to the specified parameters in the xqspi_init_t and initialize the associated handle. More... | |
hal_status_t | hal_xqspi_deinit (xqspi_handle_t *p_xqspi) |
De-initialize the XQSPI peripheral. More... | |
void | hal_xqspi_msp_init (xqspi_handle_t *p_xqspi) |
Initialize the XQSPI MSP. More... | |
void | hal_xqspi_msp_deinit (xqspi_handle_t *p_xqspi) |
De-initialize the XQSPI MSP. More... | |
hal_status_t | hal_xqspi_command_transmit (xqspi_handle_t *p_xqspi, xqspi_command_t *p_cmd, uint8_t *p_data, uint32_t retry) |
Transmit an amount of data with specified instruction and address in blocking mode. More... | |
hal_status_t | hal_xqspi_command_receive (xqspi_handle_t *p_xqspi, xqspi_command_t *p_cmd, uint8_t *p_data, uint32_t retry) |
Receive an amount of data with specified instruction and address in blocking mode. More... | |
hal_status_t | hal_xqspi_transmit (xqspi_handle_t *p_xqspi, uint8_t *p_data, uint32_t length, uint32_t retry) |
Transmit an amount of data in blocking mode. More... | |
hal_status_t | hal_xqspi_receive (xqspi_handle_t *p_xqspi, uint8_t *p_data, uint32_t length, uint32_t retry) |
Receive an amount of data in blocking mode. More... | |
hal_xqspi_state_t | hal_xqspi_get_state (xqspi_handle_t *p_xqspi) |
Return the XQSPI handle state. More... | |
uint32_t | hal_xqspi_get_error (xqspi_handle_t *p_xqspi) |
Return the XQSPI error code. More... | |
void | hal_xqspi_set_retry (xqspi_handle_t *p_xqspi, uint32_t retry) |
Set the XQSPI internal process repeat times value. More... | |
hal_status_t | hal_xqspi_set_tx_fifo_threshold (xqspi_handle_t *p_xqspi, uint32_t threshold) |
Set the TXFIFO threshold. More... | |
hal_status_t | hal_xqspi_set_rx_fifo_threshold (xqspi_handle_t *p_xqspi, uint32_t threshold) |
Set the RXFIFO threshold. More... | |
uint32_t | hal_xqspi_get_tx_fifo_threshold (xqspi_handle_t *p_xqspi) |
Get the TXFIFO threshold. More... | |
uint32_t | hal_xqspi_get_rx_fifo_threshold (xqspi_handle_t *p_xqspi) |
Get the RXFIFO threshold. More... | |
void | hal_xqspi_set_xip_present_status (xqspi_handle_t *p_xqspi, uint32_t status) |
Turn on/off present module, only in XIP mode. More... | |
Header file containing functions prototypes of XQSPI HAL library.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file gr55xx_hal_xqspi.h.