Platform drivers for Mbed.

Dependents:   EVAL-CN0535-FMCZ EVAL-CN0535-FMCZ EVAL-AD568x-AD569x EVAL-AD7606 ... more

Embed: (wiki syntax)

« Back to documentation index

timer.cpp File Reference

timer.cpp File Reference

Implementation of Timer MBED Platform Driver Interfaces. More...

Go to the source code of this file.

Functions

int32_t timer_init (struct timer_desc **desc, struct timer_init_param *param)
 Initialize the timer peripheral.
int32_t timer_start (struct timer_desc *desc)
 Start Timer.
int32_t timer_stop (struct timer_desc *desc)
 Stop Timer.
int32_t timer_remove (struct timer_desc *desc)
 Release all the resources allocated by Timer.
int32_t get_elapsed_time_in_nsec (struct timer_desc *desc, uint64_t *elapsed_time)
 Get the elapsed time in nanoseconds.

Detailed Description

Implementation of Timer MBED Platform Driver Interfaces.

Copyright (c) 2021 Analog Devices, Inc. All rights reserved.

This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.

Definition in file timer.cpp.


Function Documentation

int32_t get_elapsed_time_in_nsec ( struct timer_desc *  desc,
uint64_t *  elapsed_time 
)

Get the elapsed time in nanoseconds.

Parameters:
desc[in]- The Timer descriptor
elapsed_time[out]- Pointer where the elapsed time value is stored
Returns:
SUCCESS in case of success, FAILURE otherwise

Definition at line 170 of file timer.cpp.

int32_t timer_init ( struct timer_desc **  desc,
struct timer_init_param *  param 
)

Initialize the timer peripheral.

Parameters:
desc[in,out]- The Timer descriptor
init_param[in]- Structure that contains Timer Initialization Parameters
Returns:
SUCCESS in case of success, FAILURE otherwise

Definition at line 49 of file timer.cpp.

int32_t timer_remove ( struct timer_desc *  desc )

Release all the resources allocated by Timer.

Parameters:
desc[in]- The Timer Descriptor.
Returns:
SUCCESS in case of success, FAILURE otherwise

Definition at line 144 of file timer.cpp.

int32_t timer_start ( struct timer_desc *  desc )

Start Timer.

Parameters:
desc[in]- The Timer Descriptor.
Returns:
SUCCESS in case of success, FAILURE otherwise.

Definition at line 100 of file timer.cpp.

int32_t timer_stop ( struct timer_desc *  desc )

Stop Timer.

Parameters:
desc[in]- The Timer Descriptor.
Returns:
SUCCESS in case of success, FAILURE otherwise.

Definition at line 122 of file timer.cpp.