22
22
namespace events {
23
23
/* * \addtogroup events */
24
24
25
- /* * Event
25
+ /* Event
26
26
*
27
27
* Representation of an event for fine-grain dispatch control
28
28
* @ingroup events
29
29
*/
30
30
template <typename F>
31
31
class Event ;
32
32
33
- /* * Event
33
+ /* Event
34
34
*
35
35
* Representation of an event for fine-grain dispatch control
36
36
* @ingroup events
@@ -444,7 +444,7 @@ class Event<void()> {
444
444
}
445
445
};
446
446
447
- /* * Event
447
+ /* Event
448
448
*
449
449
* Representation of an event for fine-grain dispatch control
450
450
* @ingroup events
@@ -862,7 +862,7 @@ class Event<void(A0)> {
862
862
}
863
863
};
864
864
865
- /* * Event
865
+ /* Event
866
866
*
867
867
* Representation of an event for fine-grain dispatch control
868
868
* @ingroup events
@@ -1280,7 +1280,7 @@ class Event<void(A0, A1)> {
1280
1280
}
1281
1281
};
1282
1282
1283
- /* * Event
1283
+ /* Event
1284
1284
*
1285
1285
* Representation of an event for fine-grain dispatch control
1286
1286
* @ingroup events
@@ -1698,7 +1698,7 @@ class Event<void(A0, A1, A2)> {
1698
1698
}
1699
1699
};
1700
1700
1701
- /* * Event
1701
+ /* Event
1702
1702
*
1703
1703
* Representation of an event for fine-grain dispatch control
1704
1704
* @ingroup events
@@ -2308,7 +2308,7 @@ class Event<void(A0, A1, A2, A3, A4)> {
2308
2308
}
2309
2309
2310
2310
public:
2311
- /* * Create an event
2311
+ /* Create an event
2312
2312
* @param q Event queue to dispatch on
2313
2313
* @param f Function to execute when the event is dispatched
2314
2314
* @param c0 Argument to bind to the callback, these arguments are
@@ -2321,7 +2321,7 @@ class Event<void(A0, A1, A2, A3, A4)> {
2321
2321
new (this ) Event (q, EventQueue::context15<F, C0, A0, A1, A2, A3, A4>(f, c0));
2322
2322
}
2323
2323
2324
- /* * Create an event
2324
+ /* Create an event
2325
2325
* @param q Event queue to dispatch on
2326
2326
* @param f Function to execute when the event is dispatched
2327
2327
* @param c0,c1 Arguments to bind to the callback, these arguments are
@@ -2334,7 +2334,7 @@ class Event<void(A0, A1, A2, A3, A4)> {
2334
2334
new (this ) Event (q, EventQueue::context25<F, C0, C1, A0, A1, A2, A3, A4>(f, c0, c1));
2335
2335
}
2336
2336
2337
- /* * Create an event
2337
+ /* Create an event
2338
2338
* @param q Event queue to dispatch on
2339
2339
* @param f Function to execute when the event is dispatched
2340
2340
* @param c0,c1,c2 Arguments to bind to the callback, these arguments are
@@ -2347,7 +2347,7 @@ class Event<void(A0, A1, A2, A3, A4)> {
2347
2347
new (this ) Event (q, EventQueue::context35<F, C0, C1, C2, A0, A1, A2, A3, A4>(f, c0, c1, c2));
2348
2348
}
2349
2349
2350
- /* * Create an event
2350
+ /* Create an event
2351
2351
* @param q Event queue to dispatch on
2352
2352
* @param f Function to execute when the event is dispatched
2353
2353
* @param c0,c1,c2,c3 Arguments to bind to the callback, these arguments are
@@ -2373,127 +2373,127 @@ class Event<void(A0, A1, A2, A3, A4)> {
2373
2373
new (this ) Event (q, EventQueue::context55<F, C0, C1, C2, C3, C4, A0, A1, A2, A3, A4>(f, c0, c1, c2, c3, c4));
2374
2374
}
2375
2375
2376
- /* * Create an event
2376
+ /* Create an event
2377
2377
* @see Event::Event
2378
2378
*/
2379
2379
template <typename T, typename R, typename B0>
2380
2380
Event (EventQueue *q, T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4), B0 b0) {
2381
2381
new (this ) Event (q, mbed::callback (obj, method), b0);
2382
2382
}
2383
2383
2384
- /* * Create an event
2384
+ /* Create an event
2385
2385
* @see Event::Event
2386
2386
*/
2387
2387
template <typename T, typename R, typename B0>
2388
2388
Event (EventQueue *q, const T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) const , B0 b0) {
2389
2389
new (this ) Event (q, mbed::callback (obj, method), b0);
2390
2390
}
2391
2391
2392
- /* * Create an event
2392
+ /* Create an event
2393
2393
* @see Event::Event
2394
2394
*/
2395
2395
template <typename T, typename R, typename B0>
2396
2396
Event (EventQueue *q, volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) volatile , B0 b0) {
2397
2397
new (this ) Event (q, mbed::callback (obj, method), b0);
2398
2398
}
2399
2399
2400
- /* * Create an event
2400
+ /* Create an event
2401
2401
* @see Event::Event
2402
2402
*/
2403
2403
template <typename T, typename R, typename B0>
2404
2404
Event (EventQueue *q, const volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) const volatile , B0 b0) {
2405
2405
new (this ) Event (q, mbed::callback (obj, method), b0);
2406
2406
}
2407
2407
2408
- /* * Create an event
2408
+ /* Create an event
2409
2409
* @see Event::Event
2410
2410
*/
2411
2411
template <typename T, typename R, typename B0, typename B1>
2412
2412
Event (EventQueue *q, T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4), B0 b0, B1 b1) {
2413
2413
new (this ) Event (q, mbed::callback (obj, method), b0, b1);
2414
2414
}
2415
2415
2416
- /* * Create an event
2416
+ /* Create an event
2417
2417
* @see Event::Event
2418
2418
*/
2419
2419
template <typename T, typename R, typename B0, typename B1>
2420
2420
Event (EventQueue *q, const T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) const , B0 b0, B1 b1) {
2421
2421
new (this ) Event (q, mbed::callback (obj, method), b0, b1);
2422
2422
}
2423
2423
2424
- /* * Create an event
2424
+ /* Create an event
2425
2425
* @see Event::Event
2426
2426
*/
2427
2427
template <typename T, typename R, typename B0, typename B1>
2428
2428
Event (EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) volatile , B0 b0, B1 b1) {
2429
2429
new (this ) Event (q, mbed::callback (obj, method), b0, b1);
2430
2430
}
2431
2431
2432
- /* * Create an event
2432
+ /* Create an event
2433
2433
* @see Event::Event
2434
2434
*/
2435
2435
template <typename T, typename R, typename B0, typename B1>
2436
2436
Event (EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) const volatile , B0 b0, B1 b1) {
2437
2437
new (this ) Event (q, mbed::callback (obj, method), b0, b1);
2438
2438
}
2439
2439
2440
- /* * Create an event
2440
+ /* Create an event
2441
2441
* @see Event::Event
2442
2442
*/
2443
2443
template <typename T, typename R, typename B0, typename B1, typename B2>
2444
2444
Event (EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4), B0 b0, B1 b1, B2 b2) {
2445
2445
new (this ) Event (q, mbed::callback (obj, method), b0, b1, b2);
2446
2446
}
2447
2447
2448
- /* * Create an event
2448
+ /* Create an event
2449
2449
* @see Event::Event
2450
2450
*/
2451
2451
template <typename T, typename R, typename B0, typename B1, typename B2>
2452
2452
Event (EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const , B0 b0, B1 b1, B2 b2) {
2453
2453
new (this ) Event (q, mbed::callback (obj, method), b0, b1, b2);
2454
2454
}
2455
2455
2456
- /* * Create an event
2456
+ /* Create an event
2457
2457
* @see Event::Event
2458
2458
*/
2459
2459
template <typename T, typename R, typename B0, typename B1, typename B2>
2460
2460
Event (EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) volatile , B0 b0, B1 b1, B2 b2) {
2461
2461
new (this ) Event (q, mbed::callback (obj, method), b0, b1, b2);
2462
2462
}
2463
2463
2464
- /* * Create an event
2464
+ /* Create an event
2465
2465
* @see Event::Event
2466
2466
*/
2467
2467
template <typename T, typename R, typename B0, typename B1, typename B2>
2468
2468
Event (EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const volatile , B0 b0, B1 b1, B2 b2) {
2469
2469
new (this ) Event (q, mbed::callback (obj, method), b0, b1, b2);
2470
2470
}
2471
2471
2472
- /* * Create an event
2472
+ /* Create an event
2473
2473
* @see Event::Event
2474
2474
*/
2475
2475
template <typename T, typename R, typename B0, typename B1, typename B2, typename B3>
2476
2476
Event (EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4), B0 b0, B1 b1, B2 b2, B3 b3) {
2477
2477
new (this ) Event (q, mbed::callback (obj, method), b0, b1, b2, b3);
2478
2478
}
2479
2479
2480
- /* * Create an event
2480
+ /* Create an event
2481
2481
* @see Event::Event
2482
2482
*/
2483
2483
template <typename T, typename R, typename B0, typename B1, typename B2, typename B3>
2484
2484
Event (EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) const , B0 b0, B1 b1, B2 b2, B3 b3) {
2485
2485
new (this ) Event (q, mbed::callback (obj, method), b0, b1, b2, b3);
2486
2486
}
2487
2487
2488
- /* * Create an event
2488
+ /* Create an event
2489
2489
* @see Event::Event
2490
2490
*/
2491
2491
template <typename T, typename R, typename B0, typename B1, typename B2, typename B3>
2492
2492
Event (EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) volatile , B0 b0, B1 b1, B2 b2, B3 b3) {
2493
2493
new (this ) Event (q, mbed::callback (obj, method), b0, b1, b2, b3);
2494
2494
}
2495
2495
2496
- /* * Create an event
2496
+ /* Create an event
2497
2497
* @see Event::Event
2498
2498
*/
2499
2499
template <typename T, typename R, typename B0, typename B1, typename B2, typename B3>
@@ -2502,30 +2502,36 @@ class Event<void(A0, A1, A2, A3, A4)> {
2502
2502
}
2503
2503
2504
2504
/* * Create an event
2505
- * @see Event::Event
2505
+ * @param q Event queue to dispatch on
2506
+ * @param obj Object to execute the member function on
2507
+ * @param method Member function to execute when the event is dispatched
2508
+ * @param b0,b1,b2,b3,b4 Arguments to bind to the callback, these arguments are
2509
+ * allocated on an irq-safe allocator from the event queue's
2510
+ * memory pool. Must be type-compatible with b0..b4, the
2511
+ * arguments to the underlying callback.
2506
2512
*/
2507
2513
template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4>
2508
2514
Event (EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) {
2509
2515
new (this ) Event (q, mbed::callback (obj, method), b0, b1, b2, b3, b4);
2510
2516
}
2511
2517
2512
- /* * Create an event
2518
+ /* Create an event
2513
2519
* @see Event::Event
2514
2520
*/
2515
2521
template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4>
2516
2522
Event (EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) const , B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) {
2517
2523
new (this ) Event (q, mbed::callback (obj, method), b0, b1, b2, b3, b4);
2518
2524
}
2519
2525
2520
- /* * Create an event
2526
+ /* Create an event
2521
2527
* @see Event::Event
2522
2528
*/
2523
2529
template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4>
2524
2530
Event (EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) volatile , B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) {
2525
2531
new (this ) Event (q, mbed::callback (obj, method), b0, b1, b2, b3, b4);
2526
2532
}
2527
2533
2528
- /* * Create an event
2534
+ /* Create an event
2529
2535
* @see Event::Event
2530
2536
*/
2531
2537
template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4>
0 commit comments