LCDDriver_NXP_Arduino 0.8.1
Analog Front-End (AFE) device operation sample code for Arduino
|
#include <SPI_for_AFE.h>
Public Member Functions | |
void | txrx (uint8_t *data, int size) |
void | write_r16 (uint16_t reg) |
void | write_r16 (uint16_t reg, uint16_t val) |
uint16_t | read_r16 (uint16_t reg) |
void | write_r24 (uint16_t reg, uint32_t val) |
int32_t | read_r24 (uint16_t reg) |
void | burst (uint32_t *data, int length, int width=3) |
Private Member Functions | |
int32_t | get_data16 (uint8_t *vp) |
int32_t | get_data24 (uint8_t *vp) |
Static Private Attributes | |
static constexpr int | command_length = 2 |
NXP Analog Front End class library for Arduino
Copyright: 2023 Tedd OKANO Released under the MIT license
A SPI interface class for NXP Analog Front End: NAFE13388
Definition at line 22 of file SPI_for_AFE.h.
void SPI_for_AFE::burst | ( | uint32_t * | data, |
int | length, | ||
int | width = 3 ) |
Definition at line 59 of file SPI_for_AFE.cpp.
Referenced by NAFE13388_Base::read().
|
inlineprivate |
Definition at line 71 of file SPI_for_AFE.h.
Referenced by read_r16().
|
inlineprivate |
Definition at line 76 of file SPI_for_AFE.h.
Referenced by burst(), and read_r24().
uint16_t SPI_for_AFE::read_r16 | ( | uint16_t | reg | ) |
Register read, 16 bit
reg | register index |
Definition at line 29 of file SPI_for_AFE.cpp.
Referenced by NAFE13388_Base::reg().
int32_t SPI_for_AFE::read_r24 | ( | uint16_t | reg | ) |
Register read, 24 bit
reg | register index |
Definition at line 48 of file SPI_for_AFE.cpp.
Referenced by NAFE13388_Base::reg().
void SPI_for_AFE::txrx | ( | uint8_t * | data, |
int | size ) |
Send data
data | pointer to data buffer |
size | data size |
Definition at line 3 of file SPI_for_AFE.cpp.
Referenced by burst(), read_r16(), read_r24(), write_r16(), write_r16(), and write_r24().
void SPI_for_AFE::write_r16 | ( | uint16_t | reg | ) |
Register write, 8 bit
reg | register index |
Definition at line 13 of file SPI_for_AFE.cpp.
Referenced by NAFE13388_Base::command(), and NAFE13388_Base::reg().
void SPI_for_AFE::write_r16 | ( | uint16_t | reg, |
uint16_t | val ) |
Register write, 16 bit
reg | register index |
val | data value |
Definition at line 21 of file SPI_for_AFE.cpp.
void SPI_for_AFE::write_r24 | ( | uint16_t | reg, |
uint32_t | val ) |
Register write, 24 bit
reg | register index |
val | data value |
Definition at line 40 of file SPI_for_AFE.cpp.
Referenced by NAFE13388_Base::reg().
|
staticconstexprprivate |
Definition at line 86 of file SPI_for_AFE.h.
Referenced by burst(), read_r16(), and read_r24().