You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 23, 2023. It is now read-only.
/** Read from QSPI peripheral using custom read instruction, alt values
135
135
*
136
136
* @param instruction Instruction value to be used in instruction phase
137
-
* @param alt Alt value to be used in instruction phase
137
+
* @param alt Alt value to be used in Alternate-byte phase. Use -1 for ignoring Alternate-byte phase
138
138
* @param address Address to be accessed in QSPI peripheral
139
139
* @param rx_buffer Buffer for data to be read from the peripheral
140
140
* @param rx_length Pointer to a variable containing the length of rx_buffer, and on return this variable will be updated with the actual number of bytes read
141
141
*
142
142
* @returns
143
143
* Returns QSPI_STATUS_SUCCESS on successful reads and QSPI_STATUS_ERROR on failed reads.
qspi_status_tread(int instruction, int alt, int address, char *rx_buffer, size_t *rx_length);
146
146
147
147
/** Write to QSPI peripheral using custom write instruction, alt values
148
148
*
149
149
* @param instruction Instruction value to be used in instruction phase
150
-
* @param alt Alt value to be used in instruction phase
150
+
* @param alt Alt value to be used in Alternate-byte phase. Use -1 for ignoring Alternate-byte phase
151
151
* @param address Address to be accessed in QSPI peripheral
152
152
* @param tx_buffer Buffer containing data to be sent to peripheral
153
153
* @param tx_length Pointer to a variable containing the length of data to be transmitted, and on return this variable will be updated with the actual number of bytes written
154
154
*
155
155
* @returns
156
156
* Returns QSPI_STATUS_SUCCESS on successful reads and QSPI_STATUS_ERROR on failed reads.
qspi_status_twrite(int instruction, int alt, int address, constchar *tx_buffer, size_t *tx_length);
159
159
160
160
/** Perform a transaction to write to an address(a control register) and get the status results
161
161
*
162
162
* @param instruction Instruction value to be used in instruction phase
163
-
* @param address Some instruction might require address. Use -1 for ignoring the address value
163
+
* @param address Some instruction might require address. Use -1 if no address
164
164
* @param tx_buffer Buffer containing data to be sent to peripheral
165
165
* @param tx_length Pointer to a variable containing the length of data to be transmitted, and on return this variable will be updated with the actual number of bytes written
166
166
* @param rx_buffer Buffer for data to be read from the peripheral
@@ -169,7 +169,7 @@ class QSPI : private NonCopyable<QSPI> {
169
169
* @returns
170
170
* Returns QSPI_STATUS_SUCCESS on successful reads and QSPI_STATUS_ERROR on failed reads.
0 commit comments