Register Functions
Prev | Chapter 8. Serial Drivers | Next

## Register Functions

### qcaspi_read_register

`uint16_t qcaspi_read_register(` | qca, |
| reg`)`; |

`struct qcaspi * qca`;
`uint16_t reg`;

Reads a QCA7000 register and returns register content.

### qcaspi_write_register

`void qcaspi_write_register(` | qca, |
| reg, |
| value`)`; |

`struct qcaspi * qca`;
`uint16_t reg`;
`uint16_t value`;

Write a value into a QCA7000 register.

### qcaspi_tx_cmd

`int qcaspi_tx_cmd(` | qca, |
| cmd`)`; |

`struct qcaspi * qca`;
`uint16_t cmd`;

Transmit a 16-bit command to the QCA7000. This is currently used when performing a legacy DMA read or write.

Prev | Up | Next
SPI Serial Driver | Home | Interrupt Functions