Interface: tos.chips.cc2420.interfaces.ChipSpiResource
interface ChipSpiResource
Interface for the SPI resource for an entire chip. The chip accesses
the platform SPI resource one time, but can have multiple clients
using the SPI bus on top. When all of the clients are released, the
chip will normally try to release itself from the platforms SPI bus.
In some cases, this isn't desirable - so even though upper components
aren't actively using the SPI bus, they can tell the chip to hold onto
it so they can have immediate access when they need.
Any component that aborts a release MUST attempt the release at a later
time if they don't acquire and release the SPI bus naturally after the
abort.
- Author:
-
David Moss
Commands
command void abortRelease()
command error_t attemptRelease()
Events
event void releasing()
Commands - Details
abortRelease
command void abortRelease()
attemptRelease
command error_t attemptRelease()
- Returns:
-
SUCCESS if the SPI bus is released from the chip.
FAIL if the SPI bus is already in use.
EBUSY if some component aborted the release.
Events - Details
releasing
event void releasing()