SDK4.0 This document shows Ameba SDK 4.0 APIs

- Main Page
- Modules
- Data Structures
- Files

- Data Structures
- Data Structure Index
- Data Fields

Data Fields
osdep_service_ops Struct Reference
Ameba SDK » RTOS

## Data Fields
u8 *(* | rtw_vmalloc )(u32 sz)
u8 *(* | rtw_zvmalloc )(u32 sz)
void(* | rtw_vmfree )(u8 *pbuf, u32 sz)
u8 *(* | rtw_malloc )(u32 sz)
u8 *(* | rtw_zmalloc )(u32 sz)
void(* | rtw_mfree )(u8 *pbuf, u32 sz)
void(* | rtw_memcpy )(void *dst, void *src, u32 sz)
int(* | rtw_memcmp )(void *dst, void *src, u32 sz)
void(* | rtw_memset )(void *pbuf, int c, u32 sz)
void(* | rtw_init_sema )(_sema *sema, int init_val)
void(* | rtw_free_sema )(_sema *sema)
void(* | rtw_up_sema )(_sema *sema)
void(* | rtw_up_sema_from_isr )(_sema *sema)
u32(* | rtw_down_timeout_sema )(_sema *sema, u32 timeout)
void(* | rtw_mutex_init )(_mutex *pmutex)
void(* | rtw_mutex_free )(_mutex *pmutex)
void(* | rtw_mutex_get )(_mutex *pmutex)
int(* | rtw_mutex_get_timeout )(_mutex *pmutex, u32 timeout_ms)
void(* | rtw_mutex_put )(_mutex *pmutex)
void(* | rtw_enter_critical )(_lock *plock, _irqL *pirqL)
void(* | rtw_exit_critical )(_lock *plock, _irqL *pirqL)
void(* | rtw_enter_critical_from_isr )(_lock *plock, _irqL *pirqL)
void(* | rtw_exit_critical_from_isr )(_lock *plock, _irqL *pirqL)
void(* | rtw_enter_critical_bh )(_lock *plock, _irqL *pirqL)
void(* | rtw_exit_critical_bh )(_lock *plock, _irqL *pirqL)
int(* | rtw_enter_critical_mutex )(_mutex *pmutex, _irqL *pirqL)
void(* | rtw_exit_critical_mutex )(_mutex *pmutex, _irqL *pirqL)
void(* | rtw_spinlock_init )(_lock *plock)
void(* | rtw_spinlock_free )(_lock *plock)
void(* | rtw_spin_lock )(_lock *plock)
void(* | rtw_spin_unlock )(_lock *plock)
void(* | rtw_spinlock_irqsave )(_lock *plock, _irqL *irqL)
void(* | rtw_spinunlock_irqsave )(_lock *plock, _irqL *irqL)
int(* | rtw_init_xqueue )(_xqueue *queue, const char *name, u32 message_size, u32 number_of_messages)
int(* | rtw_push_to_xqueue )(_xqueue *queue, void *message, u32 timeout_ms)
int(* | rtw_pop_from_xqueue )(_xqueue *queue, void *message, u32 timeout_ms)
int(* | rtw_deinit_xqueue )(_xqueue *queue)
u32(* | rtw_get_current_time )(void)
u32(* | rtw_systime_to_ms )(u32 systime)
u32(* | rtw_systime_to_sec )(u32 systime)
u32(* | rtw_ms_to_systime )(u32 ms)
u32(* | rtw_sec_to_systime )(u32 sec)
void(* | rtw_msleep_os )(int ms)
void(* | rtw_usleep_os )(int us)
void(* | rtw_mdelay_os )(int ms)
void(* | rtw_udelay_os )(int us)
void(* | rtw_yield_os )(void)
void(* | ATOMIC_SET )(ATOMIC_T *v, int i)
int(* | ATOMIC_READ )(ATOMIC_T *v)
void(* | ATOMIC_ADD )(ATOMIC_T *v, int i)
void(* | ATOMIC_SUB )(ATOMIC_T *v, int i)
void(* | ATOMIC_INC )(ATOMIC_T *v)
void(* | ATOMIC_DEC )(ATOMIC_T *v)
int(* | ATOMIC_ADD_RETURN )(ATOMIC_T *v, int i)
int(* | ATOMIC_SUB_RETURN )(ATOMIC_T *v, int i)
int(* | ATOMIC_INC_RETURN )(ATOMIC_T *v)
int(* | ATOMIC_DEC_RETURN )(ATOMIC_T *v)
u64(* | rtw_modular64 )(u64 x, u64 y)
int(* | rtw_get_random_bytes )(void *dst, u32 size)
u32(* | rtw_getFreeHeapSize )(void)
int(* | rtw_create_task )(struct task_struct *task, const char *name, u32 stack_size, u32 priority, thread_func_t func, void *thctx)
void(* | rtw_delete_task )(struct task_struct *task)
void(* | rtw_wakeup_task )(struct task_struct *task)
void(* | rtw_thread_enter )(char *name)
void(* | rtw_thread_exit )(void)
_timerHandle(* | rtw_timerCreate )(const signed char *pcTimerName, osdepTickType xTimerPeriodInTicks, u32 uxAutoReload, void *pvTimerID, TIMER_FUN pxCallbackFunction)
u32(* | rtw_timerDelete )(_timerHandle xTimer, osdepTickType xBlockTime)
u32(* | rtw_timerIsTimerActive )(_timerHandle xTimer)
u32(* | rtw_timerStop )(_timerHandle xTimer, osdepTickType xBlockTime)
u32(* | rtw_timerChangePeriod )(_timerHandle xTimer, osdepTickType xNewPeriod, osdepTickType xBlockTime)
void *(* | rtw_timerGetID )(_timerHandle xTimer)
u32(* | rtw_timerStart )(_timerHandle xTimer, osdepTickType xBlockTime)
u32(* | rtw_timerStartFromISR )(_timerHandle xTimer, osdepBASE_TYPE *pxHigherPriorityTaskWoken)
u32(* | rtw_timerStopFromISR )(_timerHandle xTimer, osdepBASE_TYPE *pxHigherPriorityTaskWoken)
u32(* | rtw_timerResetFromISR )(_timerHandle xTimer, osdepBASE_TYPE *pxHigherPriorityTaskWoken)
u32(* | rtw_timerChangePeriodFromISR )(_timerHandle xTimer, osdepTickType xNewPeriod, osdepBASE_TYPE *pxHigherPriorityTaskWoken)
u32(* | rtw_timerReset )(_timerHandle xTimer, osdepTickType xBlockTime)
void(* | rtw_acquire_wakelock )(void)
void(* | rtw_release_wakelock )(void)
void(* | rtw_wakelock_timeout )(u32 timeoutMs)
u8(* | rtw_get_scheduler_state )(void)

The documentation for this struct was generated from the following file:

- osdep_service.h