ChibiOS/RT  6.0.3
chfactory.c File Reference

ChibiOS objects factory and registry code. More...

#include <string.h>
#include "ch.h"

Go to the source code of this file.

Functions

void _factory_init (void)
 Initializes the objects factory. More...
 
registered_object_tchFactoryRegisterObject (const char *name, void *objp)
 Registers a generic object. More...
 
registered_object_tchFactoryFindObject (const char *name)
 Retrieves a registered object. More...
 
registered_object_tchFactoryFindObjectByPointer (void *objp)
 Retrieves a registered object by pointer. More...
 
void chFactoryReleaseObject (registered_object_t *rop)
 Releases a registered object. More...
 
dyn_buffer_tchFactoryCreateBuffer (const char *name, size_t size)
 Creates a generic dynamic buffer object. More...
 
dyn_buffer_tchFactoryFindBuffer (const char *name)
 Retrieves a dynamic buffer object. More...
 
void chFactoryReleaseBuffer (dyn_buffer_t *dbp)
 Releases a dynamic buffer object. More...
 
dyn_semaphore_tchFactoryCreateSemaphore (const char *name, cnt_t n)
 Creates a dynamic semaphore object. More...
 
dyn_semaphore_tchFactoryFindSemaphore (const char *name)
 Retrieves a dynamic semaphore object. More...
 
void chFactoryReleaseSemaphore (dyn_semaphore_t *dsp)
 Releases a dynamic semaphore object. More...
 
dyn_mailbox_tchFactoryCreateMailbox (const char *name, size_t n)
 Creates a dynamic mailbox object. More...
 
dyn_mailbox_tchFactoryFindMailbox (const char *name)
 Retrieves a dynamic mailbox object. More...
 
void chFactoryReleaseMailbox (dyn_mailbox_t *dmp)
 Releases a dynamic mailbox object. More...
 
dyn_objects_fifo_tchFactoryCreateObjectsFIFO (const char *name, size_t objsize, size_t objn, unsigned objalign)
 Creates a dynamic "objects FIFO" object. More...
 
dyn_objects_fifo_tchFactoryFindObjectsFIFO (const char *name)
 Retrieves a dynamic "objects FIFO" object. More...
 
void chFactoryReleaseObjectsFIFO (dyn_objects_fifo_t *dofp)
 Releases a dynamic "objects FIFO" object. More...
 
dyn_pipe_tchFactoryCreatePipe (const char *name, size_t size)
 Creates a dynamic pipe object. More...
 
dyn_pipe_tchFactoryFindPipe (const char *name)
 Retrieves a dynamic pipe object. More...
 
void chFactoryReleasePipe (dyn_pipe_t *dpp)
 Releases a dynamic pipe object. More...
 

Variables

objects_factory_t ch_factory
 Factory object static instance. More...
 

Detailed Description

ChibiOS objects factory and registry code.

Definition in file chfactory.c.