STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_self_test_devices.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "self_test.h"
#include "self_test_devices.h"
Include dependency graph for test_self_test_devices.c:

Go to the source code of this file.

Classes

struct  fake_t

Macros

#define CHECK(condition)

Functions

static self_test_reply_t exchange (void *context, uint16_t id, uint8_t mode, uint32_t max_hz, self_test_spi_frame_t *frames, uint8_t count, uint32_t budget_ms)
static self_test_reply_t probe (self_test_devices_t *devices, fake_t *fake, uint16_t id)
int main (void)

Macro Definition Documentation

◆ CHECK

#define CHECK ( condition)
Value:
do { \
if (!(condition)) { \
fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, #condition); \
exit(1); \
} \
} while (0)

Definition at line 8 of file test_self_test_devices.c.

Referenced by exchange(), and main().

Function Documentation

◆ exchange()

◆ main()

◆ probe()

self_test_reply_t probe ( self_test_devices_t * devices,
fake_t * fake,
uint16_t id )
static

Definition at line 72 of file test_self_test_devices.c.

References devices, and self_test_devices_probe().

Referenced by main().