spiisolator6 2.0.0.0
|
SPIIsolator6 Click example. More...
Macros | |
#define | DEVICE_NAME "Accel 22 click" |
#define | DEVICE_SPI_READ_REG 0x0B |
#define | DEVICE_REG_ID 0x00 |
#define | DEVICE_ID 0xAD |
Functions | |
void | spiisolator6_get_accel22_device_id (spiisolator6_t *ctx) |
SPI Isolator 6 get accel 22 device id function. | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
SPIIsolator6 Click example.
This example demonstrates the use of SPI Isolator 6 click board by reading the device ID of the connected Accel 22 click board.
The demo application is composed of two sections :
Initializes the driver and logger.
Reads and checks the device ID of the connected Accel 22 click board, and displays the results on the USB UART approximately once per second.
#define DEVICE_ID 0xAD |
#define DEVICE_NAME "Accel 22 click" |
#define DEVICE_REG_ID 0x00 |
#define DEVICE_SPI_READ_REG 0x0B |
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |
void spiisolator6_get_accel22_device_id | ( | spiisolator6_t * | ctx | ) |
SPI Isolator 6 get accel 22 device id function.
This function reads and checks the device ID of the connected Accel 22 click board.
[in] | ctx | : Click context object. See spiisolator6_t object definition for detailed explanation. |