STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
board_devbus.c File Reference
#include "board_devbus.h"
#include "board.h"
#include "cmsis_os2.h"
Include dependency graph for board_devbus.c:

Go to the source code of this file.

Functions

static int xfer (void *ctx, const uint8_t *tx, uint8_t *rx, uint16_t len)
static void delay_ms (void *ctx, uint32_t ms)
dev_bus_t board_devbus (board_spi_device_t device)

Variables

static board_spi_device_t devices [BOARD_SPI_COUNT]

Function Documentation

◆ board_devbus()

dev_bus_t board_devbus ( board_spi_device_t device)

Definition at line 27 of file board_devbus.c.

References delay_ms(), devices, and xfer().

Referenced by sensors_task().

◆ delay_ms()

void delay_ms ( void * ctx,
uint32_t ms )
static

Definition at line 20 of file board_devbus.c.

References osDelay().

Referenced by board_devbus(), and fake_regs_bus().

◆ xfer()

int xfer ( void * ctx,
const uint8_t * tx,
uint8_t * rx,
uint16_t len )
static

Variable Documentation

◆ devices