Bluetooth® Sample Application Programmer's Reference: Printer processing

Bluetooth

Bluetooth® Sample Application Programmer's Reference
Printer processing

Presentation

Functions

int prtStart (void)
 Start printer perypheral. More...
 
int prtStop (void)
 Stop printer perypheral. More...
 
int prtCtrl (void)
 Control paper presence. More...
 

Function Documentation

int prtStart ( void  )

Start printer perypheral.

Open the associated channel. Should be called before calling any printing, normally before an event treatment.

Returns
  • negative if failure.
  • non negative if OK. Utilities.h Peripherals.c
int prtStop ( void  )

Stop printer perypheral.

Close the associated channel. Should be called before returning to the idle prompt or before giving the control to another application.

Returns
  • negative if failure.
  • non negative if OK. Utilities.h Peripherals.c
int prtCtrl ( void  )

Control paper presence.

Control paper presence for associated channel. Should be called before printing

Returns
  • negative if failure.
    • zero if paper is absent
  • positive if paper is present or if no information available. Utilities.h Peripherals.c

Ingenico