|
Appiko
|
Output pattern generator module is used for generating a one time digital signal pattern on a number of pins. More...
Data Structures | |
| struct | out_gen_config_t |
| Configuration structure for output pattern generation. More... | |
Macros | |
| #define | OUT_GEN_MAX_TRANSITIONS 64 |
| #define | OUT_GEN_MAX_NUM_OUT 4 |
Functions | |
| void | out_gen_init (uint32_t num_out, uint32_t *out_pins, bool *out_init_value) |
| Initialize the output pattern generator module with the information of the pins on which the pattern is generated. More... | |
| void | out_gen_start (out_gen_config_t *out_gen_config) |
| Start the generation of the pattern with the information provided. More... | |
| void | out_gen_stop (bool *out_vals) |
| Stop the output pattern generation and sets the output pins as specified in the arguments. More... | |
| bool | out_gen_is_on (void) |
| To know if the output pattern generator module is on. More... | |
| uint32_t | out_gen_get_ticks (void) |
| Function to get ticks since last call of out_gen_start. More... | |
| #define OUT_GEN_MAX_NUM_OUT 4 |
The maximum number of output pins for which pattern can be generated
Definition at line 49 of file out_pattern_gen.h.
| #define OUT_GEN_MAX_TRANSITIONS 64 |
The maximum number of transitions that can occur in the generated pattern
Definition at line 46 of file out_pattern_gen.h.
|
inline |
Definition at line 132 of file out_pattern_gen.c.
References ms_timer_get_current_count().
| void out_gen_init | ( | uint32_t | num_out, |
| uint32_t * | out_pins, | ||
| bool * | out_init_value | ||
| ) |
| num_out | The number of pins with pattern generation |
| out_pins | Pointer to array with the pin numbers |
| out_init_value | Pointer to an array containing the initial pin values |
Definition at line 74 of file out_pattern_gen.c.
References ASSERT, and OUT_GEN_MAX_NUM_OUT.
Referenced by cam_trigger_init().
| bool out_gen_is_on | ( | void | ) |
Definition at line 127 of file out_pattern_gen.c.
| void out_gen_start | ( | out_gen_config_t * | out_gen_config | ) |
| out_gen_config | A pointer to configuration which is used to generate pattern. |
Definition at line 89 of file out_pattern_gen.c.
References ASSERT, out_gen_config_t::next_out, out_gen_config_t::num_transitions, OUT_GEN_MAX_TRANSITIONS, and out_gen_config_t::transitions_durations.
| void out_gen_stop | ( | bool * | out_vals | ) |
| out_vals | Pointer to an array of digital values for the pins to be set to on stopping the pattern generation. |
Definition at line 117 of file out_pattern_gen.c.
References ms_timer_stop().
Referenced by sensepi_cam_trigger_stop().
1.8.15