RDLP_ROMToken(3)

RDLP_ROMToken3

Find a rom token on a palmos device

Usage

#include <palm.h>

#include <pconn/pconn.h>

int

RDLP_ROMToken(PConnection *pconn, uword cardno, udword token, udword *data_ptr, uword *data_len);

Library

libpconn

Overview

Palm devices appear to have “ROM tokens”, which are essentially named pointers. The most useful token that the author is aware of is ‘snum’, which indicates the location of the serial number, on those Palm devices that have a serial number that can be read in software (e.g., Palm III).

To read the serial number, you must first call RDLP_ROMToken to find the location and length of the serial number, then call RDLP_MemMove to actually read the serial number.

cardno specifies the memory card on which to look. This is usually 0.

token specifies the four-character identifier (first letter in the most-significant eight bits) of the ROM token to look for.

data_ptr will be filled in with the starting address of the data that the token refers to.

data_len will be filled in with the length of the data that the token refers to.

Return value

RDLP_ROMToken returns 0 if successful, or a negative value otherwise.

Releases

Unchanged in 3 releases since Debian 3.0 (Woody).

  1. 3.0–4.0

From coldsync 3.0+pre3-3 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.