#include "std.h"
#include "peripherals/max1168_arch.h"
Go to the source code of this file.
◆ MAX1168_CONF_CHANNEL
#define MAX1168_CONF_CHANNEL 0x7 |
Configure control register.
Definition at line 41 of file max1168.h.
◆ MAX1168_CONF_CLOCK
#define MAX1168_CONF_CLOCK 0x1 |
◆ MAX1168_CONF_CR
◆ MAX1168_CONF_REF
#define MAX1168_CONF_REF 0x0 |
◆ MAX1168_CONF_SCAN
#define MAX1168_CONF_SCAN 0x1 |
◆ MAX1168_DATA_AVAILABLE
#define MAX1168_DATA_AVAILABLE 4 |
◆ MAX1168_GOT_EOC
#define MAX1168_GOT_EOC 2 |
◆ MAX1168_IDLE
◆ MAX1168_NB_CHAN
#define MAX1168_NB_CHAN 8 |
◆ MAX1168_READING_RES
#define MAX1168_READING_RES 3 |
◆ MAX1168_SENDING_REQ
#define MAX1168_SENDING_REQ 1 |
◆ MAX1168_SLAVE_IDX
◆ MAX1168_SPI_DEV
#define MAX1168_SPI_DEV spi1 |
◆ Max1168Periodic
#define Max1168Periodic |
( |
| ) |
|
Value: { \
max1168_read(); \
} \
}
volatile uint8_t max1168_status
Definition at line 68 of file max1168.h.
◆ max1168_arch_init()
void max1168_arch_init |
( |
void |
| ) |
|
◆ max1168_event()
void max1168_event |
( |
void |
| ) |
|
Definition at line 101 of file max1168.c.
References MAX1168_DATA_AVAILABLE, MAX1168_GOT_EOC, MAX1168_IDLE, max1168_read_trans, MAX1168_READING_RES, max1168_req_trans, MAX1168_SLAVE_IDX, MAX1168_SPI_DEV, max1168_status, spi_resume(), spi_slave_unselect(), SPITransDone, SPITransFailed, SPITransSuccess, and spi_transaction::status.
◆ max1168_init()
void max1168_init |
( |
void |
| ) |
|
Definition at line 40 of file max1168.c.
References spi_transaction::after_cb, spi_transaction::bitorder, spi_transaction::cdiv, spi_transaction::cpha, spi_transaction::cpol, spi_transaction::dss, spi_transaction::input_buf, spi_transaction::input_length, max1168_arch_init(), MAX1168_CONF_CR, max1168_conv_req, MAX1168_IDLE, max1168_lock_cb(), MAX1168_NB_CHAN, max1168_read_trans, max1168_req_trans, MAX1168_SLAVE_IDX, max1168_status, max1168_values, spi_transaction::output_buf, spi_transaction::output_length, spi_transaction::select, spi_transaction::slave_idx, SPICphaEdge1, SPICpolIdleLow, SPIDiv64, SPIDss16bit, SPIMSBFirst, SPISelect, SPITransDone, SPIUnselect, and spi_transaction::status.
◆ max1168_read()
void max1168_read |
( |
void |
| ) |
|
◆ max1168_status
◆ max1168_values