mirror of https://github.com/ARMmbed/mbed-os.git
QSPI: fix arguments for write/read when alt is defined
Should be: instr, alt, address or inst, addr or just addrpull/7783/head
parent
1d234aade4
commit
3db3364821
|
@ -144,7 +144,7 @@ qspi_status_t QSPI::write(unsigned int address, const char *tx_buffer, size_t *t
|
||||||
return ret_status;
|
return ret_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
qspi_status_t QSPI::read(unsigned int instruction, unsigned int address, unsigned int alt, char *rx_buffer, size_t *rx_length)
|
qspi_status_t QSPI::read(unsigned int instruction, unsigned int alt, unsigned int address, char *rx_buffer, size_t *rx_length)
|
||||||
{
|
{
|
||||||
qspi_status_t ret_status = QSPI_STATUS_ERROR;
|
qspi_status_t ret_status = QSPI_STATUS_ERROR;
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ qspi_status_t QSPI::read(unsigned int instruction, unsigned int address, unsigne
|
||||||
return ret_status;
|
return ret_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
qspi_status_t QSPI::write(unsigned int instruction, unsigned int address, unsigned int alt, const char *tx_buffer, size_t *tx_length)
|
qspi_status_t QSPI::write(unsigned int instruction, unsigned int alt, unsigned int address, const char *tx_buffer, size_t *tx_length)
|
||||||
{
|
{
|
||||||
qspi_status_t ret_status = QSPI_STATUS_ERROR;
|
qspi_status_t ret_status = QSPI_STATUS_ERROR;
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,7 @@ public:
|
||||||
*/
|
*/
|
||||||
qspi_status_t read(unsigned int address, char *rx_buffer, size_t *rx_length);
|
qspi_status_t read(unsigned int address, char *rx_buffer, size_t *rx_length);
|
||||||
|
|
||||||
/** Write to QSPI peripheral with the preset write_instruction and alt_value
|
/** Write to QSPI peripheral using custom write instruction
|
||||||
*
|
*
|
||||||
* @param address Address to be accessed in QSPI peripheral
|
* @param address Address to be accessed in QSPI peripheral
|
||||||
* @param tx_buffer Buffer containing data to be sent to peripheral
|
* @param tx_buffer Buffer containing data to be sent to peripheral
|
||||||
|
@ -133,28 +133,28 @@ public:
|
||||||
/** Read from QSPI peripheral using custom read instruction, alt values
|
/** Read from QSPI peripheral using custom read instruction, alt values
|
||||||
*
|
*
|
||||||
* @param instruction Instruction value to be used in instruction phase
|
* @param instruction Instruction value to be used in instruction phase
|
||||||
* @param address Address to be accessed in QSPI peripheral
|
|
||||||
* @param alt Alt value to be used in instruction phase
|
* @param alt Alt value to be used in instruction phase
|
||||||
|
* @param address Address to be accessed in QSPI peripheral
|
||||||
* @param rx_buffer Buffer for data to be read from the peripheral
|
* @param rx_buffer Buffer for data to be read from the peripheral
|
||||||
* @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
|
* @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
|
||||||
*
|
*
|
||||||
* @returns
|
* @returns
|
||||||
* Returns QSPI_STATUS_SUCCESS on successful reads and QSPI_STATUS_ERROR on failed reads.
|
* Returns QSPI_STATUS_SUCCESS on successful reads and QSPI_STATUS_ERROR on failed reads.
|
||||||
*/
|
*/
|
||||||
qspi_status_t read(unsigned int instruction, unsigned int address, unsigned int alt, char *rx_buffer, size_t *rx_length);
|
qspi_status_t read(unsigned int instruction, unsigned int alt, unsigned int address, char *rx_buffer, size_t *rx_length);
|
||||||
|
|
||||||
/** Write to QSPI peripheral using custom write instruction, alt values
|
/** Write to QSPI peripheral using custom write instruction, alt values
|
||||||
*
|
*
|
||||||
* @param instruction Instruction value to be used in instruction phase
|
* @param instruction Instruction value to be used in instruction phase
|
||||||
* @param address Address to be accessed in QSPI peripheral
|
|
||||||
* @param alt Alt value to be used in instruction phase
|
* @param alt Alt value to be used in instruction phase
|
||||||
|
* @param address Address to be accessed in QSPI peripheral
|
||||||
* @param tx_buffer Buffer containing data to be sent to peripheral
|
* @param tx_buffer Buffer containing data to be sent to peripheral
|
||||||
* @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
|
* @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
|
||||||
*
|
*
|
||||||
* @returns
|
* @returns
|
||||||
* Returns QSPI_STATUS_SUCCESS on successful reads and QSPI_STATUS_ERROR on failed reads.
|
* Returns QSPI_STATUS_SUCCESS on successful reads and QSPI_STATUS_ERROR on failed reads.
|
||||||
*/
|
*/
|
||||||
qspi_status_t write(unsigned int instruction, unsigned int address, unsigned int alt, const char *tx_buffer, size_t *tx_length);
|
qspi_status_t write(unsigned int instruction, unsigned int alt, unsigned int address, const char *tx_buffer, size_t *tx_length);
|
||||||
|
|
||||||
/** Perform a transaction to write to an address(a control register) and get the status results
|
/** Perform a transaction to write to an address(a control register) and get the status results
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue