RM01 Wireless Module – API Documentation

Header image

Main page


RM01 Kernel Driver

The RM01 module requires an additional Linux kernel driver for its operation. This driver is is not an integral part of the @CHIP-RTOS-LNX system, instead is is provided as a separate collection of loadable kernel modules.

These kernel modules are build against a specific @CHIP-RTOS-LNX and Linux kernel version. Hence the user should take care that the version of the RM01 driver package matches the @CHIP-RTOS-LNX version installed on the user's platform.

The RM01 software package that contains the required kernel modules is versioned under the following versioning scheme:

SC1x5_Vxxxx_Vyyyy

where Vxxxx corresponds to the compatible @CHIP-RTOS-LNX version that the kernel modules may be used with, and Vyyyy to any additional patches and bug fixes in the driver, built within the same @CHIP-RTOS-LNX version.

The RM01 kernel driver software is provided as a tar.gz file. The user should unpack its contents into any directory within the A:\ drive, without changing the internal structure of the kernel driver files.

One of the files within the RM01 driver package is the init-rm0x shell script. In order to initialize the RM01 software, the wlInit function should be called from within the user application, with the absolute path to the init-rm0x shell script as parameter. The following code snippet demonstrates this:

// Assume that the RM01 kernel driver software package has been unpacked into the
// A:\wlan directory, so we define the absolute path to the init-rm0x script
// accordingly.
#define INIT_SCRIPT_PATH "wlan/init-rm0x"
int main(void)
{
int retval = 0;
// WLAN initialization
retval = wlInit(INIT_SCRIPT_PATH);
if (retval != WL_ERROR_NO)
{
printf("Could not initialize WLAN library, error: %d\n", retval);
exit(-1);
}
}





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated by Doxygen 1.8.13