Subversion Repositories HomeAutomation

Rev

Rev 1494 | Rev 1744 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1494 Rev 1730
Line 289... Line 289...
289
}
289
}
290
#endif
290
#endif
291
 
291
 
292
 
292
 
293
/* call this function like this:
293
/* call this function like this:
294
    IrTransceiver_Init_RX_Channel(channelnumber, buffer, callback, pcint-id, GPIO_D6);
294
    IrTransceiver_InitRxChannel(channelnumber, buffer, callback, pcint-id, GPIO_D6);
295
    buffer is a memory location
295
    buffer is a memory location
296
    callback is a function to call when a receive/transmitt is complete
296
    callback is a function to call when a receive/transmitt is complete
297
    also call with IO port to use  
297
    also call with IO port to use  
298
*/
298
*/
299
 
299
 
Line 326... Line 326...
326
        drvIrRxChannel[channel].enable = TRUE;
326
        drvIrRxChannel[channel].enable = TRUE;
327
    }
327
    }
328
}
328
}
329
 
329
 
330
/* call this function like this:
330
/* call this function like this:
331
    IrTransceiver_DeInit_RX_Channel(channelnumber, pcint-id, GPIO_D6);
331
    IrTransceiver_DeInitRxChannel(channelnumber, pcint-id, GPIO_D6);
332
*/
332
*/
333
 
333
 
334
void IrTransceiver_DeInitRxChannel(uint8_t channel, uint8_t pcint_id, volatile uint8_t* port, volatile uint8_t* pin, volatile uint8_t* ddr,uint8_t nr, uint8_t pcint)
334
void IrTransceiver_DeInitRxChannel(uint8_t channel, uint8_t pcint_id, volatile uint8_t* port, volatile uint8_t* pin, volatile uint8_t* ddr,uint8_t nr, uint8_t pcint)
335
{
335
{
336
    /* Deactivate interrupt */
336
    /* Deactivate interrupt */