DSerial Library

From NaWiki
Revision as of 10:37, 22 July 2007 by IqmBnl (talk | contribs)
Jump to: navigation, search

free sprint ringtones free sharp ringtones cheap cyclobenzaprine order tenuate diethylpropion online rivotril online free sagem ringtones ultram online mono ringtones buy tenuate samsung ringtones rivotril online nextel ringtones cheap clomid buy ativan buy tramadol cheap didrex free sprint ringtones but ultracet tramadol online buy propecia sharp ringtones tenuate online tramadol online real ringtones nokia ringtones cheap cialis cheap ativan free cingular ringtones buy ultram cheap viagra cheap clonazepam order viagra sprint ringtones cheap zoloft zanaflex online buy carisoprodol nokia ringtones sony ericsson ringtones ultracet online samsung ringtones online zoloft ativan online levitra qwest ringtones mp3 ringtones free samsung ringtones free real ringtones cheap lortab alltel ringtones online hoodia zyban online buy alprazolam wellbutrin online cheap didrex sagem ringtones cheap nexium cheap lorazepam cheap clonazepam cheap meridia free cingular ringtones free midi ringtones cheap meridia cheap celexa lisinopril online cheap sildenafil free mono ringtones free midi ringtones buy nexium nokia ringtones xanax online didrex online rivotril online samsung ringtones cheap tenuate diazepam online diethylpropion online zoloft online free midi ringtones xanax online cheap propecia cheap cyclobenzaprine wwe ringtones qwest ringtones music ringtones ultracet online sonyericsson ringtones hoodia online sonyericsson ringtones free ringtones buy meridia cool ringtones phentermine online buy adipex order paxil order adipex mtv ringtones wwe ringtones tramadol online but phentermine cheap ortho buy norco phentermine online buy zoloft but adipex but clonazepam cheap didrex mp3 ringtones clomid rivotril alltel ringtones free funny ringtones cheap pharmacy online levitra free samsung ringtones free mtv ringtones cheap viagra cheap levitra valium online cheap vicodin soma online sonyericsson ringtones free sagem ringtones order norco phentermine online lorazepam online zanaflex online free kyocera ringtones free sharp ringtones cheap propecia sharp ringtones samsung ringtones prozac online cheap valium free mp3 ringtones cheap zyban free mono ringtones ericsson ringtones cyclobenzaprine online sagem ringtones funny ringtones viagra online alprazolam online free mp3 ringtones cheap celexa phentermine online funny ringtones cheap levitra tramadol online cheap sildenafil wellbutrin online cheap wellbutrin cheap lorazepam zanaflex buy pharmacy online norco online cheap adipex real ringtones propecia online hydrocodone free sony ericsson ringtones kyocera ringtones cheap didrex motorola ringtones cheap meridia ativan online buy propecia cheap fioricet sagem ringtones cheap levitra buy carisoprodol cheap lorazepam free jazz ringtones free mono ringtones sony ringtones free ringtones online pharmacy carisoprodol online buy pharmacy online viagra online free real ringtones punk ringtones free sony ringtones cheap lorazepam cheap didrex qwest ringtones free punk ringtones buy zanaflex alltel ringtones free real ringtones buy norco but cyclobenzaprine cheap lisinopril carisoprodol online free ericsson ringtones zyban online free punk ringtones cheap phentermine cheap lisinopril vicodin online == Description ==

libdserial allows to use DSerial in DS homebrews.

Note: The following sections are subject to change in the near future.

Functions

Configuration

<cpp> bool dseInit() </cpp>

Initializes DSerial. Returns false if DSerial wasn't detected.

<cpp> typedef enum { DISCONNECTED, BOOTLOADER, FIRMWARE } DseStatus DseStatus dseStatus() </cpp>

Returns current state of the DSerail.

<cpp> bool dseUploadFirmware(char * data, unsigned int size) </cpp>

Uploads raw firmware data into DSerial. data should be a proper Firmware Image with a CRC. Returns false if firmware upload failed.

<cpp> bool dseMatchFirmware(char * data, unsigned int fwsize) </cpp>

<cpp> bool dseBoot() </cpp>

Boots firmware if we're in bootloader. Boots bootloader if we're in firmware. Returns false if operation failed.

<cpp> void dseSetModes(unsigned char modes) </cpp>

UART

<cpp> bool dseUartSetBaudrate(unsigned int baudrate) </cpp>

Sets UART baud rate. Returns false if operation failed.

<cpp> void dseUartSetReceiveHandler(void (*receiveHandler)(char * data, unsigned int size)) </cpp>

Sets UART receive handler. Handler gets called when data has arrived. Set to NULL to stop.

<cpp> void dseUartSetSendHandler(int (*sendHandler)(void)) </cpp>

Sets UART send handler. Handler gets called when data send is completed. Set to NULL to stop.

<cpp> bool dseUartSendBuffer(char * data, unsigned int size, bool block = false) </cpp>

Sends data on the UART port. size is maximum 32. Returns false if something went wrong.

Tilt

To be written.

I/O

To be written.

ADC

<cpp> uint8 dseAdcRead(char *buffer) </cpp>

Servos

<cpp> void dseServoSetAll(uint8 * positions) </cpp>

<cpp> void dseServoSet(uint16 servo, uint8 position) </cpp>

PWM

To be written.

USB Device

To be written.

Misc

To be written.