no-OS
Public Attributes | List of all members
no_os_callback_desc Struct Reference

Structure describing a callback to be registered. More...

#include <no_os_irq.h>

Public Attributes

void(* callback )(void *context)
 
void(* legacy_callback )(void *ctx, uint32_t event, void *extra)
 
void * ctx
 
void * legacy_config
 
enum no_os_irq_event event
 
enum no_os_irq_peripheral peripheral
 
void * handle
 

Detailed Description

Structure describing a callback to be registered.

Todo:
: remove this, use struct irq_callback instead.

Member Data Documentation

◆ callback

void(* no_os_callback_desc::callback) (void *context)

Callback to be called when the event an event occurs.

◆ ctx

void* no_os_callback_desc::ctx

Parameter to be passed when the callback is called

◆ event

enum no_os_irq_event no_os_callback_desc::event

Platform specific event that triggers the calling of the callback.

◆ handle

void* no_os_callback_desc::handle

This will be used to store HAL specific descriptors

◆ legacy_callback

void(* no_os_callback_desc::legacy_callback) (void *ctx, uint32_t event, void *extra)

Callback to be called when the event an event occurs

Parameters
ctx- Same as no_os_callback_desc::ctx
event- Event that generated the callback
extra- Platform specific data

◆ legacy_config

void* no_os_callback_desc::legacy_config

Platform specific configuration for a callback

◆ peripheral

enum no_os_irq_peripheral no_os_callback_desc::peripheral

Interrupt source peripheral specifier.


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