Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void initWireless() {
- //Initialize NRF24L01+ on channel 15 and 32bytes of payload
- //By default 2Mbps data rate and 0dBm output power
- //NRF24L01 goes to RX mode by default
- TM_NRF24L01_Init(15, 32);
- //Set RF settings, Data rate to 2Mbps, Output power to -18dBm
- TM_NRF24L01_SetRF(TM_NRF24L01_DataRate_2M, TM_NRF24L01_OutputPower_0dBm);
- //Set my address, 5 bytes
- TM_NRF24L01_SetMyAddress(MyAddress);
- //Set TX address, 5 bytes
- TM_NRF24L01_SetTxAddress(TxAddress);
- /*Configurazione interfaccia wireless (impostata staticamente)*/
- interf_context[1].buffer.content = NULL;
- interf_context[1].interface_type = SINGLE;
- interf_context[1].interface_nature = nRF24L01;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement