In RH_RF95.h is this struct
and this function
I have tried with this wrap
but I cannot figure out how to do it.
B4X:
typedef struct {
uint8_t reg_1d; ///< Value for register RH_RF95_REG_1D_MODEM_CONFIG1
uint8_t reg_1e; ///< Value for register RH_RF95_REG_1E_MODEM_CONFIG2
uint8_t reg_26; ///< Value for register RH_RF95_REG_26_MODEM_CONFIG3
} ModemConfig;
B4X:
void setModemRegisters(const ModemConfig* config);
I have tried with this wrap
B4X:
void RF95::SetModemRegisters(byte Reg_1D, byte Reg_1E, Byte Reg26) {
const RH_RF95->ModemConfig mc;
mc.reg_1d = Reg_1D;
mc.reg_1e = Reg_1D;
mc.reg_26 = Reg26;
rf95->setModemRegisters(mc);
}