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)
Author: Jason Hill
  David Gay
  Philip Levis

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

Components requiring this interface:
apps.MicaHWVerify.MicaHWVerifyM
tos.platform.mica.HPLFlashM
tos.platform.mica.PageEEPROMM
tos.platform.mica.SpiByteFifoC

Commands

Events

Commands - Details

high

result_t high(bool needEvent)

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

Parameters:

needEvent - TRUE if a notifyHigh event is desired if the pin cannot go high immediately.

Returns: SUCCESS