Specifications
For a given IO pin, you should call this function once to initialize the pin before calling functions such
as setPinPullup(), readPin() and monitorPin() (for input pins) or setPinSlew(), writePin() and
pulsePin() (for output pins).
This function does not return a value.
setPinPullup(pin, isEnabled) – Control internal pull-up resistor
This function should be called for each IO pin you are using as a digital input if you want the internal
pull-up resistor for that pin to be enabled. (The default pull-up setting is off, so you usually do not
have to call this function unless you want the pull-up enabled), or you previously enabled it and now
want to disable it.
Parameter pin specifies which IO pin to configure. Parameter isEnabled makes the internal pull-up for
the pin be active when True, or inactive when False.
This function has no effect unless/until the pin is also configured as a digital input pin.
This function does not return a value.
setPinSlew(pin, isRateControl) – Enable/disable slew rate control
On every platform except the Si100x, this function should be called for each IO pin you are using as a
digital output, if you want the internal slew rate control for that pin to also be enabled. (The default
slew rate setting is off, so you usually do not have to call this function unless you want the slew rate
control enabled).
Parameter pin specifies which IO pin to configure. Parameter isRateControl makes the slew rate
control be active when True, or inactive when False.
On Si100x-based modules (such as the RF300), the setPinSlew() function controls the strength at
which an output is driven. See the platform details in section 10 for more information.
This function has no effect unless/until the pin is also configured as a digital output pin. This function
does not return a value.
setRadioRate(rate) – Set raw radio data rate
Parameter rate should be set to 0 to specify the standard (and default) data rate for the platform, e.g.
250 Kbps for 802.15.4 based devices.
The meaning of other rate values is platform specific; refer to section 10 of this document.
NOTE – Only units set to the same rate can talk to each other over the air!
Page 72 of 202 SNAP Reference Manual Document Number 600-0007K