Home
last modified time | relevance | path

Searched refs:comm (Results 1 – 4 of 4) sorted by relevance

/hardware/bsp/intel/peripheral/libupm/examples/java/
DNRF24L01_receiverSample.java45 upm_nrf24l01.NRF24L01 comm = new upm_nrf24l01.NRF24L01((short) 7, (short) 8); in main() local
47 Callback callback = new ReceiverCallback(comm); in main()
49 comm.setSourceAddress(local_address); in main()
50 comm.setDestinationAddress(broadcast_address); in main()
51 comm.setPayload((short) upm_nrf24l01.javaupm_nrf24l01Constants.MAX_BUFFER); in main()
52 comm.configure(); in main()
53 comm.setSpeedRate(upm_nrf24l01.speed_rate_t.NRF_250KBPS); in main()
54 comm.setChannel((short) 99); in main()
55 comm.setDataReceivedHandler(callback); in main()
58 comm.pollListener(); in main()
[all …]
DNRF24L01_transmitterSample.java46 upm_nrf24l01.NRF24L01 comm = new upm_nrf24l01.NRF24L01((short) 7, (short) 8); in main() local
50 comm.setSourceAddress(srcAddress); in main()
51 comm.setDestinationAddress(destAddress); in main()
52 comm.setPayload((short) upm_nrf24l01.javaupm_nrf24l01Constants.MAX_BUFFER); in main()
53 comm.setChannel((short) 99); in main()
54 comm.configure(); in main()
55 comm.setDataReceivedHandler(callback); in main()
58 comm.send(tx_buffer); in main()
/hardware/bsp/intel/peripheral/libupm/examples/c++/
Dnrf24l01-receiver.cxx32 upm::NRF24L01 *comm = NULL; variable
49 std::cout << "Reciever :: " << *((uint32_t *)&(comm->m_rxBuffer[0])) << std::endl; in nrf_handler()
56 comm = new upm::NRF24L01(7, 8); in main()
57 comm->setSourceAddress ((uint8_t *) local_address); in main()
58 comm->setDestinationAddress ((uint8_t *) broadcast_address); in main()
59 comm->setPayload (MAX_BUFFER); in main()
60 comm->configure (); in main()
61 comm->setSpeedRate (upm::NRF_250KBPS); in main()
62 comm->setChannel (99); in main()
63 comm->setDataReceivedHandler (nrf_handler); in main()
[all …]
Dnrf24l01-transmitter.cxx32 upm::NRF24L01 *comm = NULL; variable
55 comm = new upm::NRF24L01(7, 8); in main()
56 comm->setSourceAddress ((uint8_t *) srcAddress); in main()
57 comm->setDestinationAddress ((uint8_t *) destAddress); in main()
58 comm->setPayload (MAX_BUFFER); in main()
59 comm->setChannel (99); in main()
60 comm->configure (); in main()
61 comm->setDataReceivedHandler (nrf_handler); in main()
66 memcpy (comm->m_txBuffer, &dummyData, sizeof (dummyData)); in main()
67 comm->send (); in main()
[all …]