output
![]() |
![]() |
![]() |
![]() |
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]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)