Go to the source code of this file.
◆ ADXL345_EnableTapDetectOnAxes()
| void ADXL345_EnableTapDetectOnAxes |
( |
uint8_t |
axes | ) |
|
Definition at line 88 of file adxl345.c.
89{
91}
void ADXL345_WriteByte(uint8_t addr, uint8_t dat)
#define ADXL345_REG_TAP_AXES
◆ ADXL345_Init()
Definition at line 50 of file adxl345.c.
57{
59 {
62 spiWire|intLevel|resolve|alignment|range);
65 }
66 else
67 {
69 }
70}
uint8_t ADXL345_ReadByte(uint8_t addr)
#define ADXL345_REG_DEVID
#define ADXL345_REG_BW_RATE
#define ADXL345_REG_DATA_FORMAT
#define ADXL345_DEVICE_ID
#define ADXL345_REG_POWER_CTL
◆ ADXL345_IsInterrupt()
Definition at line 82 of file adxl345.c.
83{
85 return (int_src & interrupt);
86}
#define ADXL345_REG_INT_SOURCE
◆ ADXL345_ReadByte()
Definition at line 20 of file adxl345.c.
21{
28}
void SPI_TxRxBytes(uint8_t *pBuf, uint8_t len)
◆ ADXL345_ReadInt()
◆ ADXL345_RemapInterrupts()
| void ADXL345_RemapInterrupts |
( |
uint8_t |
interrupts | ) |
|
Remap interrupts to INT2 (default is INT1)
Definition at line 77 of file adxl345.c.
78{
80}
#define ADXL345_REG_INT_MAP
◆ ADXL345_SetInterrupts()
| void ADXL345_SetInterrupts |
( |
uint8_t |
interrupts | ) |
|
Enable interrupts
Definition at line 72 of file adxl345.c.
73{
75}
#define ADXL345_REG_INT_ENABLE
◆ ADXL345_WriteByte()
◆ xbuf