Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_UsbDongle.h
Go to the documentation of this file.
1/*
2 * Author: Crownstone Team
3 * Copyright: Crownstone (https://crownstone.rocks)
4 * Date: Jan 25, 2022
5 * License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
6 */
7
8#pragma once
9
10#include <cfg/cs_Boards.h>
11#include <cfg/cs_DeviceTypes.h>
12
14 config->pinRx = 8;
15 config->pinTx = 6;
16 config->flags.enableUart = true;
18 config->minTxPower = -40;
19 config->scanWindowUs = config->scanIntervalUs;
20}
#define DEVICE_CROWNSTONE_USB
Definition: cs_DeviceTypes.h:27
void asUsbDongle(boards_config_t *config)
Definition: cs_UsbDongle.h:13
Board configuration.
Definition: cs_Boards.h:169
int8_t minTxPower
The minimum radio transmission power to be used.
Definition: cs_Boards.h:326
struct boards_config_t::@7 flags
Flags about pin order, presence of components, etc.
bool enableUart
True if the board should have UART enabled by default.
Definition: cs_Boards.h:243
uint32_t scanIntervalUs
Scan interval in μs.
Definition: cs_Boards.h:345
uint32_t scanWindowUs
Scan window in μs.
Definition: cs_Boards.h:353
uint8_t pinTx
GPIO pin to send UART.
Definition: cs_Boards.h:216
uint8_t deviceType
Device type, e.g.
Definition: cs_Boards.h:276
uint8_t pinRx
GPIO pin to receive UART.
Definition: cs_Boards.h:213