22 #ifndef LIBBSP_ARM_LPC176X_TIMER_H 23 #define LIBBSP_ARM_LPC176X_TIMER_H 157 uint32_t lpc176x_timer_value
lpc176x_timer_mode
Timer modes of a timer.
Definition: timer-defs.h:318
rtems_status_code lpc176x_timer_set_timer_value(lpc176x_timer_number tnumber, uint32_t lpc176x_timer_value)
Sets the timer value.
Definition: timer.c:317
rtems_status_code lpc176x_timer_is_started(lpc176x_timer_number tnumber, bool *is_started)
true if timer is started.
Definition: timer.c:186
uint32_t lpc176x_timer_get_timer_value(lpc176x_timer_number tnumber)
Gets the timer value.
Definition: timer.c:309
rtems_status_code lpc176x_timer_init_with_interrupt(lpc176x_timer_number tnumber, const lpc176x_isr_funct_vector *vector)
Initializes timer in timer mode and resets counter but without starting it, and without any capture o...
Definition: timer.c:383
lpc176x_timer_number
The timer devices in the board.
Definition: timer-defs.h:333
API definitions of the for the timer of the lpc176x bsp.
lpc176x_match_port
Match ports of a timer.
Definition: timer-defs.h:305
lpc176x_ext_match_function
The possible functions at match, for the external ports.
Definition: timer-defs.h:391
uint32_t lpc176x_timer_get_capvalue(lpc176x_timer_number tnumber, lpc176x_capture_port capnumber)
Gets the captured value.
Definition: timer.c:298
void lpc176x_timer_isr(void *lpc176x_timer_number)
Timer generic isroutine.
Definition: timer.c:335
rtems_status_code lpc176x_timer_capture_config(lpc176x_timer_number tnumber, lpc176x_capture_port capture_port, lpc176x_capture_function function)
Configures the capture ports.
Definition: timer.c:250
lpc176x_match_function
The possible functions at match. This options could be used together.
Definition: timer-defs.h:364
rtems_status_code
Classic API Status.
Definition: status.h:43
rtems_status_code lpc176x_timer_external_match_config(lpc176x_timer_number tnumber, lpc176x_match_port match_port, lpc176x_ext_match_function function)
Configures the external match ports.
Definition: timer.c:274
uint32_t lpc176x_microseconds
Microseconds representation.
Definition: common-types.h:37
lpc176x_isr_funct const lpc176x_isr_funct_vector[LPC176X_ISR_FUNCTIONS_COUNT]
The vector of functions that attends each possible interrupt source for a timer.
Definition: timer-defs.h:411
rtems_status_code lpc176x_timer_reset(lpc176x_timer_number tnumber)
resets timer counter and stops it.
Definition: timer.c:136
rtems_status_code lpc176x_timer_set_mode(lpc176x_timer_number tnumber, lpc176x_timer_mode mode)
Sets mode of the timer (timer, counter rising, counter falling or counter both edges) ...
Definition: timer.c:152
lpc176x_capture_port
Capture ports of a timer.
Definition: timer-defs.h:294
rtems_status_code lpc176x_timer_set_resolution(lpc176x_timer_number tnumber, lpc176x_microseconds resolution)
sets the resolution in microseconds of the timer
Definition: timer.c:205
rtems_status_code lpc176x_timer_match_config(lpc176x_timer_number tnumber, lpc176x_match_port match_port, lpc176x_match_function function, uint32_t match_value)
Configures the timer match.
Definition: timer.c:225
rtems_status_code lpc176x_timer_init(lpc176x_timer_number tnumber)
Initializes timer in timer mode and resets counter but without starting it, and without any capture o...
Definition: timer.c:357
rtems_status_code lpc176x_timer_start(lpc176x_timer_number tnumber)
Starts the timer counter.
Definition: timer.c:170
lpc176x_capture_function
The possible functions at capture. This options could be used together.
Definition: timer-defs.h:378