#include <config.h>
#include <mem.h>
#include <sys/h8.h>
Go to the source code of this file.
Functions | |
void | lnp_logical_range (int far) |
Set the IR transmitter range. | |
int | lnp_logical_range_is_far (void) |
Test the IR transmitter range setting. | |
int | lnp_logical_write (const void *buf, size_t len) |
Write buffer to IR port. | |
void | lnp_logical_fflush (void) |
Empty the IR receive buffer. |
void lnp_logical_fflush | ( | void | ) |
Empty the IR receive buffer.
void lnp_logical_range | ( | int | far | ) | [inline] |
Set the IR transmitter range.
Configure the INFRARED transmitter power
far,: | 0: sets short range, 1: sets long range |
NOTE2: toggles port 4 bit 0
Definition at line 62 of file lnp-logical.h.
int lnp_logical_range_is_far | ( | void | ) | [inline] |
Test the IR transmitter range setting.
Determine if the INFRARED transmitter power is set to long range
Definition at line 73 of file lnp-logical.h.
References PORT4.
int lnp_logical_write | ( | const void * | buf, | |
size_t | len | |||
) |
Write buffer to IR port.
Write {len} chars (starting at {buf}) to IR port.
buf | pointer to array of chars to be written | |
len | number of chars in array (to be written) |
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2005 by the authors. |