Files | |
file | beep.h |
Interface to the beeper. | |
Defines | |
#define | BEEP_ON 1 |
#define | BEEP_OFF 0 |
#define | BEEP_ALARM1 1 |
#define | BEEP_ALARM2 2 |
Functions | |
void | beep_beep (int len) |
Beep for a specified time. | |
void | beep_alarm (int alarmmode, int len) |
Beep an alarm for a specified time. | |
void | beep (void) |
Produces a quick click-like beep. | |
void | beep_down (int len) |
A beep with a pitch-bend down. | |
void | beep_on (void) |
Turn the beeper on. | |
void | beep_off (void) |
Turn the beeper off. | |
void | beep_spinup (void) |
Produce a sound similar to a hard-drive spinup. | |
void | beep_long (clock_time_t len) |
Beep for a long time (seconds). |
|
Produces a quick click-like beep. This function produces a short beep that sounds like a click. |
|
Beep an alarm for a specified time. This function causes the beeper to beep for the specified time. The time is measured in the same units as for the clock_delay() function.
|
|
Beep for a specified time. This function causes the beeper to beep for the specified time. The time is measured in the same units as for the clock_delay() function.
Referenced by PT_THREAD(). |
|
A beep with a pitch-bend down. This function produces a pitch-bend sound with deecreasing frequency.
|
|
Beep for a long time (seconds). This function produces a beep with the specified length and will not return until the beep is complete. The length of the beep is specified using CLOCK_SECOND: a two second beep is CLOCK_SECOND * 2, and a quarter second beep is CLOCK_SECOND / 4.
|
|
Turn the beeper off. This function turns the beeper off after it has been turned on with beep_on(). |
|
Turn the beeper on. This function turns on the beeper. The beeper is turned off with the beep_off() function. |
|
Produce a sound similar to a hard-drive spinup. This function produces a sound that is intended to be similar to the sound a hard-drive makes when it starts. |