Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RFM12B_t *RFM12B = RFM12B_new(SPIsendByte, CS_LOW, CS_HIGH);
- if(Status_Ok != RFM12B->reset(RFM12B))
- {
- while(1);
- }
- RFM12B->frequency(RFM12B, 868000000);
- RFM12B->dataRate(RFM12B, RFM12B_DataRate_9600);
- RFM12B->receiverControl(RFM12B, (RFM12B_receiverControl_t){
- .pin16Function = 1,
- .VDI = VDI_Fast,
- .LNA_gain = LNA_Gain_0,
- .RSSI_threshold = RSSI_threshold_103,
- .BW = BW_134});
- RFM12B->powerManagment(RFM12B, (RFM12B_powerManagment_t){
- .enRx = 1,
- .enBaseband = 1,
- .enOsc = 1,
- .enSynth = 1,
- .enPLL_PA_TX = 1,
- .disClockOut = 1});
- RFM12B->configuration(RFM12B, (RFM12B_configurationSet_t){
- .frequencyBand = frequencyBand_868,
- .crystalLoadCap = 0,
- .enFifoMode = 1,
- .enIntDataReg = 1});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement