Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ output

Media Vault

Software Library

Restoration Projects

Artifacts Sought

output

[Previous] [Contents] [Index] [Next]

output()

Pass data to a lower-layer module

Synopsis:

static int output( input_module_t *pModule,
                   void *ptr, 
                   int num );

Description:

This function is used to pass data to a lower-layer module. It's called by an output module at arbitrary points in execution.

This function should:

  • Read num elements of data from ptr and send it to an external device.

    Or

  • Call the next lower layer's output() callback.

Returns:

EOK

Examples:

See device/uart.c.

Classification:

Your code

Safety:
Interrupt handler Yes
Signal handler Yes
Thread Yes

[Previous] [Contents] [Index] [Next]

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026