FSfopenpgm Function

MDD File System Interface Library

MDDFS Interface Library Help
FSfopenpgm Function
C
FSFILE * FSfopenpgm(
    const rom char * fileName, 
    const rom char * mode
);
Description

This function opens a file on PIC18 Microcontrollers where 'fileName' ROM string is given in Ascii format.The FSfopenpgm function will copy a PIC18 ROM fileName and mode argument into RAM arrays, and then pass those arrays to the FSfopen function.

Preconditions

For read modes, file exists; FSInit performed

Parameters
Parameters 
Description 
fileName 
The name of the file to be opened (ROM) 
mode 
The mode the file will be opened in (ROM) 
Return Values
Return Values 
Description 
FSFILE * 
A pointer to the file object 
NULL 
File could not be opened 
Side Effects

The FSerrno variable will be changed.

Remarks

This function is for use with PIC18 when passing arguments in ROM.

Microchip MDD File System Interface 1.4.2 - [Oct 15, 2012]
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.