Lines Matching full:event
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
42 #define EVT_TO_STR(event) \ argument
43 (event == NRF_QDEC_EVENT_SAMPLERDY ? "NRF_QDEC_EVENT_SAMPLERDY" : \
44 (event == NRF_QDEC_EVENT_REPORTRDY ? "NRF_QDEC_EVENT_REPORTRDY" : \
45 (event == NRF_QDEC_EVENT_ACCOF ? "NRF_QDEC_EVENT_ACCOF" : \
46 "UNKNOWN EVENT")))
54 nrfx_qdec_event_t event; in nrfx_qdec_irq_handler() local
59 NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRF_QDEC_EVENT_SAMPLERDY)); in nrfx_qdec_irq_handler()
61 event.type = NRF_QDEC_EVENT_SAMPLERDY; in nrfx_qdec_irq_handler()
62 event.data.sample.value = (int8_t)nrf_qdec_sample_get(); in nrfx_qdec_irq_handler()
63 m_qdec_event_handler(event); in nrfx_qdec_irq_handler()
70 NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRF_QDEC_EVENT_REPORTRDY)); in nrfx_qdec_irq_handler()
72 event.type = NRF_QDEC_EVENT_REPORTRDY; in nrfx_qdec_irq_handler()
74 event.data.report.acc = (int16_t)nrf_qdec_accread_get(); in nrfx_qdec_irq_handler()
75 event.data.report.accdbl = (uint16_t)nrf_qdec_accdblread_get(); in nrfx_qdec_irq_handler()
76 m_qdec_event_handler(event); in nrfx_qdec_irq_handler()
83 NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRF_QDEC_EVENT_ACCOF)); in nrfx_qdec_irq_handler()
85 event.type = NRF_QDEC_EVENT_ACCOF; in nrfx_qdec_irq_handler()
86 m_qdec_event_handler(event); in nrfx_qdec_irq_handler()