Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

void  FSDev_AccessLock (CPU_CHAR    *name_dev,

...

                        CPU_INT32U

...

   timeout
                        FS_ERR      *p_err);

...

File

...

Called from

...

Code enabled by

...

...

fs_dev.c

...

Application

...

...

N/A

Anchor11878201187820Acquire exclusive access to a device. See also section 7-4 “Raw Device IO” on page 94. Anchor11878211187821

Arguments

...

name_dev Anchor11879761187976

Device name.

...

1187981timeout Anchor11880051188005

Time to wait for a lock in milliseconds.

...

p_err Anchor11878251187825

Pointer to variable that will receive return error code from this function :

...

classWebWorks_Indent_1

...

FS_ERR_NONE

...

classWebWorks_Indent_2

...

Device removed successfully.

...

classWebWorks_Indent_1

...

...

FS_ERR_DEV_NOT_OPEN

...

...

Device is not open.

...

classWebWorks_Indent_1

...

FS_ERR_NAME_NULL

...

classWebWorks_Indent_2

...

Argument name_dev passed a NULL pointer

...

...

classWebWorks_Indent_1

...

FS_ERR_OS_LOCK

...

classWebWorks_Indent_2

...

Error acquiring device access lock.

...

classWebWorks_Indent_1

...

FS_ERR_OS_LOCK_TIMEOUT

...

...

Time-out waiting for device access lock.

...

Returned Value

...

11878331187833None.anchor11878341187834

Notes/Warnings

...

None.