Compare commits
3 Commits
efc6e17ed0
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| e6f96ea0e3 | |||
| b125dd33b9 | |||
| d382bdfd1e |
@@ -0,0 +1,25 @@
|
|||||||
|
# C++ specific configuration (akin to Google's C++ style)
|
||||||
|
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html#adding-additional-style-options
|
||||||
|
---
|
||||||
|
Language: Cpp
|
||||||
|
BasedOnStyle: LLVM
|
||||||
|
UseTab: ForContinuationAndIndentation
|
||||||
|
IndentWidth: 4
|
||||||
|
TabWidth: 4
|
||||||
|
AccessModifierOffset: -4
|
||||||
|
ColumnLimit: 0
|
||||||
|
NamespaceIndentation: Inner
|
||||||
|
FixNamespaceComments: false
|
||||||
|
AllowShortIfStatementsOnASingleLine: WithoutElse
|
||||||
|
AllowShortLoopsOnASingleLine: true
|
||||||
|
AllowShortBlocksOnASingleLine: Empty
|
||||||
|
IndentCaseLabels: false
|
||||||
|
SortIncludes: Never
|
||||||
|
AlignConsecutiveMacros: AcrossEmptyLines
|
||||||
|
AlignConsecutiveAssignments: Consecutive
|
||||||
|
BreakStringLiterals: true
|
||||||
|
LineEnding: LF
|
||||||
|
MaxEmptyLinesToKeep: 2
|
||||||
|
BreakBeforeBraces: Attach
|
||||||
|
InsertBraces: true
|
||||||
|
BreakAfterAttributes: Always
|
||||||
+6
-5
@@ -44,10 +44,10 @@ constexpr auto DEFAULT_BUSY_TIMEOUT_MS = 100;
|
|||||||
* @param ldro_on Low data rate optimization setting sent to the radio
|
* @param ldro_on Low data rate optimization setting sent to the radio
|
||||||
*/
|
*/
|
||||||
constexpr airtime_t calc_time_on_air(uint8_t len, uint8_t sf, LoRaBandwidth bw,
|
constexpr airtime_t calc_time_on_air(uint8_t len, uint8_t sf, LoRaBandwidth bw,
|
||||||
LoRaCodingRate cr,
|
LoRaCodingRate cr,
|
||||||
uint16_t preamble_length,
|
uint16_t preamble_length,
|
||||||
LoRaHeaderType header_type,
|
LoRaHeaderType header_type,
|
||||||
LoRaCrcType crc_type, bool ldro_on);
|
LoRaCrcType crc_type, bool ldro_on);
|
||||||
|
|
||||||
struct LLCC68 {
|
struct LLCC68 {
|
||||||
/** trivial getter */
|
/** trivial getter */
|
||||||
@@ -253,7 +253,7 @@ struct LLCC68 {
|
|||||||
expected<unit, error_code> set_rx_duty_cycle(uint32_t rx_period,
|
expected<unit, error_code> set_rx_duty_cycle(uint32_t rx_period,
|
||||||
uint32_t sleep_period);
|
uint32_t sleep_period);
|
||||||
expected<unit, error_code> set_rx_duty_cycle_ms(uint32_t rx_period_ms,
|
expected<unit, error_code> set_rx_duty_cycle_ms(uint32_t rx_period_ms,
|
||||||
uint32_t sleep_period_ms);
|
uint32_t sleep_period_ms);
|
||||||
expected<unit, error_code> set_sleep(sleep_config_t config);
|
expected<unit, error_code> set_sleep(sleep_config_t config);
|
||||||
expected<unit, error_code> set_tx_continuous_wave();
|
expected<unit, error_code> set_tx_continuous_wave();
|
||||||
expected<unit, error_code> set_tx_infinite_preamble();
|
expected<unit, error_code> set_tx_infinite_preamble();
|
||||||
@@ -303,6 +303,7 @@ struct LLCC68 {
|
|||||||
|
|
||||||
/** properties */
|
/** properties */
|
||||||
const struct device *dev;
|
const struct device *dev;
|
||||||
|
std::optional<ChipType> cached_chip_type{};
|
||||||
};
|
};
|
||||||
} // namespace app::driver::llcc68
|
} // namespace app::driver::llcc68
|
||||||
|
|
||||||
|
|||||||
+824
-823
File diff suppressed because it is too large
Load Diff
@@ -15,9 +15,9 @@ extern "C" {
|
|||||||
typedef void (*llcc68_user_dio1_handler_t)(const struct device *dev, void *user_data);
|
typedef void (*llcc68_user_dio1_handler_t)(const struct device *dev, void *user_data);
|
||||||
|
|
||||||
enum llcc68_rf_switch_mode {
|
enum llcc68_rf_switch_mode {
|
||||||
LLCC68_RF_SWITCH_NONE = 0,
|
LLCC68_RF_SWITCH_NONE = 0,
|
||||||
LLCC68_RF_SWITCH_GPIO_COMPLEMENTARY = 1,
|
LLCC68_RF_SWITCH_GPIO_COMPLEMENTARY = 1,
|
||||||
LLCC68_RF_SWITCH_DIO2_SINGLE = 2,
|
LLCC68_RF_SWITCH_DIO2_SINGLE = 2,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct llcc68_config {
|
struct llcc68_config {
|
||||||
|
|||||||
+1315
-1245
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user