Apps     Components     Interfaces     All Files     Source Tree     source: tos.platform.mica.SlavePin.nc

Interface: SlavePin

Semaphore-like interface for controlling a hardware pin (shared between the radio and flash)

Components providing this interface:
tos.platform.mica.SlavePinC
tos.platform.mica.SlavePinM

Components requiring this interface:
tos.platform.mica.SpiByteFifoC

Commands

Events

Commands - Details

high

result_t high(void)

Request the pin be set high. If the number of calls to high is greater or equal to the number of calls to low (since initialisation), then the pin is set high and notifyHigh is signaled (with interrupts disabled)
Returns: SUCCESS