Changeset 2fba30a in libvcomm


Ignore:
Timestamp:
01/20/15 22:29:44 (7 years ago)
Author:
Tarmo Kople <tarmo@…>
Branches:
master
Children:
678d396
Parents:
d0bb1b6
git-author:
Tarmo Kople <tarmo@…> (01/20/15 22:29:44)
git-committer:
Tarmo Kople <tarmo@…> (01/20/15 22:29:44)
Message:

+ added Vblast_irframe action

Vblast_irframe(hid_device vhandle, uint8_t freq, uint8_t duty)
Blasts previously captured or set IRframe

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • proto.h

    r99340c9 r2fba30a  
    7373//! Set IRframe info (num of pulses in IRframe) 
    7474#define REQ_SET_IRFRAME_INFO    30 
     75//! Blast IRframe info (freq , duty cycle) 
     76#define REQ_BLAST_IRFRAME       31 
    7577 
    7678// Response type ID's (100-255) 
  • vactions.c

    rdd0acb5 r2fba30a  
    291291} 
    292292 
     293VCOMMAPI int VCOMMCALL Vblast_irframe(hid_device **vhandle, uint8_t freq, uint8_t duty){ 
     294        int resp; 
     295        response_t response; 
     296        request_t request; 
     297 
     298        request.type = REQ_BLAST_IRFRAME; 
     299        request.data[0] = freq; 
     300        request.data[1] = duty; 
     301 
     302        if ((resp = Vcomm(vhandle, &request, &response))) 
     303                        return resp; 
     304 
     305        return response.data[0]; 
     306} 
    293307 
    294308VCOMMAPI int VCOMMCALL Vclear_event_ircode(hid_device **vhandle, ircode_t *ircode, cmdstat_t *cmdstat ){ 
  • vactions.h

    re7768a6 r2fba30a  
    248248VCOMMAPI int VCOMMCALL Vset_irframe(hid_device **vhandle, irframe_t *irframe); 
    249249/** 
     250 * \brief Blasts IRframe from IRvoodoo. 
     251 * 
     252 *      @ingroup vapi 
     253 *      @param[in] vhandle IRvoodoo connection handle 
     254 *      @param[in] freq Frequency of carrier signal in KHz 
     255 *      @param[in] duty Duty cycle of carrier signal in % (0 - 50) 
     256 * 
     257 *  @returns 
     258 *      This function returns 0 on success or error code on error. 
     259 * 
     260 */ 
     261VCOMMAPI int VCOMMCALL Vblast_irframe(hid_device **vhandle, uint8_t freq, uint8_t duty); 
     262/** 
    250263 * \brief Delete event from eventmap 
    251264 * 
Note: See TracChangeset for help on using the changeset viewer.