class project main.cpp publish

Dependencies:   mbed C12832_lcd USBHost USBHostPTP LCD_Menu

Embed: (wiki syntax)

« Back to documentation index

main.cpp File Reference

main.cpp File Reference

Function to call USBHostPTP Library. More...

Go to the source code of this file.

Functions

DigitalOut led (LED1)
 Initiate Global variables.
void WriteObjectHandles (void *ptp, uint8_t *buffer, uint16_t length)
 This function is used to handle the raw data recieved via the bulk pipes.
void GetNumberOfThumbsAndImages (int *numberOfImages, int *numberOfThumbs)
 Test function 0x01.
void GetAllImagesAndThumbs (void)
 Retrieve all thumbnail images and real images that are JPG files.
void msd_task (void const *)
 Thread to Watch for MSD image.
void GetAllJPGStatus (void)
 Function to display status during image transfers.
void ptp_task2 (void const *)
 Thread to watch for the PTP device connected, and commands that need to be executed.
int main ()
 Main fuction to display the Status of the application.

Detailed Description

Function to call USBHostPTP Library.

Author:
Dwayne Dilbeck
Date:
8/23/2013

mbed USBHostPTP Library

Copyright:
Copyright (c) 2013 Dwayne Dilbeck
License:
This software is distributed under the terms of the GNU Lesser General Public License

Definition in file main.cpp.


Function Documentation

void GetAllImagesAndThumbs ( void   )

Retrieve all thumbnail images and real images that are JPG files.

Definition at line 123 of file main.cpp.

void GetAllJPGStatus ( void   )

Function to display status during image transfers.

Definition at line 216 of file main.cpp.

void GetNumberOfThumbsAndImages ( int *  numberOfImages,
int *  numberOfThumbs 
)

Test function 0x01.

Parameters:
numberOfImagesA pointer to where to write the images on the device
numberOfThumbsA pointer to where to write the images on the device
Returns:
void

Definition at line 95 of file main.cpp.

DigitalOut led ( LED1   )

Initiate Global variables.

int main (  )

Main fuction to display the Status of the application.

Definition at line 321 of file main.cpp.

void msd_task ( void const *   )

Thread to Watch for MSD image.

Definition at line 163 of file main.cpp.

void ptp_task2 ( void const *   )

Thread to watch for the PTP device connected, and commands that need to be executed.

Definition at line 229 of file main.cpp.

void WriteObjectHandles ( void *  ptp,
uint8_t *  buffer,
uint16_t  length 
)

This function is used to handle the raw data recieved via the bulk pipes.

Parameters:
ptpPointer to the PTP device
bufferPointer to the data recieved
lengthTotal data received to be processed
Returns:
Void

Definition at line 72 of file main.cpp.