kopia lustrzana https://github.com/espressif/esp-idf
doc: update mcpwm for esp32c6
rodzic
f997b81242
commit
0d62238428
|
@ -127,7 +127,6 @@ api-reference/peripherals/gptimer
|
|||
api-reference/peripherals/pcnt
|
||||
api-reference/peripherals/touch_element
|
||||
api-reference/peripherals/lcd
|
||||
api-reference/peripherals/mcpwm
|
||||
api-reference/peripherals/secure_element
|
||||
api-reference/peripherals/ledc
|
||||
api-reference/peripherals/temp_sensor
|
||||
|
|
|
@ -806,7 +806,7 @@ The MCPWM capture channel can inform the user when there's a valid edge detected
|
|||
|
||||
- :cpp:member:`mcpwm_capture_event_callbacks_t::on_cap` sets callback function for the capture channel when a valid edge is detected.
|
||||
|
||||
The callback function will provide event specific data of type :cpp:type:`mcpwm_capture_event_data_t`, so that you can get the edge of the capture signal in :cpp:member:`mcpwm_capture_event_data_t::cap_edge` and the count value of that moment in :cpp:member:`mcpwm_capture_event_data_t::cap_value`.
|
||||
The callback function will provide event specific data of type :cpp:type:`mcpwm_capture_event_data_t`, so that you can get the edge of the capture signal in :cpp:member:`mcpwm_capture_event_data_t::cap_edge` and the count value of that moment in :cpp:member:`mcpwm_capture_event_data_t::cap_value`. To convert the capture count into timestamp, you need to know the resolution of the capture timer by calling :cpp:func:`mcpwm_capture_timer_get_resolution`.
|
||||
|
||||
The callback function is called within the ISR context, so is should **not** attempt to block (e.g., make sure that only FreeRTOS APIs with ``ISR`` suffix is called within the function).
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue