[Si443x] Added direct mode GPIO config

pull/321/head
jgromes 2021-06-22 18:30:05 +02:00
rodzic 6b0c5c2c92
commit 6f44452b62
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -747,6 +747,12 @@ int16_t Si443x::directMode() {
int16_t state = _mod->SPIsetRegValue(SI443X_REG_MODULATION_MODE_CONTROL_2, SI443X_TX_DATA_SOURCE_GPIO, 5, 4);
RADIOLIB_ASSERT(state);
state = _mod->SPIsetRegValue(SI443X_REG_GPIO1_CONFIG, SI443X_GPIOX_TX_RX_DATA_CLK_OUT, 4, 0);
RADIOLIB_ASSERT(state);
state = _mod->SPIsetRegValue(SI443X_REG_GPIO2_CONFIG, SI443X_GPIOX_TX_DATA_IN, 4, 0);
RADIOLIB_ASSERT(state);
state = _mod->SPIsetRegValue(SI443X_REG_MODULATION_MODE_CONTROL_2, SI443X_MODULATION_NONE, 1, 0);
return(state);
}